Package org.javlo.fields
Class FieldExternalLink
- java.lang.Object
-
- org.javlo.fields.Field
-
- org.javlo.fields.MetaField
-
- org.javlo.fields.FieldExternalLink
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
FieldExternalLink.ExternalLinkBean
-
Nested classes/interfaces inherited from class org.javlo.fields.Field
Field.FieldBean
-
-
Field Summary
-
Fields inherited from class org.javlo.fields.Field
comp, DEFAULT_SEARCH_TYPE, globalContext, i18nAccess, LABEL_CSS, MESSAGE_ERROR, MESSAGE_INFO, properties, SMALL_PART_SIZE, SMALL_VALUE_SIZE, staticConfig, VALUE_SIZE
-
-
Constructor Summary
Constructors Constructor Description FieldExternalLink()
-
Method Summary
-
Methods inherited from class org.javlo.fields.Field
compareTo, createKey, defaultLabelDisplayed, fillRequest, getBean, getCloseRow, getContentAsMap, getCssClass, getCSSClass, getCurrentLocale, getDefaultLanguages, getDefaultPrefix, getDefaultSuffix, getDisplayValue, getEditLabelCode, getEditXHTMLCode, getFieldPrefix, getFieldSuffix, getForceModifFieldName, getFormatedValue, getGlobalContext, getHtml, getI18nAccess, getId, getInitValue, getInputName, getLabel, getLabel, getList, getMaxSize, getMessage, getMessageType, getMessageTypeCSSClass, getMetaData, getMetaData, getMinSize, getName, getOpenRow, getOrder, getPageDescription, getPlaceholder, getPropertyValue, getReference, getReferenceComponent, getReferenceFieldView, getReferenceFormatedValue, getReferenceValue, getRemplacementCode, getSearchEditXHTMLCode, getSearchLabel, getSearchType, getSize, getSpecialClass, getStaticConfig, getTag, getTranslation, getUnicName, getUnity, getUnity, getUserLabel, getUserLabel, getValue, getValue, getValues, getValues, getViewListXHTMLCode, getWidthEdit, getXHTMLValue, initContent, isDiplayedInList, isFirst, isI18n, isLabelDisplayed, isLabelEditable, isLast, isNeeded, isNeedRefresh, isReadOnly, isRealContent, isSearch, isTitle, isValid, isValueTranslatable, isViewDisplayed, main, newInstance, referenceEditCode, referenceViewCode, reload, renderSelect, search, setCurrentLocale, setFirst, setGlobalContext, setI18nAccess, setId, setLabel, setLabelValue, setLast, setMessage, setMessageType, setName, setNeedRefresh, setPlaceholder, setProperties, setReadOnly, setStaticConfig, setValue, setValue, setValues, toString, transflateFrom, validate
-
-
-
-
Method Detail
-
getLabelLabel
protected String getLabelLabel()
-
getLinkLabel
protected String getLinkLabel()
-
getInputLinkName
public String getInputLinkName()
-
getInputLabelName
public String getInputLabelName()
- Overrides:
getInputLabelName
in classField
-
getViewXHTMLCode
public String getViewXHTMLCode(ContentContext ctx) throws Exception
- Overrides:
getViewXHTMLCode
in classMetaField
- Throws:
Exception
-
getEditXHTMLCode
public String getEditXHTMLCode(ContentContext ctx, boolean search) throws Exception
- Overrides:
getEditXHTMLCode
in classField
- Throws:
Exception
-
process
public boolean process(ContentContext ctx)
Description copied from class:Field
process the field
-
getCurrentLink
protected String getCurrentLink()
-
setCurrentLink
public void setCurrentLink(String link)
-
getCurrentLinkErrorMessage
protected String getCurrentLinkErrorMessage()
-
setCurrentLinkErrorMessage
protected void setCurrentLinkErrorMessage(String message)
-
getCurrentLabel
protected String getCurrentLabel()
-
setCurrentLabel
protected void setCurrentLabel(String label)
-
isPertinent
public boolean isPertinent(ContentContext ctx)
- Overrides:
isPertinent
in classField
-
isContentCachable
public boolean isContentCachable()
- Overrides:
isContentCachable
in classField
-
isPublished
public boolean isPublished(ContentContext ctx)
- Specified by:
isPublished
in classMetaField
-
getURL
public String getURL(ContentContext ctx) throws Exception
Description copied from interface:ILink
generate a URL or URI link with all elements to click on.
-
isLinkValid
public boolean isLinkValid(ContentContext ctx) throws Exception
Description copied from interface:ILink
return true if the link on the component is enabled- Specified by:
isLinkValid
in interfaceILink
- Returns:
- Throws:
Exception
-
newFieldBean
protected Field.FieldBean newFieldBean(ContentContext ctx)
- Overrides:
newFieldBean
in classField
-
setLatestValidDate
public void setLatestValidDate(Date date)
- Specified by:
setLatestValidDate
in interfaceILink
-
getLatestValidDate
public Date getLatestValidDate()
- Specified by:
getLatestValidDate
in interfaceILink
-
-