- Author
- Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g
Definition at line 44 of file NewsSection.java.
◆ canShow()
boolean org.turro.publication.entity.NewsSection.canShow |
( |
IContact |
contact | ) |
|
◆ compareTo()
int org.turro.publication.entity.NewsSection.compareTo |
( |
NewsSection |
o | ) |
|
Compare
Definition at line 278 of file NewsSection.java.
279 int result = CompareUtil.compare(newsOrder, o.newsOrder);
280 if(result == 0 &&
id !=
null && o.id !=
null) {
281 result = CompareUtil.compare(
id, o.id);
◆ entityId()
Object org.turro.publication.entity.NewsSection.entityId |
( |
| ) |
|
◆ generateBody()
String org.turro.publication.entity.NewsSection.generateBody |
( |
| ) |
|
Definition at line 256 of file NewsSection.java.
257 if(NewsSectionType.NEWS_SECTION_EXTERNAL.equals(type)) {
258 return content !=
null ? content.
execute() :
"";
◆ generateSection()
void org.turro.publication.entity.NewsSection.generateSection |
( |
Writer |
template | ) |
throws IOException |
Definition at line 188 of file NewsSection.java.
189 boolean firstColumn =
false;
190 boolean lastColumn =
false;
195 template.write(
"<@start_row/>\n");
196 template.write(
"<@start_column/>\n");
197 template.write(
"<@start_full_table \"0\" \"0\"/>\n");
198 template.write(
"<@start_row/>\n");
200 template.write(
"<@start_stackable style=\"width:" + getColumnWidth(
this) +
"\"/>\n");
202 template.write(
"<@start_row/>\n");
203 template.write(
"<@start_column/>\n");
206 if(!Strings.isBlank(banner)) {
207 if(NewsSectionType.NEWS_SECTION_IMAGE.equals(type)) {
208 template.write(
"<a target='_blank' href='" + banner +
"'>");
210 template.write(banner);
214 if(NewsSectionType.NEWS_SECTION_EXTERNAL.equals(type)) {
215 template.write(
"${newsSection" + newsOrder +
".generateBody()}\n");
217 template.write(
"${newsSection" + newsOrder +
".body}\n");
220 if(!Strings.isBlank(banner)) {
221 if(NewsSectionType.NEWS_SECTION_IMAGE.equals(type)) {
222 template.write(
"</a>");
227 template.write(
"<@stackable_divider/>");
230 template.write(
"<@end_column/>\n");
234 template.write(
"<@end_row/>\n");
235 template.write(
"<@end_table/>\n");
236 template.write(
"<@end_column/>\n");
237 template.write(
"<@end_row/>\n");
238 template.write(
"<@row_summary_divider height=\"20px\"/>");
241 template.write(
"<@end_row/>\n");
242 template.write(
"<@row_summary_divider height=\"20px\"/>");
boolean checkEndRow(NewsSection newsSection)
boolean checkStartRow(NewsSection newsSection)
◆ getBanner()
String org.turro.publication.entity.NewsSection.getBanner |
( |
| ) |
|
◆ getBody()
String org.turro.publication.entity.NewsSection.getBody |
( |
| ) |
|
◆ getId()
Long org.turro.publication.entity.NewsSection.getId |
( |
| ) |
|
◆ getNewsletter()
Newsletter org.turro.publication.entity.NewsSection.getNewsletter |
( |
| ) |
|
◆ getNewsOrder()
int org.turro.publication.entity.NewsSection.getNewsOrder |
( |
| ) |
|
◆ getType()
◆ getUniqueId()
String org.turro.publication.entity.NewsSection.getUniqueId |
( |
| ) |
|
◆ getWidth()
String org.turro.publication.entity.NewsSection.getWidth |
( |
| ) |
|
◆ getWiki()
String org.turro.publication.entity.NewsSection.getWiki |
( |
| ) |
|
◆ isEmpty()
boolean org.turro.publication.entity.NewsSection.isEmpty |
( |
| ) |
|
◆ isEmptyContent()
boolean org.turro.publication.entity.NewsSection.isEmptyContent |
( |
| ) |
|
Definition at line 181 of file NewsSection.java.
182 if(NewsSectionType.NEWS_SECTION_EXTERNAL.equals(type)) {
IContentIterator getIterator()
◆ isHideIfEmpty()
boolean org.turro.publication.entity.NewsSection.isHideIfEmpty |
( |
| ) |
|
◆ isNewColumn()
boolean org.turro.publication.entity.NewsSection.isNewColumn |
( |
| ) |
|
◆ isUseAsTrigger()
boolean org.turro.publication.entity.NewsSection.isUseAsTrigger |
( |
| ) |
|
◆ loadBody()
void org.turro.publication.entity.NewsSection.loadBody |
( |
IContact |
contact | ) |
|
Definition at line 250 of file NewsSection.java.
251 if(content ==
null && NewsSectionType.NEWS_SECTION_EXTERNAL.equals(type)) {
252 content = ContentProviders.loadCommand(body, contact,
getUniqueId());
◆ reset()
void org.turro.publication.entity.NewsSection.reset |
( |
| ) |
|
◆ resetGlobalContext()
void org.turro.publication.entity.NewsSection.resetGlobalContext |
( |
| ) |
|
◆ setBanner()
void org.turro.publication.entity.NewsSection.setBanner |
( |
String |
banner | ) |
|
◆ setBody()
void org.turro.publication.entity.NewsSection.setBody |
( |
String |
body | ) |
|
◆ setHideIfEmpty()
void org.turro.publication.entity.NewsSection.setHideIfEmpty |
( |
boolean |
hideIfEmpty | ) |
|
◆ setId()
void org.turro.publication.entity.NewsSection.setId |
( |
Long |
id | ) |
|
◆ setNewColumn()
void org.turro.publication.entity.NewsSection.setNewColumn |
( |
boolean |
newColumn | ) |
|
◆ setNewsletter()
void org.turro.publication.entity.NewsSection.setNewsletter |
( |
Newsletter |
newsletter | ) |
|
◆ setNewsOrder()
void org.turro.publication.entity.NewsSection.setNewsOrder |
( |
int |
newsOrder | ) |
|
◆ setType()
void org.turro.publication.entity.NewsSection.setType |
( |
NewsSectionType |
type | ) |
|
◆ setUseAsTrigger()
void org.turro.publication.entity.NewsSection.setUseAsTrigger |
( |
boolean |
useAsTrigger | ) |
|
◆ setWidth()
void org.turro.publication.entity.NewsSection.setWidth |
( |
String |
width | ) |
|
◆ setWiki()
void org.turro.publication.entity.NewsSection.setWiki |
( |
String |
wiki | ) |
|
The documentation for this class was generated from the following file: