public class Heading extends AbstractPropertiesComponent implements ISubTitle
Modifier and Type | Field and Description |
---|---|
static String |
SMALL_TEXT |
static String |
TEXT |
static String |
TYPE |
properties
CACHE_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_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
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, validateField
applyReplacement, 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, textToXHTML
public static final String TYPE
public static final String TEXT
public static final String SMALL_TEXT
public String getType()
IContentVisualComponent
getType
in interface IContentVisualComponent
public List<String> getFields(ContentContext ctx) throws Exception
getFields
in class AbstractPropertiesComponent
Exception
public void prepareView(ContentContext ctx) throws Exception
AbstractVisualComponent
prepareView
in class AbstractPropertiesComponent
Exception
protected String getEditXHTMLCode(ContentContext ctx) throws Exception
getEditXHTMLCode
in class AbstractPropertiesComponent
Exception
public int getDepth(ContentContext ctx)
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 String getViewXHTMLCode(ContentContext ctx) throws Exception
getViewXHTMLCode
in class AbstractPropertiesComponent
Exception
protected String getTitle(ContentContext ctx) throws ServiceException, Exception
ServiceException
Exception
protected String getTag(ContentContext ctx)
getTag
in class AbstractVisualComponent
public boolean isListable()
IContentVisualComponent
isListable
in interface IContentVisualComponent
isListable
in class AbstractVisualComponent
public int getSearchLevel()
IContentVisualComponent
getSearchLevel
in interface IContentVisualComponent
getSearchLevel
in class AbstractVisualComponent
public String getHexColor()
IContentVisualComponent
getHexColor
in interface IContentVisualComponent
getHexColor
in class AbstractVisualComponent
protected void init() throws ResourceNotFoundException
init
in class AbstractVisualComponent
ResourceNotFoundException
public void init(ComponentBean bean, ContentContext newContext) throws Exception
init
in class AbstractPropertiesComponent
Exception
public boolean initContent(ContentContext ctx) throws Exception
IContentVisualComponent
initContent
in interface IContentVisualComponent
initContent
in class AbstractVisualComponent
Exception
public String getSubTitle(ContentContext ctx)
getSubTitle
in interface ISubTitle
public int getSubTitleLevel(ContentContext ctx)
getSubTitleLevel
in interface ISubTitle
public int getLabelLevel(ContentContext ctx)
IContentVisualComponent
getLabelLevel
in interface IContentVisualComponent
getLabelLevel
in class AbstractVisualComponent
public String getXHTMLId(ContentContext ctx)
getXHTMLId
in interface ISubTitle
protected String getInlineStyle(ContentContext ctx)
getInlineStyle
in class AbstractVisualComponent
public String getXHTMLConfig(ContentContext ctx) throws Exception
IContentVisualComponent
getXHTMLConfig
in interface IContentVisualComponent
getXHTMLConfig
in class AbstractVisualComponent
Exception
public String getSpecialPreviewCssId(ContentContext ctx)
getSpecialPreviewCssId
in class AbstractVisualComponent
protected boolean isHiddable()
isHiddable
in class AbstractVisualComponent
protected String getForcedPrefixViewXHTMLCode(ContentContext ctx)
getForcedPrefixViewXHTMLCode
in class AbstractVisualComponent
public String getSuffixViewXHTMLCode(ContentContext ctx)
IContentVisualComponent
getSuffixViewXHTMLCode
in interface IContentVisualComponent
getSuffixViewXHTMLCode
in class AbstractVisualComponent
public boolean isRealContent(ContentContext ctx)
IContentVisualComponent
isRealContent
in interface IContentVisualComponent
isRealContent
in class AbstractPropertiesComponent
ctx
- current contextpublic boolean isNoLinkable()
isNoLinkable
in class AbstractVisualComponent
public boolean isContentCachable(ContentContext ctx)
IContentVisualComponent
isContentCachable
in interface IContentVisualComponent
isContentCachable
in class AbstractVisualComponent
public String performEdit(ContentContext ctx) throws Exception
IContentVisualComponent
performEdit
in interface IContentVisualComponent
performEdit
in class AbstractPropertiesComponent
Exception
public boolean isDefaultValue(ContentContext ctx)
IContentVisualComponent
isDefaultValue
in interface IContentVisualComponent
isDefaultValue
in class AbstractVisualComponent
public String getFontAwesome()
getFontAwesome
in interface IContentVisualComponent
getFontAwesome
in class AbstractVisualComponent
public static void main(String[] args)
protected boolean isValueTranslatable()
isValueTranslatable
in class AbstractVisualComponent
Copyright © 2012-2018. All Rights Reserved.