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_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, 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_COLOR
NO_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, transflateFrom
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getPage
clearReplacement, 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, transflateFrom
compareTo
getContentAsMap
public 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
MalformedURLException
Exception
public void prepareView(ContentContext ctx) throws Exception
AbstractVisualComponent
prepareView
in class AbstractVisualComponent
Exception
protected boolean isRemote(ContentContext ctx)
protected String getEditXHTMLCode(ContentContext ctx) throws Exception
getEditXHTMLCode
in class AbstractVisualComponent
Exception
public Collection<String> getExternalResources(ContentContext ctx)
IContentVisualComponent
getExternalResources
in interface IContentVisualComponent
getExternalResources
in class AbstractVisualComponent
public String getHexColor()
IContentVisualComponent
getHexColor
in interface IContentVisualComponent
getHexColor
in class AbstractVisualComponent
protected void setMirrorComponentId(String compId)
public IContentVisualComponent getMirrorComponent(ContentContext ctx) throws Exception
Exception
public String getPrefixViewXHTMLCode(ContentContext ctx)
IContentVisualComponent
getPrefixViewXHTMLCode
in interface IContentVisualComponent
getPrefixViewXHTMLCode
in class AbstractVisualComponent
public String getSuffixViewXHTMLCode(ContentContext ctx)
IContentVisualComponent
getSuffixViewXHTMLCode
in interface IContentVisualComponent
getSuffixViewXHTMLCode
in class AbstractVisualComponent
public String getType()
IContentVisualComponent
getType
in interface IContentVisualComponent
public int changeAndGetMirrorinDepth(ContentContext ctx)
public String getViewXHTMLCode(ContentContext ctx) throws Exception
getViewXHTMLCode
in interface IFieldContainer
getViewXHTMLCode
in class AbstractVisualComponent
Exception
org.javlo.itf.IContentVisualComponent#getXHTMLCode()
public String getEmptyXHTMLCode(ContentContext ctx) throws Exception
IContentVisualComponent
getEmptyXHTMLCode
in interface IContentVisualComponent
getEmptyXHTMLCode
in class AbstractVisualComponent
Exception
public int getWordCount(ContentContext ctx)
IContentVisualComponent
getWordCount
in interface IContentVisualComponent
getWordCount
in class AbstractVisualComponent
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 AbstractVisualComponent
public boolean isList(ContentContext ctx)
IContentVisualComponent
isList
in interface IContentVisualComponent
isList
in class AbstractVisualComponent
public void unlink(ContentContext ctx) throws Exception
Exception
public String performEdit(ContentContext ctx) throws Exception
IContentVisualComponent
performEdit
in interface IContentVisualComponent
performEdit
in class AbstractVisualComponent
Exception
public String getLabel(ContentContext ctx)
getLabel
in interface IFieldContainer
public String getTextTitle(ContentContext ctx)
IContentVisualComponent
getTextTitle
in interface IContentVisualComponent
getTextTitle
in class AbstractVisualComponent
public String getTextLabel(ContentContext ctx)
IContentVisualComponent
getTextLabel
in interface IContentVisualComponent
getTextLabel
in class AbstractVisualComponent
public List<String> getFieldsNames(ContentContext ctx) throws Exception
getFieldsNames
in interface IFieldContainer
Exception
public List<Field> getFields(ContentContext ctx) throws Exception
getFields
in interface IFieldContainer
Exception
public Field getField(ContentContext ctx, String name) throws Exception
getField
in interface IFieldContainer
Exception
public String getFieldValue(ContentContext ctx, String name) throws Exception
getFieldValue
in interface IFieldContainer
Exception
public Map<String,String> getList(ContentContext ctx, String listName, Locale locale) throws Exception
getList
in interface IFieldContainer
Exception
public Map<String,String> getList(ContentContext ctx, String listName) throws Exception
getList
in interface IFieldContainer
Exception
public String getViewListXHTMLCode(ContentContext ctx) throws Exception
getViewListXHTMLCode
in interface IFieldContainer
Exception
public boolean isFieldContainer(ContentContext ctx)
isFieldContainer
in interface IFieldContainer
public String getContainerType(ContentContext ctx)
getContainerType
in interface IFieldContainer
public String getImageDescription(ContentContext ctx)
getImageDescription
in interface IImageTitle
public String getResourceURL(ContentContext ctx)
getResourceURL
in interface IImageTitle
public String getImageLinkURL(ContentContext ctx)
getImageLinkURL
in interface IImageTitle
public boolean isImageValid(ContentContext ctx)
isImageValid
in interface IImageTitle
public int getPriority(ContentContext ctx)
IImageTitle
getPriority
in interface IImageTitle
public String getSubTitle(ContentContext ctx)
getSubTitle
in interface ISubTitle
public int getSubTitleLevel(ContentContext ctx)
getSubTitleLevel
in interface ISubTitle
public boolean isRealContent(ContentContext ctx)
IContentVisualComponent
isRealContent
in interface IContentVisualComponent
isRealContent
in interface IFieldContainer
isRealContent
in class AbstractVisualComponent
ctx
- current contextpublic String getPageDescription(ContentContext ctx)
IContentVisualComponent
getPageDescription
in interface IContentVisualComponent
getPageDescription
in class AbstractVisualComponent
public int getLabelLevel(ContentContext ctx)
IContentVisualComponent
getLabelLevel
in interface IContentVisualComponent
getLabelLevel
in class AbstractVisualComponent
public String getXHTMLId(ContentContext ctx)
getXHTMLId
in interface ISubTitle
public boolean isMirroredByDefault(ContentContext ctx)
IContentVisualComponent
isMirroredByDefault
in interface IContentVisualComponent
isMirroredByDefault
in class AbstractVisualComponent
public int getComplexityLevel(ContentContext ctx)
IContentVisualComponent
getComplexityLevel
in interface IContentVisualComponent
getComplexityLevel
in class AbstractVisualComponent
ctx
- TODOpublic String getFontAwesome()
getFontAwesome
in interface IContentVisualComponent
getFontAwesome
in class AbstractVisualComponent
Copyright © 2012-2018. All Rights Reserved.