public class PageReferenceComponent extends ComplexPropertiesLink implements IAction, ITaxonomyContainer
AbstractVisualComponentPageStatus 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, propertiesCACHE_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_SEPARATORCOLORED_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, storePropertiesapplyReplacement, 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, transflateFrompublic 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 pageExceptionprotected Calendar getBackDate(ContentContext ctx)
protected Calendar getBackDateNullIfUndefined(ContentContext ctx)
protected String getCompInputName()
public int getComplexityLevel(ContentContext ctx)
IContentVisualComponentgetComplexityLevel in interface IContentVisualComponentgetComplexityLevel in class AbstractVisualComponentctx - TODOpublic String getCSSClassName(ContentContext ctx)
protected String getDefaultSelectedInputName()
protected String getDisplayAsInputName()
getDisplayAsInputName in class AbstractVisualComponentprotected 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 AbstractVisualComponentExceptionorg.javlo.itf.IContentVisualComponent#getXHTMLCode()public String getHexColor()
IContentVisualComponentgetHexColor in interface IContentVisualComponentgetHexColor in class AbstractVisualComponentprotected 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
Exceptionprotected String getParentNode(ContentContext ctx)
protected String getParentNodeInputName()
public String getPrefixViewXHTMLCode(ContentContext ctx)
IContentVisualComponentgetPrefixViewXHTMLCode in interface IContentVisualComponentgetPrefixViewXHTMLCode in class AbstractVisualComponentprotected String getReverseOrderInput()
protected String getDynamicOrderInput()
public String[] getStyleLabelList(ContentContext ctx)
IContentVisualComponentgetStyleLabelList in interface IContentVisualComponentgetStyleLabelList in class AbstractVisualComponentpublic String[] getStyleList(ContentContext ctx)
IContentVisualComponentgetStyleList in interface IContentVisualComponentgetStyleList in class AbstractVisualComponentpublic String getStyleTitle(ContentContext ctx)
IContentVisualComponentgetStyleTitle in interface IContentVisualComponentgetStyleTitle in class AbstractVisualComponentpublic String getSuffixViewXHTMLCode(ContentContext ctx)
IContentVisualComponentgetSuffixViewXHTMLCode in interface IContentVisualComponentgetSuffixViewXHTMLCode in class AbstractVisualComponentprotected 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()
IContentVisualComponentgetType in interface IContentVisualComponentprotected String getWidthEmptyPageInputName()
protected String getOnlyWithoutChildrenInputName()
protected String getEventInputName()
protected String getIntranetModeInputName()
public void init(ComponentBean bean, ContentContext newContext) throws Exception
init in class AbstractVisualComponentExceptionpublic boolean isContentCachable(ContentContext ctx)
IContentVisualComponentisContentCachable in interface IContentVisualComponentisContentCachable in class ComplexPropertiesLinkpublic boolean isContentCachableByQuery(ContentContext ctx)
isContentCachableByQuery in class AbstractVisualComponentpublic boolean isContentTimeCachable(ContentContext ctx)
isContentTimeCachable in class AbstractVisualComponentprotected boolean isReverseOrder(ContentContext ctx)
protected boolean isSessionTaxonomy(ContentContext ctx)
public int getPageSize(ContentContext ctx)
public void prepareView(ContentContext ctx) throws Exception
AbstractVisualComponentprepareView in class AbstractVisualComponentExceptionpublic static void main(String[] args)
public String performEdit(ContentContext ctx) throws Exception
IContentVisualComponentperformEdit in interface IContentVisualComponentperformEdit in class AbstractVisualComponentExceptionprotected 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)
IContentVisualComponentisRealContent in interface IContentVisualComponentisRealContent in class ComplexPropertiesLinkctx - current contextpublic String getActionGroupName()
IActiongetActionGroupName in interface IActionpublic int getSearchLevel()
IContentVisualComponentgetSearchLevel in interface IContentVisualComponentgetSearchLevel in class AbstractVisualComponentprotected Object getLock(ContentContext ctx)
getLock in class AbstractVisualComponentpublic boolean initContent(ContentContext ctx) throws Exception
IContentVisualComponentinitContent in interface IContentVisualComponentinitContent in class AbstractVisualComponentExceptionpublic boolean isMirroredByDefault(ContentContext ctx)
IContentVisualComponentisMirroredByDefault in interface IContentVisualComponentisMirroredByDefault in class AbstractVisualComponentpublic String getContentAsText(ContentContext ctx)
IContentVisualComponentgetContentAsText in interface IContentVisualComponentgetContentAsText in class AbstractVisualComponentpublic Set<String> getTaxonomy()
getTaxonomy in interface ITaxonomyContainerpublic String getFontAwesome()
getFontAwesome in interface IContentVisualComponentgetFontAwesome in class ComplexPropertiesLinkCopyright © 2012-2018. All Rights Reserved.