Class GUIAttribute
java.lang.Object
com.logicaldoc.gui.common.client.beans.GUIAttribute
- All Implemented Interfaces:
- Serializable,- Comparable<GUIAttribute>
This class defines the value of an attribute associated to an extensible
 object. For each value, is possible to define the type and if it is mandatory
 or not.
- Since:
- 4.5.1
- Author:
- Matteo Caruso - LogicalDOC
- See Also:
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final int
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionintbooleanintgetLabel()getName()intThis is the position of the attribute into the attributes listgetSet()getSetId()intgetType()getValue()Gets the attribute value.inthashCode()static booleanisForbidden(String name) booleanisHidden()booleanbooleanbooleanbooleanvoidsetBooleanValue(Boolean booleanValue) voidsetDateValue(Date dateValue) voidsetDependsOn(String dependsOn) voidsetDoubleValue(Double doubleValue) voidsetEditor(int editor) voidsetHidden(boolean hidden) voidsetInitialization(String initialization) voidsetIntValue(Long intValue) voidvoidsetMandatory(boolean mandatory) voidsetMultiple(boolean multiple) voidvoidsetOptions(List<String> options) voidvoidsetPosition(int position) voidsetReadonly(boolean readonly) voidvoidvoidsetStringValue(String stringValue) voidsetStringValues(String stringValues) voidsetType(int type) voidsetUsername(String username) voidsetValidation(String validation) voidSets the attribute value.toString()
- 
Field Details- 
TYPE_STRING_PRESETpublic static final int TYPE_STRING_PRESET- See Also:
 
- 
TYPE_STRING_TEXTAREApublic static final int TYPE_STRING_TEXTAREA- See Also:
 
- 
TYPE_STRINGpublic static final int TYPE_STRING- See Also:
 
- 
TYPE_INTpublic static final int TYPE_INT- See Also:
 
- 
TYPE_DOUBLEpublic static final int TYPE_DOUBLE- See Also:
 
- 
TYPE_DATEpublic static final int TYPE_DATE- See Also:
 
- 
TYPE_USERpublic static final int TYPE_USER- See Also:
 
- 
TYPE_BOOLEANpublic static final int TYPE_BOOLEAN- See Also:
 
- 
TYPE_FOLDERpublic static final int TYPE_FOLDER- See Also:
 
- 
TYPE_DOCUMENTpublic static final int TYPE_DOCUMENT- See Also:
 
- 
TYPE_SECTIONpublic static final int TYPE_SECTION- See Also:
 
- 
EDITOR_DEFAULTpublic static final int EDITOR_DEFAULT- See Also:
 
- 
EDITOR_LISTBOXpublic static final int EDITOR_LISTBOX- See Also:
 
- 
EDITOR_TEXTAREApublic static final int EDITOR_TEXTAREA- See Also:
 
 
- 
- 
Constructor Details- 
GUIAttributepublic GUIAttribute()
- 
GUIAttribute
 
- 
- 
Method Details- 
isForbidden
- 
getStringValue
- 
setStringValue
- 
getIntValue
- 
setIntValue
- 
getDoubleValue
- 
setDoubleValue
- 
getDateValue
- 
setDateValue
- 
getTypepublic int getType()
- 
setTypepublic void setType(int type) 
- 
isSectionpublic boolean isSection()
- 
isReadonlypublic boolean isReadonly()
- 
setReadonlypublic void setReadonly(boolean readonly) 
- 
getValueGets the attribute value. It can be as String, Long, Double or Date.- Returns:
- The attribute value as Object.
 
- 
setValueSets the attribute value. It can be as String, Long, Double or Date.- Parameters:
- value- The attribute value.
 
- 
isMandatorypublic boolean isMandatory()
- 
setMandatorypublic void setMandatory(boolean mandatory) 
- 
getPositionpublic int getPosition()This is the position of the attribute into the attributes list- Returns:
- the position
 
- 
setPositionpublic void setPosition(int position) 
- 
compareTo- Specified by:
- compareToin interface- Comparable<GUIAttribute>
 
- 
equals
- 
hashCodepublic int hashCode()
- 
getName
- 
setName
- 
getLabel
- 
setLabel
- 
getEditorpublic int getEditor()
- 
setEditorpublic void setEditor(int editor) 
- 
getOptions
- 
setOptions
- 
getBooleanValue
- 
setBooleanValue
- 
getSet
- 
setSet
- 
getSetId
- 
setSetId
- 
getDisplayName
- 
isHiddenpublic boolean isHidden()
- 
setHiddenpublic void setHidden(boolean hidden) 
- 
isMultiplepublic boolean isMultiple()
- 
setMultiplepublic void setMultiple(boolean multiple) 
- 
getParent
- 
setParent
- 
getStringValues
- 
setStringValues
- 
getUsername
- 
setUsername
- 
getValidation
- 
setValidation
- 
getInitialization
- 
setInitialization
- 
getDependsOn
- 
setDependsOn
- 
toString
- 
getForbiddenNames
 
-