public class PageReferenceComponent extends ComplexPropertiesLink implements IAction, ITaxonomyContainer
AbstractVisualComponent
PageStatus
pagesStatus : root page of menu. See
#getRootPage
.PageBean
pages : list of pages selected to display.String
title : title of the page list. See
getContentTitle()
PageReferenceComponent
comp : current component.String
firstPage : first page rendered in xHTML.Modifier and Type | Class and Description |
---|---|
static class |
PageReferenceComponent.PageEvent |
static class |
PageReferenceComponent.PagesStatus |
Modifier and Type | Field and Description |
---|---|
static String |
MOUNT_FORMAT |
static String |
TYPE |
HEADER_V1_0, LABEL_KEY, LINK_KEY, properties
CACHE_KEY_SUFFIX_PARAM_NAME, COMPONENT_KEY, config, EDIT_CLASS, FORCE_COMPONENT_ID, HIDDEN, I18N_FILE, NOT_EDIT_PREVIEW_PARAM_NAME, SCROLL_TO_COMP_ID_ATTRIBUTE_NAME, TIME_CACHE_NAME, VALUE_SEPARATOR
COLORED_WRAPPER_CLASS, COMP_ID_REQUEST_PARAM, COMPLEXITY_ADMIN, COMPLEXITY_EASY, COMPLEXITY_STANDARD, CONTAINER_COLOR, DEFAULT_COLOR, DYN_COMP_COLOR, ECOM_COLOR, EDIT_ACTION_CSS_CLASS, GRAPHIC_COLOR, HIGH_LABEL_LEVEL, LINK_COLOR, LOW_LABEL_LEVEL, META_COLOR, MIDDLE_LABEL_LEVEL, SEARCH_LEVEL_HIGH, SEARCH_LEVEL_LOW, SEARCH_LEVEL_MIDDLE, SEARCH_LEVEL_NONE, TEXT_COLOR, VIEW_DEFINITION_REQUEST_ID, WEB2_COLOR
Constructor and Description |
---|
PageReferenceComponent() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
filterPage(ContentContext ctx,
MenuElement page,
Collection<MenuElement> currentSelection,
Collection<String> commands,
String filter,
boolean widthUnactive)
filter the page
|
String |
getActionGroupName()
the group name of the action
|
protected Calendar |
getBackDate(ContentContext ctx) |
protected Calendar |
getBackDateNullIfUndefined(ContentContext ctx) |
protected String |
getCompInputName() |
int |
getComplexityLevel(ContentContext ctx)
return the complexity level of the component.
|
String |
getContentAsText(ContentContext ctx)
get the text of the component
|
String |
getCSSClassName(ContentContext ctx) |
static Integer |
getCurrentMonth(javax.servlet.http.HttpSession session) |
static Integer |
getCurrentYear(javax.servlet.http.HttpSession session) |
protected String |
getDefaultSelectedInputName() |
protected String |
getDirectLinkInputName() |
protected String |
getDisplayAsInputName() |
protected String |
getDynamicOrderInput() |
String |
getEditXHTMLCode(ContentContext ctx) |
protected String |
getEventInputName() |
String |
getFontAwesome() |
String |
getHexColor()
get the exadecimal color for representation of the component.
|
protected String |
getInputFirstPageFull() |
protected String |
getIntranetModeInputName() |
protected Object |
getLock(ContentContext ctx) |
protected int |
getMaxNews() |
protected String |
getOnlyWithoutChildrenInputName() |
protected String |
getOrder() |
protected String |
getOrderInputName() |
protected String |
getPageDisplayedId(MenuElement page) |
protected String |
getPageId(MenuElement page) |
int |
getPageSize(ContentContext ctx) |
protected String |
getParentNode(ContentContext ctx) |
protected String |
getParentNodeInputName() |
String |
getPrefixViewXHTMLCode(ContentContext ctx)
code for prefix the view XHTML code.
|
protected String |
getReverseOrderInput() |
int |
getSearchLevel()
return the level of the component is a search.
|
protected List<MenuElement> |
getSelectedPages(ContentContext ctx,
List<MenuElement> children) |
protected Collection<String> |
getSelectedTag(ContentContext ctx) |
String[] |
getStyleLabelList(ContentContext ctx)
return a list of label define the style.
|
String[] |
getStyleList(ContentContext ctx)
get the list of style possible for this component.
|
String |
getStyleTitle(ContentContext ctx)
return the title of the style choice.
|
String |
getSuffixViewXHTMLCode(ContentContext ctx)
code for sufix the view XHTML code.
|
protected String |
getTagsInputName() |
Set<String> |
getTaxonomy() |
protected String |
getTimeSelectionInputName(String option) |
String |
getType()
return the type of the element.
|
protected String |
getWidthEmptyPageInputName() |
void |
init(ComponentBean bean,
ContentContext newContext) |
boolean |
initContent(ContentContext ctx)
init the content with a default value. sample : "lorem ipsum" for text
component.
|
boolean |
isContentCachable(ContentContext ctx)
return the part of header needed for this component
|
boolean |
isContentCachableByQuery(ContentContext ctx) |
boolean |
isContentTimeCachable(ContentContext ctx) |
protected boolean |
isDisplayFirstPage() |
boolean |
isMirroredByDefault(ContentContext ctx)
if this component is duplicated, by default it is mirrored.
|
boolean |
isRealContent(ContentContext ctx)
return true if component is considered as realContent and the page that
contain the component is also considered as real content.
|
protected boolean |
isReverseOrder(ContentContext ctx) |
protected boolean |
isSessionTaxonomy(ContentContext ctx) |
protected boolean |
isUIFilterOnEditUsers(ContentContext ctx) |
protected boolean |
isUIFullDisplayFirstPage(ContentContext ctx) |
protected boolean |
isUILargeSorting(ContentContext ctx) |
protected boolean |
isUITimeSelection(ContentContext ctx) |
static void |
main(String[] args) |
static String |
performCalendar(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
String |
performEdit(ContentContext ctx)
action call when update the content page.
|
void |
prepareView(ContentContext ctx)
prepare the rendering of a component. default attributes put in request :
style, value, type, compid
|
static void |
setCurrentMonth(javax.servlet.http.HttpSession session,
int currentMonth) |
static void |
setCurrentYear(javax.servlet.http.HttpSession session,
int currentYear) |
protected void |
setDisplayFirstPage(boolean value) |
protected void |
setDynamicOrder(boolean dynamicOrder) |
protected void |
setEventOnly(boolean onlyEvent) |
protected void |
setIntranetMode(boolean mode) |
protected void |
setOrder(String order) |
protected void |
setParentNode(String node) |
protected void |
setReverseOrder(boolean reverseOrder) |
protected void |
setSessionTaxonomy(boolean sessionTaxo) |
protected void |
setTag(String tag) |
equals, getField, getField, getLinkLabelName, getLinkName, init, reloadProperties, setField, setValue, storeProperties
applyReplacement, cleanValue, clearReplacement, clone, compareTo, contructViewStyle, countLine, delete, deleteMySelf, equals, executeCurrentRenderer, executeJSP, executeRenderer, executeRenderer, extractFieldsFromRenderer, getAjaxId, getArea, getAuthors, getBackgroundColor, getBaseHelpURL, getClassName, getComponentBean, getComponentCSS, getComponentCssClass, getComponentId, getComponentLabel, getComponentPath, getConfig, getConfigMessage, getContainerPage, getContentAsMap, getContentCache, getContentMessage, getContentName, getContentTimeCache, getCookiesDisplayStatus, getCreationDate, getCSSStyle, getCurrentPage, getCurrentRenderer, getDebugHeader, getDefaultHelpURI, getDefaultRenderer, getDeleteDate, getDescription, getDisplayMessage, getEditorComplexity, getEditText, getEmptyCode, getEmptyXHTMLCode, getErrorMessage, getErrorMessage, getExternalResources, getFirstPrefix, getForcedId, getForcedPrefixViewXHTMLCode, getForcedSuffixViewXHTMLCode, getFormName, getHeaderContent, getHelpType, getHelpURI, getHelpURL, getI18nEditableKeys, getId, getImportFolderPath, getImportFolderPath, getInlineStyle, getInputName, getInputNameRenderer, getInputNameRendererTitle, getItalicAndStrongLanguageMarkerList, getJSOnSubmit, getKey, getLabelLevel, getLastSufix, getLayout, getListClass, getListGroup, getListItemTag, getListTag, getMarkerList, getMessage, getMirrorWrapper, getModificationDate, getNextComponent, getPage, getPageDescription, getPreviewAttributes, getPreviewCssClass, getPreviewCssId, getPreviousComponent, getQuotationLanguageMarkerList, getRemplacement, getRenderer, getRendererTitle, getRenderes, getRequestComponent, getSelectRendererXHTML, getSpecialInputTag, getSpecialPreviewCssClass, getSpecialPreviewCssId, getSpecialTagTitle, getSpecialTagXHTML, getSpecificClass, getStyle, getStyleLabel, getTag, getTextColor, getTextForSearch, getTextLabel, getTextMessage, getTextTitle, getTitleLevel, getTypeInputName, getValue, getValue, getVersion, getViewData, getViewDataFile, getViewID, getViewText, getViewXHTMLCode, getWidth, getWordCount, getXHTMLCode, getXHTMLConfig, haveRight, includeComponentJSP, includePage, insert, isAjaxWrapper, isAskWidth, isAutoDeletable, isAutoRenderer, isBackgroundColored, isCanAddClass, isColored, isConfig, isDefaultValue, isDispayEmptyXHTMLCode, isDisplayable, isDisplayHidden, isEditOnCreate, isFirstElementOfRepeatSequence, isFirstRepeated, isFreeInputLayout, isHelpURL, isHiddable, isHidden, isHiddenInMode, isInline, isInsertable, isList, isListable, isMetaTitle, isMirrorWrapped, isModify, isNeedDelete, isNeedRefresh, isNeedRenderer, isNew, isNextSame, isNextSame, isNolink, isNoLinkable, isPreviousSame, isPreviousSame, isRepeat, isRepeatable, isRestMatch, isReversedLink, isUnique, isValueProperties, isValueTranslatable, isViewDataFile, isVisible, isVisible, isVisibleFromCookies, isWrapped, isXML, loadViewData, markAsNew, newInstance, next, onStyleChange, performConfig, performUpdate, previous, processView, renderViewXHTMLCode, replaceAllInContent, replaceInContent, resetContentCache, resetViewData, setBackgroundColor, setComponentBean, setContainerPage, setContentCache, setContentTimeCache, setDisplayHidden, setForcedId, setHidden, setHiddenInMode, setList, setMessage, setMirrorWrapped, setModify, setNeedRefresh, setNextComponent, setNolink, setPage, setPreviousComponent, setRenderer, setRepeat, setStyle, setTextColor, setValid, setWidth, stored, storeViewData, stringToReader, stringToReader, stringToStream, textToXHTML, transflateFrom
public static final String MOUNT_FORMAT
public static final String TYPE
public static final Integer getCurrentMonth(javax.servlet.http.HttpSession session)
public static final Integer getCurrentYear(javax.servlet.http.HttpSession session)
public static final String performCalendar(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
public static final void setCurrentMonth(javax.servlet.http.HttpSession session, int currentMonth)
public static final void setCurrentYear(javax.servlet.http.HttpSession session, int currentYear)
protected boolean filterPage(ContentContext ctx, MenuElement page, Collection<MenuElement> currentSelection, Collection<String> commands, String filter, boolean widthUnactive) throws Exception
ctx
- current contentcontextpage
- a pageException
protected Calendar getBackDate(ContentContext ctx)
protected Calendar getBackDateNullIfUndefined(ContentContext ctx)
protected String getCompInputName()
public int getComplexityLevel(ContentContext ctx)
IContentVisualComponent
getComplexityLevel
in interface IContentVisualComponent
getComplexityLevel
in class AbstractVisualComponent
ctx
- TODOpublic String getCSSClassName(ContentContext ctx)
protected String getDefaultSelectedInputName()
protected String getDisplayAsInputName()
getDisplayAsInputName
in class AbstractVisualComponent
protected boolean isUITimeSelection(ContentContext ctx)
protected boolean isUIFullDisplayFirstPage(ContentContext ctx)
protected boolean isUIFilterOnEditUsers(ContentContext ctx)
protected boolean isUILargeSorting(ContentContext ctx)
public String getEditXHTMLCode(ContentContext ctx) throws Exception
getEditXHTMLCode
in class AbstractVisualComponent
Exception
org.javlo.itf.IContentVisualComponent#getXHTMLCode()
public String getHexColor()
IContentVisualComponent
getHexColor
in interface IContentVisualComponent
getHexColor
in class AbstractVisualComponent
protected int getMaxNews()
protected String getOrder()
protected String getOrderInputName()
protected String getDirectLinkInputName()
protected String getPageId(MenuElement page)
protected String getPageDisplayedId(MenuElement page)
protected List<MenuElement> getSelectedPages(ContentContext ctx, List<MenuElement> children) throws Exception
Exception
protected String getParentNode(ContentContext ctx)
protected String getParentNodeInputName()
public String getPrefixViewXHTMLCode(ContentContext ctx)
IContentVisualComponent
getPrefixViewXHTMLCode
in interface IContentVisualComponent
getPrefixViewXHTMLCode
in class AbstractVisualComponent
protected String getReverseOrderInput()
protected String getDynamicOrderInput()
public String[] getStyleLabelList(ContentContext ctx)
IContentVisualComponent
getStyleLabelList
in interface IContentVisualComponent
getStyleLabelList
in class AbstractVisualComponent
public String[] getStyleList(ContentContext ctx)
IContentVisualComponent
getStyleList
in interface IContentVisualComponent
getStyleList
in class AbstractVisualComponent
public String getStyleTitle(ContentContext ctx)
IContentVisualComponent
getStyleTitle
in interface IContentVisualComponent
getStyleTitle
in class AbstractVisualComponent
public String getSuffixViewXHTMLCode(ContentContext ctx)
IContentVisualComponent
getSuffixViewXHTMLCode
in interface IContentVisualComponent
getSuffixViewXHTMLCode
in class AbstractVisualComponent
protected Collection<String> getSelectedTag(ContentContext ctx)
protected String getTagsInputName()
protected boolean isDisplayFirstPage()
protected void setDisplayFirstPage(boolean value)
protected void setIntranetMode(boolean mode)
protected String getInputFirstPageFull()
public String getType()
IContentVisualComponent
getType
in interface IContentVisualComponent
protected String getWidthEmptyPageInputName()
protected String getOnlyWithoutChildrenInputName()
protected String getEventInputName()
protected String getIntranetModeInputName()
public void init(ComponentBean bean, ContentContext newContext) throws Exception
init
in class AbstractVisualComponent
Exception
public boolean isContentCachable(ContentContext ctx)
IContentVisualComponent
isContentCachable
in interface IContentVisualComponent
isContentCachable
in class ComplexPropertiesLink
public boolean isContentCachableByQuery(ContentContext ctx)
isContentCachableByQuery
in class AbstractVisualComponent
public boolean isContentTimeCachable(ContentContext ctx)
isContentTimeCachable
in class AbstractVisualComponent
protected boolean isReverseOrder(ContentContext ctx)
protected boolean isSessionTaxonomy(ContentContext ctx)
public int getPageSize(ContentContext ctx)
public void prepareView(ContentContext ctx) throws Exception
AbstractVisualComponent
prepareView
in class AbstractVisualComponent
Exception
public static void main(String[] args)
public String performEdit(ContentContext ctx) throws Exception
IContentVisualComponent
performEdit
in interface IContentVisualComponent
performEdit
in class AbstractVisualComponent
Exception
protected void setOrder(String order)
protected void setSessionTaxonomy(boolean sessionTaxo)
protected void setParentNode(String node)
protected void setReverseOrder(boolean reverseOrder)
protected void setEventOnly(boolean onlyEvent)
protected void setDynamicOrder(boolean dynamicOrder)
protected void setTag(String tag)
public boolean isRealContent(ContentContext ctx)
IContentVisualComponent
isRealContent
in interface IContentVisualComponent
isRealContent
in class ComplexPropertiesLink
ctx
- current contextpublic String getActionGroupName()
IAction
getActionGroupName
in interface IAction
public int getSearchLevel()
IContentVisualComponent
getSearchLevel
in interface IContentVisualComponent
getSearchLevel
in class AbstractVisualComponent
protected Object getLock(ContentContext ctx)
getLock
in class AbstractVisualComponent
public boolean initContent(ContentContext ctx) throws Exception
IContentVisualComponent
initContent
in interface IContentVisualComponent
initContent
in class AbstractVisualComponent
Exception
public boolean isMirroredByDefault(ContentContext ctx)
IContentVisualComponent
isMirroredByDefault
in interface IContentVisualComponent
isMirroredByDefault
in class AbstractVisualComponent
public String getContentAsText(ContentContext ctx)
IContentVisualComponent
getContentAsText
in interface IContentVisualComponent
getContentAsText
in class AbstractVisualComponent
public Set<String> getTaxonomy()
getTaxonomy
in interface ITaxonomyContainer
public String getFontAwesome()
getFontAwesome
in interface IContentVisualComponent
getFontAwesome
in class ComplexPropertiesLink
Copyright © 2012-2018. All Rights Reserved.