public class FieldFile extends Field implements IStaticContainer
Field.FieldBean
comp, DEFAULT_SEARCH_TYPE, globalContext, i18nAccess, LABEL_CSS, MESSAGE_ERROR, MESSAGE_INFO, properties, SMALL_PART_SIZE, SMALL_VALUE_SIZE, staticConfig, VALUE_SIZE
Constructor and Description |
---|
FieldFile() |
compareTo, createKey, fillRequest, getBean, getCloseRow, getContentAsMap, getCSSClass, getCurrentLocale, getDefaultLanguages, getDisplayValue, getEditLabelCode, getEditXHTMLCode, getFieldPrefix, getFieldSuffix, getForceModifFieldName, getGlobalContext, getI18nAccess, getId, getInitValue, getInputLabelName, getInputName, getLabel, getLabel, getList, getMaxSize, getMessage, getMessageType, getMessageTypeCSSClass, getMetaData, getMetaData, getMinSize, getName, getOpenRow, getOrder, getPageDescription, getPlaceholder, getPropertyValue, getReference, getReferenceComponent, getReferenceValue, getRemplacementCode, getSearchLabel, getSearchType, getSize, getSpecialClass, getStaticConfig, getTag, getTranslation, getUnicName, getUnity, getUnity, getUserLabel, getUserLabel, getValue, getValue, getValues, getValues, getViewListXHTMLCode, getWidthEdit, initContent, isContentCachable, isDiplayedInList, isFirst, isI18n, isLabelDisplayed, isLabelEditable, isLast, isNeeded, isNeedRefresh, isReadOnly, isRealContent, isSearch, isTitle, isValid, isViewDisplayed, isWrapped, main, newFieldBean, newInstance, referenceEditCode, referenceViewCode, reload, renderSelect, setCurrentLocale, setFirst, setGlobalContext, setI18nAccess, setId, setLabel, setLabelValue, setLast, setMessage, setMessageType, setName, setNeedRefresh, setPlaceholder, setProperties, setReadOnly, setStaticConfig, setValue, setValue, setValues, toString, validate
protected String getInputFolderName()
protected String getInputCreateFolderName()
protected String getFolderLabel()
protected String getInputFileName()
protected String getInputFileNameSelect()
protected String getInputAddFileName()
protected String getInputLabelFileName()
protected String getFileLabel()
protected String getLabelLabel()
protected String getAddFileLabel()
protected String getCreateFolderLabel()
protected String getFileType()
protected boolean isCategoryRecursive()
protected String getFileTypeFolder()
protected String getFileDirectory()
protected String getPreviewCode(ContentContext ctx, boolean title) throws Exception
Exception
public String getEditXHTMLCode(ContentContext ctx, boolean search) throws Exception
getEditXHTMLCode
in class Field
Exception
public String getSearchEditXHTMLCode(ContentContext ctx) throws Exception
getSearchEditXHTMLCode
in class Field
Exception
protected String getReferenceFieldView(ContentContext ctx) throws Exception
getReferenceFieldView
in class Field
ctx
- Exception
public String getCurrentLink()
protected String getInputLabelLinkName()
protected String getDeleteLinkName()
protected String getLinkLabel()
protected boolean isWithLink()
public boolean isPertinent(ContentContext ctx)
isPertinent
in class Field
public boolean search(ContentContext ctx, String query)
public String getViewXHTMLCode(ContentContext ctx) throws Exception
getViewXHTMLCode
in class Field
Exception
public String getURL(ContentContext ctx)
public boolean process(ContentContext ctx)
Field
public String getCurrentFolder()
public void setCurrentFolder(String folder)
public String getCurrentFile()
public void setCurrentFile(String file)
protected String getCurrentLabel()
protected String getViewLabel()
protected void setCurrentLabel(String label)
protected String getFileURL(ContentContext ctx, String fileLink)
public boolean contains(ContentContext ctx, String inURI)
IStaticContainer
contains
in interface IStaticContainer
inURI
- a uri to a static resourcespublic Collection<Resource> getAllResources(ContentContext ctx)
IStaticContainer
getAllResources
in interface IStaticContainer
public boolean renameResource(ContentContext ctx, File oldName, File newName)
IStaticContainer
renameResource
in interface IStaticContainer
public Collection<Link> getAllResourcesLinks(ContentContext ctx)
IStaticContainer
getAllResourcesLinks
in interface IStaticContainer
protected String getRelativeFileDirectory(ContentContext ctx)
protected StaticInfo getStaticInfo(ContentContext ctx) throws Exception
Exception
public int getPopularity(ContentContext ctx)
IStaticContainer
getPopularity
in interface IStaticContainer
public List<File> getFiles(ContentContext ctx)
getFiles
in interface IStaticContainer
public String getDirSelected()
IStaticContainer
getDirSelected
in interface IStaticContainer
public void setDirSelected(String dir)
IStaticContainer
setDirSelected
in interface IStaticContainer
protected boolean isLight()
protected String getRessourceURL(ContentContext ctx)
protected boolean isValueTranslatable()
isValueTranslatable
in class Field
public boolean transflateFrom(ContentContext ctx, ITranslator translator, String lang)
transflateFrom
in class Field
Copyright © 2012-2018. All Rights Reserved.