public class SmartLink extends ComplexPropertiesLink implements ILink, IAction
Modifier and Type | Field and Description |
---|---|
static String |
TYPE |
HEADER_V1_0, LABEL_KEY, LINK_KEY, 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 |
---|
SmartLink() |
Modifier and Type | Method and Description |
---|---|
String |
getActionGroupName()
the group name of the action
|
protected String |
getBodyId() |
String |
getDate() |
String |
getDateInputName() |
String |
getDescription() |
String |
getDescriptionInputName() |
protected String |
getEditXHTMLCode(ContentContext ctx) |
String |
getImageInputName() |
String |
getImageURL() |
Date |
getLatestValidDate() |
String |
getTextForSearch(ContentContext ctx)
return a text represent the content of the component. sample all the
content :-)
|
Date |
getTime() |
String |
getTitle() |
String |
getTitleInputName() |
String |
getType()
return the type of the element.
|
String |
getURL() |
String |
getURL(ContentContext ctx)
generate a URL or URI link with all elements to click on.
|
String |
getURLInputName() |
String |
getViewXHTMLCode(ContentContext ctx) |
protected boolean |
isAutoDeletable() |
boolean |
isLinkValid(ContentContext ctx)
return true if the link on the component is enabled
|
boolean |
isListable()
you display the composant as a list (if you want)
|
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.
|
String |
performEdit(ContentContext ctx)
action call when update the content page.
|
static String |
performLoadLink(RequestService rs,
ContentContext ctx,
javax.servlet.ServletContext application,
Module currentModule,
MessageRepository messageRepository,
I18nAccess i18nAccess) |
void |
setDate(String date) |
void |
setDescription(String description) |
void |
setImageURL(String url) |
void |
setLatestValidDate(Date date) |
void |
setTitle(String title) |
void |
setURL(String url) |
equals, getField, getField, getFontAwesome, getLinkLabelName, getLinkName, init, isContentCachable, reloadProperties, setField, setValue, storeProperties
applyReplacement, cleanValue, clearReplacement, clone, compareTo, contructViewStyle, countLine, delete, deleteMySelf, equals, executeCurrentRenderer, executeJSP, executeRenderer, executeRenderer, extractFieldsFromRenderer, getAjaxId, getArea, getAuthors, getBackgroundColor, getBaseHelpURL, getClassName, getComplexityLevel, 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, getEmptyXHTMLCode, getErrorMessage, getErrorMessage, getExternalResources, getFirstPrefix, getForcedId, getForcedPrefixViewXHTMLCode, getForcedSuffixViewXHTMLCode, getFormName, getHeaderContent, getHelpType, getHelpURI, getHelpURL, getHexColor, getI18nEditableKeys, getId, getImportFolderPath, getImportFolderPath, getInlineStyle, getInputName, getInputNameRenderer, getInputNameRendererTitle, getItalicAndStrongLanguageMarkerList, getJSOnSubmit, getKey, getLabelLevel, 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, getSearchLevel, getSelectRendererXHTML, getSpecialInputTag, getSpecialPreviewCssClass, getSpecialPreviewCssId, getSpecialTagTitle, getSpecialTagXHTML, getSpecificClass, getStyle, getStyleLabel, getStyleLabelList, getStyleList, getStyleTitle, getSuffixViewXHTMLCode, getTag, getTextColor, getTextLabel, getTextMessage, getTextTitle, getTitleLevel, getTypeInputName, getValue, getValue, getVersion, getViewData, getViewDataFile, getViewID, getViewText, getWidth, getWordCount, getXHTMLCode, getXHTMLConfig, haveRight, includeComponentJSP, includePage, init, initContent, insert, isAjaxWrapper, isAskWidth, isAutoRenderer, isBackgroundColored, isCanAddClass, isColored, isConfig, isContentCachableByQuery, isContentTimeCachable, isDefaultValue, isDispayEmptyXHTMLCode, isDisplayable, isDisplayHidden, isEditOnCreate, isFirstElementOfRepeatSequence, isFirstRepeated, isFreeInputLayout, isHelpURL, isHiddable, isHidden, isHiddenInMode, isInline, isInsertable, isList, isMetaTitle, isMirroredByDefault, 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, prepareView, 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, transflateFrom
public static final String TYPE
public String getURL(ContentContext ctx) throws Exception
ILink
public boolean isLinkValid(ContentContext ctx) throws Exception
ILink
isLinkValid
in interface ILink
Exception
public String getType()
IContentVisualComponent
getType
in interface IContentVisualComponent
protected String getBodyId()
public String getURLInputName()
public String getTitleInputName()
public String getDateInputName()
public String getDescriptionInputName()
public String getImageInputName()
public String getURL()
public void setURL(String url)
public String getDate()
public void setDate(String date)
public Date getTime()
public String getDescription()
public void setDescription(String description)
public String getTitle()
public void setTitle(String title)
public String getImageURL()
public void setImageURL(String url)
protected boolean isAutoDeletable()
isAutoDeletable
in class AbstractVisualComponent
public String getTextForSearch(ContentContext ctx)
IContentVisualComponent
getTextForSearch
in interface IContentVisualComponent
getTextForSearch
in class AbstractVisualComponent
public String getViewXHTMLCode(ContentContext ctx) throws Exception
getViewXHTMLCode
in class AbstractVisualComponent
Exception
protected String getEditXHTMLCode(ContentContext ctx) throws Exception
getEditXHTMLCode
in class AbstractVisualComponent
Exception
public static String performLoadLink(RequestService rs, ContentContext ctx, javax.servlet.ServletContext application, Module currentModule, MessageRepository messageRepository, I18nAccess i18nAccess) throws Exception
Exception
public String getActionGroupName()
IAction
getActionGroupName
in interface IAction
public String performEdit(ContentContext ctx) throws Exception
IContentVisualComponent
performEdit
in interface IContentVisualComponent
performEdit
in class AbstractVisualComponent
Exception
public boolean isListable()
IContentVisualComponent
isListable
in interface IContentVisualComponent
isListable
in class AbstractVisualComponent
public void setLatestValidDate(Date date)
setLatestValidDate
in interface ILink
public Date getLatestValidDate()
getLatestValidDate
in interface ILink
public boolean isRealContent(ContentContext ctx)
IContentVisualComponent
isRealContent
in interface IContentVisualComponent
isRealContent
in class ComplexPropertiesLink
ctx
- current contextCopyright © 2012-2018. All Rights Reserved.