public class Heading extends AbstractPropertiesComponent implements ISubTitle
| Modifier and Type | Field and Description |
|---|---|
static String |
SMALL_TEXT |
static String |
TEXT |
static String |
TYPE |
propertiesCACHE_KEY_SUFFIX_PARAM_NAME, COMPONENT_KEY, config, EDIT_CLASS, FORCE_COMPONENT_ID, HIDDEN, I18N_FILE, logger, 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_COLOR| Constructor and Description |
|---|
Heading() |
| Modifier and Type | Method and Description |
|---|---|
int |
getDepth(ContentContext ctx) |
protected String |
getEditXHTMLCode(ContentContext ctx) |
List<String> |
getFields(ContentContext ctx) |
String |
getFontAwesome() |
protected String |
getForcedPrefixViewXHTMLCode(ContentContext ctx) |
String |
getHexColor()
get the exadecimal color for representation of the component.
|
protected String |
getInlineStyle(ContentContext ctx) |
int |
getLabelLevel(ContentContext ctx)
define the level of label.
|
int |
getSearchLevel()
return the level of the component is a search.
|
String |
getSpecialPreviewCssId(ContentContext ctx) |
String |
getSubTitle(ContentContext ctx) |
int |
getSubTitleLevel(ContentContext ctx) |
String |
getSuffixViewXHTMLCode(ContentContext ctx)
code for sufix the view XHTML code.
|
protected String |
getTag(ContentContext ctx) |
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
|
protected String |
getTitle(ContentContext ctx) |
String |
getType()
return the type of the element.
|
String |
getViewXHTMLCode(ContentContext ctx) |
String |
getXHTMLConfig(ContentContext ctx)
xhtml code for config the component
|
String |
getXHTMLId(ContentContext ctx) |
protected void |
init() |
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 |
isDefaultValue(ContentContext ctx)
return true if value is never modified.
|
protected boolean |
isHiddable() |
boolean |
isListable()
you display the composant as a list (if you want)
|
boolean |
isNoLinkable() |
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 |
isValueTranslatable() |
static void |
main(String[] args) |
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
|
createKeyWithField, getContentAsMap, getContentAsText, getFieldDoubleValue, getFieldLongValue, getFieldName, getFieldType, getFieldValue, getFieldValue, getHeader, getListSeparator, getRowSize, getWordCount, setFieldValue, storeProperties, transflateFrom, validateFieldapplyReplacement, cleanValue, clearReplacement, clone, compareTo, contructViewStyle, countLine, delete, deleteMySelf, equals, equals, executeCurrentRenderer, executeJSP, executeRenderer, executeRenderer, extractFieldsFromRenderer, getAjaxId, getArea, getAuthors, getBackgroundColor, getBaseHelpURL, getClassName, getComplexityLevel, getComponentBean, getComponentCSS, getComponentCssClass, getComponentId, getComponentLabel, getComponentPath, getConfig, getConfigMessage, getContainerPage, getContentCache, getContentMessage, getContentName, getContentTimeCache, getCookiesDisplayStatus, getCreationDate, getCSSStyle, getCurrentPage, getCurrentRenderer, getDebugHeader, getDefaultHelpURI, getDefaultRenderer, getDeleteDate, getDescription, getDisplayAsInputName, getDisplayMessage, getEditorComplexity, getEditText, getEmptyCode, getEmptyXHTMLCode, getErrorMessage, getErrorMessage, getExternalResources, getFirstPrefix, getForcedId, getForcedSuffixViewXHTMLCode, getFormName, getHeaderContent, getHelpType, getHelpURI, getHelpURL, getI18nEditableKeys, getId, getImportFolderPath, getImportFolderPath, getInputName, getInputNameRenderer, getInputNameRendererTitle, getItalicAndStrongLanguageMarkerList, getJSOnSubmit, getKey, getLastSufix, getLayout, getListClass, getListGroup, getListItemTag, getListTag, getLock, getMarkerList, getMessage, getMirrorWrapper, getModificationDate, getNextComponent, getPage, getPageDescription, getPrefixViewXHTMLCode, getPreviewAttributes, getPreviewCssClass, getPreviewCssId, getPreviousComponent, getQuotationLanguageMarkerList, getRemplacement, getRenderer, getRendererTitle, getRenderes, getRequestComponent, getSelectRendererXHTML, getSpecialInputTag, getSpecialPreviewCssClass, getSpecialTagTitle, getSpecialTagXHTML, getSpecificClass, getStyle, getStyleLabel, getStyleLabelList, getStyleList, getStyleTitle, getTextColor, getTextForSearch, getTextMessage, getTitleLevel, getTypeInputName, getValue, getValue, getVersion, getViewData, getViewDataFile, getViewID, getViewText, getWidth, getXHTMLCode, haveRight, includeComponentJSP, includePage, insert, isAjaxWrapper, isAskWidth, isAutoDeletable, isAutoRenderer, isBackgroundColored, isCanAddClass, isColored, isConfig, isContentCachableByQuery, isContentTimeCachable, isDispayEmptyXHTMLCode, isDisplayable, isDisplayHidden, isEditOnCreate, isFirstElementOfRepeatSequence, isFirstRepeated, isFreeInputLayout, isHelpURL, isHidden, isHiddenInMode, isInline, isInsertable, isList, isMetaTitle, isMirroredByDefault, isMirrorWrapped, isModify, isNeedDelete, isNeedRefresh, isNeedRenderer, isNew, isNextSame, isNextSame, isNolink, isPreviousSame, isPreviousSame, isRepeat, isRepeatable, isRestMatch, isReversedLink, isUnique, isValueProperties, 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, setValue, setWidth, stored, storeViewData, stringToReader, stringToReader, stringToStream, textToXHTMLpublic static final String TYPE
public static final String TEXT
public static final String SMALL_TEXT
public String getType()
IContentVisualComponentgetType in interface IContentVisualComponentpublic List<String> getFields(ContentContext ctx) throws Exception
getFields in class AbstractPropertiesComponentExceptionpublic void prepareView(ContentContext ctx) throws Exception
AbstractVisualComponentprepareView in class AbstractPropertiesComponentExceptionprotected String getEditXHTMLCode(ContentContext ctx) throws Exception
getEditXHTMLCode in class AbstractPropertiesComponentExceptionpublic int getDepth(ContentContext ctx)
public String getTextTitle(ContentContext ctx)
IContentVisualComponentgetTextTitle in interface IContentVisualComponentgetTextTitle in class AbstractVisualComponentpublic String getTextLabel(ContentContext ctx)
IContentVisualComponentgetTextLabel in interface IContentVisualComponentgetTextLabel in class AbstractVisualComponentpublic String getViewXHTMLCode(ContentContext ctx) throws Exception
getViewXHTMLCode in class AbstractPropertiesComponentExceptionprotected String getTitle(ContentContext ctx) throws ServiceException, Exception
ServiceExceptionExceptionprotected String getTag(ContentContext ctx)
getTag in class AbstractVisualComponentpublic boolean isListable()
IContentVisualComponentisListable in interface IContentVisualComponentisListable in class AbstractVisualComponentpublic int getSearchLevel()
IContentVisualComponentgetSearchLevel in interface IContentVisualComponentgetSearchLevel in class AbstractVisualComponentpublic String getHexColor()
IContentVisualComponentgetHexColor in interface IContentVisualComponentgetHexColor in class AbstractVisualComponentprotected void init()
throws ResourceNotFoundException
init in class AbstractVisualComponentResourceNotFoundExceptionpublic void init(ComponentBean bean, ContentContext newContext) throws Exception
init in class AbstractPropertiesComponentExceptionpublic boolean initContent(ContentContext ctx) throws Exception
IContentVisualComponentinitContent in interface IContentVisualComponentinitContent in class AbstractVisualComponentExceptionpublic String getSubTitle(ContentContext ctx)
getSubTitle in interface ISubTitlepublic int getSubTitleLevel(ContentContext ctx)
getSubTitleLevel in interface ISubTitlepublic int getLabelLevel(ContentContext ctx)
IContentVisualComponentgetLabelLevel in interface IContentVisualComponentgetLabelLevel in class AbstractVisualComponentpublic String getXHTMLId(ContentContext ctx)
getXHTMLId in interface ISubTitleprotected String getInlineStyle(ContentContext ctx)
getInlineStyle in class AbstractVisualComponentpublic String getXHTMLConfig(ContentContext ctx) throws Exception
IContentVisualComponentgetXHTMLConfig in interface IContentVisualComponentgetXHTMLConfig in class AbstractVisualComponentExceptionpublic String getSpecialPreviewCssId(ContentContext ctx)
getSpecialPreviewCssId in class AbstractVisualComponentprotected boolean isHiddable()
isHiddable in class AbstractVisualComponentprotected String getForcedPrefixViewXHTMLCode(ContentContext ctx)
getForcedPrefixViewXHTMLCode in class AbstractVisualComponentpublic String getSuffixViewXHTMLCode(ContentContext ctx)
IContentVisualComponentgetSuffixViewXHTMLCode in interface IContentVisualComponentgetSuffixViewXHTMLCode in class AbstractVisualComponentpublic boolean isRealContent(ContentContext ctx)
IContentVisualComponentisRealContent in interface IContentVisualComponentisRealContent in class AbstractPropertiesComponentctx - current contextpublic boolean isNoLinkable()
isNoLinkable in class AbstractVisualComponentpublic boolean isContentCachable(ContentContext ctx)
IContentVisualComponentisContentCachable in interface IContentVisualComponentisContentCachable in class AbstractVisualComponentpublic String performEdit(ContentContext ctx) throws Exception
IContentVisualComponentperformEdit in interface IContentVisualComponentperformEdit in class AbstractPropertiesComponentExceptionpublic boolean isDefaultValue(ContentContext ctx)
IContentVisualComponentisDefaultValue in interface IContentVisualComponentisDefaultValue in class AbstractVisualComponentpublic String getFontAwesome()
getFontAwesome in interface IContentVisualComponentgetFontAwesome in class AbstractVisualComponentpublic static void main(String[] args)
protected boolean isValueTranslatable()
isValueTranslatable in class AbstractVisualComponentCopyright © 2012-2018. All Rights Reserved.