public class MirrorComponent extends AbstractVisualComponent implements IFieldContainer, IImageTitle, ISubTitle
| Modifier and Type | Field and Description |
|---|---|
Date |
latestError |
protected static Logger |
logger
create a static logger.
|
static String |
TYPE |
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_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, ID_SEPARATOR, 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_COLORNO_LINK| Constructor and Description |
|---|
MirrorComponent() |
| Modifier and Type | Method and Description |
|---|---|
int |
changeAndGetMirrorinDepth(ContentContext ctx) |
int |
getComplexityLevel(ContentContext ctx)
return the complexity level of the component.
|
String |
getContainerType(ContentContext ctx) |
String |
getCurrentInputName() |
protected String |
getEditXHTMLCode(ContentContext ctx) |
String |
getEmptyXHTMLCode(ContentContext ctx)
return the code if component contain's no data.
|
Collection<String> |
getExternalResources(ContentContext ctx)
return the external resources needed from component as css, javascript...
|
Field |
getField(ContentContext ctx,
String name) |
List<Field> |
getFields(ContentContext ctx) |
List<String> |
getFieldsNames(ContentContext ctx) |
String |
getFieldValue(ContentContext ctx,
String name) |
String |
getFontAwesome() |
String |
getHexColor()
get the exadecimal color for representation of the component.
|
String |
getImageDescription(ContentContext ctx) |
String |
getImageLinkURL(ContentContext ctx) |
String |
getLabel(ContentContext ctx) |
int |
getLabelLevel(ContentContext ctx)
define the level of label.
|
Map<String,String> |
getList(ContentContext ctx,
String listName) |
Map<String,String> |
getList(ContentContext ctx,
String listName,
Locale locale) |
IContentVisualComponent |
getMirrorComponent(ContentContext ctx) |
String |
getMirrorComponentId() |
String |
getPageDescription(ContentContext ctx)
return the description of the page if this component is or contains description.
|
String |
getPrefixViewXHTMLCode(ContentContext ctx)
code for prefix the view XHTML code.
|
int |
getPriority(ContentContext ctx)
return the priority of the picture inside the page (9=max)
|
String |
getRemoteInputName() |
String |
getRemoteURL() |
String |
getResourceURL(ContentContext ctx) |
String |
getSubTitle(ContentContext ctx) |
int |
getSubTitleLevel(ContentContext ctx) |
String |
getSuffixViewXHTMLCode(ContentContext ctx)
code for sufix the view XHTML code.
|
String |
getTextLabel(ContentContext ctx)
return a string representation of the component
|
String |
getTextTitle(ContentContext ctx)
return a string representation of the component with complete title
|
String |
getType()
return the type of the element.
|
String |
getUnlinkInputName() |
String |
getViewListXHTMLCode(ContentContext ctx) |
String |
getViewXHTMLCode(ContentContext ctx) |
int |
getWordCount(ContentContext ctx)
count the word in the content.
|
String |
getXHTMLId(ContentContext ctx) |
void |
init(ComponentBean bean,
ContentContext newContext) |
boolean |
isContentCachable(ContentContext ctx)
return the part of header needed for this component
|
boolean |
isFieldContainer(ContentContext ctx) |
boolean |
isImageValid(ContentContext ctx) |
boolean |
isList(ContentContext ctx)
true if the component is in a list
|
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 |
isRemote(ContentContext ctx) |
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
|
protected void |
setMirrorComponentId(String compId) |
void |
unlink(ContentContext ctx) |
applyReplacement, cleanValue, clearReplacement, clone, compareTo, contructViewStyle, countLine, delete, deleteMySelf, equals, equals, executeCurrentRenderer, executeJSP, executeRenderer, executeRenderer, extractFieldsFromRenderer, getAjaxId, getArea, getAuthors, getBackgroundColor, getBaseHelpURL, getClassName, getComponentBean, getComponentCSS, getComponentCssClass, getComponentId, getComponentLabel, getComponentPath, getConfig, getConfigMessage, getContainerPage, getContentAsMap, getContentAsText, getContentCache, getContentMessage, getContentName, getContentTimeCache, getCookiesDisplayStatus, getCreationDate, getCSSStyle, getCurrentPage, getCurrentRenderer, getDebugHeader, getDefaultHelpURI, getDefaultRenderer, getDeleteDate, getDescription, getDisplayAsInputName, getDisplayMessage, getEditorComplexity, getEditText, getEmptyCode, getErrorMessage, getErrorMessage, getFirstPrefix, getForcedId, getForcedPrefixViewXHTMLCode, getForcedSuffixViewXHTMLCode, getFormName, getHeaderContent, getHelpType, getHelpURI, getHelpURL, getI18nEditableKeys, getId, getImportFolderPath, getImportFolderPath, getInlineStyle, getInputName, getInputNameRenderer, getInputNameRendererTitle, getItalicAndStrongLanguageMarkerList, getJSOnSubmit, getKey, getLastSufix, getLayout, getListClass, getListGroup, getListItemTag, getListTag, getLock, getMarkerList, getMessage, getMirrorWrapper, getModificationDate, getNextComponent, getPage, getPreviewAttributes, getPreviewCssClass, getPreviewCssId, getPreviousComponent, getQuotationLanguageMarkerList, getRemplacement, getRenderer, getRendererTitle, getRenderes, getRequestComponent, getSearchLevel, getSelectRendererXHTML, getSpecialInputTag, getSpecialPreviewCssClass, getSpecialPreviewCssId, getSpecialTagTitle, getSpecialTagXHTML, getSpecificClass, getStyle, getStyleLabel, getStyleLabelList, getStyleList, getStyleTitle, getTag, getTextColor, getTextForSearch, getTextMessage, getTitleLevel, getTypeInputName, getValue, getValue, getVersion, getViewData, getViewDataFile, getViewID, getViewText, getWidth, getXHTMLCode, getXHTMLConfig, haveRight, includeComponentJSP, includePage, init, initContent, insert, isAjaxWrapper, isAskWidth, isAutoDeletable, isAutoRenderer, isBackgroundColored, isCanAddClass, isColored, isConfig, isContentCachableByQuery, isContentTimeCachable, isDefaultValue, isDispayEmptyXHTMLCode, isDisplayable, isDisplayHidden, isEditOnCreate, isFirstElementOfRepeatSequence, isFirstRepeated, isFreeInputLayout, isHelpURL, isHiddable, isHidden, isHiddenInMode, isInline, isInsertable, 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, main, 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, setValue, setWidth, stored, storeViewData, stringToReader, stringToReader, stringToStream, textToXHTML, transflateFromfinalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetPageclearReplacement, delete, equals, extractFieldsFromRenderer, getArea, getAuthors, getClassName, getComponentBean, getComponentCssClass, getComponentLabel, getConfig, getConfigMessage, getContentAsText, getContentMessage, getContentName, getCreationDate, getCurrentRenderer, getDescription, getEditText, getErrorMessage, getErrorMessage, getFirstPrefix, getHeaderContent, getHelpURL, getI18nEditableKeys, getId, getInputNameRenderer, getJSOnSubmit, getKey, getLastSufix, getLayout, getListGroup, getMarkerList, getMessage, getModificationDate, getNextComponent, getPreviousComponent, getRenderer, getSearchLevel, getSpecialTagTitle, getSpecialTagXHTML, getStyleLabel, getStyleLabelList, getStyleList, getStyleTitle, getTextForSearch, getTextMessage, getTitleLevel, getValue, getVersion, getViewText, getXHTMLCode, getXHTMLConfig, initContent, insert, isConfig, isDefaultValue, isDispayEmptyXHTMLCode, isDisplayable, isDisplayHidden, isEditOnCreate, isFirstRepeated, isHelpURL, isHidden, isHiddenInMode, isInline, isInsertable, isListable, isMetaTitle, isModify, isNeedRefresh, isNew, isNolink, isRepeat, isRepeatable, isRestMatch, isUnique, isVisible, isVisible, isVisibleFromCookies, loadViewData, markAsNew, newInstance, next, performConfig, previous, replaceAllInContent, replaceInContent, resetViewData, setContainerPage, setDisplayHidden, setList, setNeedRefresh, setNextComponent, setPage, setPreviousComponent, setRenderer, setRepeat, setStyle, setValid, setValue, stored, transflateFromcompareTogetContentAsMappublic static final String TYPE
public Date latestError
protected static Logger logger
public String getCurrentInputName()
public String getUnlinkInputName()
public String getRemoteInputName()
public String getRemoteURL()
public String getMirrorComponentId() throws MalformedURLException, Exception
MalformedURLExceptionExceptionpublic void prepareView(ContentContext ctx) throws Exception
AbstractVisualComponentprepareView in class AbstractVisualComponentExceptionprotected boolean isRemote(ContentContext ctx)
protected String getEditXHTMLCode(ContentContext ctx) throws Exception
getEditXHTMLCode in class AbstractVisualComponentExceptionpublic Collection<String> getExternalResources(ContentContext ctx)
IContentVisualComponentgetExternalResources in interface IContentVisualComponentgetExternalResources in class AbstractVisualComponentpublic String getHexColor()
IContentVisualComponentgetHexColor in interface IContentVisualComponentgetHexColor in class AbstractVisualComponentprotected void setMirrorComponentId(String compId)
public IContentVisualComponent getMirrorComponent(ContentContext ctx) throws Exception
Exceptionpublic String getPrefixViewXHTMLCode(ContentContext ctx)
IContentVisualComponentgetPrefixViewXHTMLCode in interface IContentVisualComponentgetPrefixViewXHTMLCode in class AbstractVisualComponentpublic String getSuffixViewXHTMLCode(ContentContext ctx)
IContentVisualComponentgetSuffixViewXHTMLCode in interface IContentVisualComponentgetSuffixViewXHTMLCode in class AbstractVisualComponentpublic String getType()
IContentVisualComponentgetType in interface IContentVisualComponentpublic int changeAndGetMirrorinDepth(ContentContext ctx)
public String getViewXHTMLCode(ContentContext ctx) throws Exception
getViewXHTMLCode in interface IFieldContainergetViewXHTMLCode in class AbstractVisualComponentExceptionorg.javlo.itf.IContentVisualComponent#getXHTMLCode()public String getEmptyXHTMLCode(ContentContext ctx) throws Exception
IContentVisualComponentgetEmptyXHTMLCode in interface IContentVisualComponentgetEmptyXHTMLCode in class AbstractVisualComponentExceptionpublic int getWordCount(ContentContext ctx)
IContentVisualComponentgetWordCount in interface IContentVisualComponentgetWordCount in class AbstractVisualComponentpublic void init(ComponentBean bean, ContentContext newContext) throws Exception
init in class AbstractVisualComponentExceptionpublic boolean isContentCachable(ContentContext ctx)
IContentVisualComponentisContentCachable in interface IContentVisualComponentisContentCachable in class AbstractVisualComponentpublic boolean isList(ContentContext ctx)
IContentVisualComponentisList in interface IContentVisualComponentisList in class AbstractVisualComponentpublic void unlink(ContentContext ctx) throws Exception
Exceptionpublic String performEdit(ContentContext ctx) throws Exception
IContentVisualComponentperformEdit in interface IContentVisualComponentperformEdit in class AbstractVisualComponentExceptionpublic String getLabel(ContentContext ctx)
getLabel in interface IFieldContainerpublic String getTextTitle(ContentContext ctx)
IContentVisualComponentgetTextTitle in interface IContentVisualComponentgetTextTitle in class AbstractVisualComponentpublic String getTextLabel(ContentContext ctx)
IContentVisualComponentgetTextLabel in interface IContentVisualComponentgetTextLabel in class AbstractVisualComponentpublic List<String> getFieldsNames(ContentContext ctx) throws Exception
getFieldsNames in interface IFieldContainerExceptionpublic List<Field> getFields(ContentContext ctx) throws Exception
getFields in interface IFieldContainerExceptionpublic Field getField(ContentContext ctx, String name) throws Exception
getField in interface IFieldContainerExceptionpublic String getFieldValue(ContentContext ctx, String name) throws Exception
getFieldValue in interface IFieldContainerExceptionpublic Map<String,String> getList(ContentContext ctx, String listName, Locale locale) throws Exception
getList in interface IFieldContainerExceptionpublic Map<String,String> getList(ContentContext ctx, String listName) throws Exception
getList in interface IFieldContainerExceptionpublic String getViewListXHTMLCode(ContentContext ctx) throws Exception
getViewListXHTMLCode in interface IFieldContainerExceptionpublic boolean isFieldContainer(ContentContext ctx)
isFieldContainer in interface IFieldContainerpublic String getContainerType(ContentContext ctx)
getContainerType in interface IFieldContainerpublic String getImageDescription(ContentContext ctx)
getImageDescription in interface IImageTitlepublic String getResourceURL(ContentContext ctx)
getResourceURL in interface IImageTitlepublic String getImageLinkURL(ContentContext ctx)
getImageLinkURL in interface IImageTitlepublic boolean isImageValid(ContentContext ctx)
isImageValid in interface IImageTitlepublic int getPriority(ContentContext ctx)
IImageTitlegetPriority in interface IImageTitlepublic String getSubTitle(ContentContext ctx)
getSubTitle in interface ISubTitlepublic int getSubTitleLevel(ContentContext ctx)
getSubTitleLevel in interface ISubTitlepublic boolean isRealContent(ContentContext ctx)
IContentVisualComponentisRealContent in interface IContentVisualComponentisRealContent in interface IFieldContainerisRealContent in class AbstractVisualComponentctx - current contextpublic String getPageDescription(ContentContext ctx)
IContentVisualComponentgetPageDescription in interface IContentVisualComponentgetPageDescription in class AbstractVisualComponentpublic int getLabelLevel(ContentContext ctx)
IContentVisualComponentgetLabelLevel in interface IContentVisualComponentgetLabelLevel in class AbstractVisualComponentpublic String getXHTMLId(ContentContext ctx)
getXHTMLId in interface ISubTitlepublic boolean isMirroredByDefault(ContentContext ctx)
IContentVisualComponentisMirroredByDefault in interface IContentVisualComponentisMirroredByDefault in class AbstractVisualComponentpublic int getComplexityLevel(ContentContext ctx)
IContentVisualComponentgetComplexityLevel in interface IContentVisualComponentgetComplexityLevel in class AbstractVisualComponentctx - TODOpublic String getFontAwesome()
getFontAwesome in interface IContentVisualComponentgetFontAwesome in class AbstractVisualComponentCopyright © 2012-2018. All Rights Reserved.