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 Summary
FieldsModifier 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 Summary
Constructors -
Method Summary
Modifier 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_PRESET
public static final int TYPE_STRING_PRESET- See Also:
-
TYPE_STRING_TEXTAREA
public static final int TYPE_STRING_TEXTAREA- See Also:
-
TYPE_STRING
public static final int TYPE_STRING- See Also:
-
TYPE_INT
public static final int TYPE_INT- See Also:
-
TYPE_DOUBLE
public static final int TYPE_DOUBLE- See Also:
-
TYPE_DATE
public static final int TYPE_DATE- See Also:
-
TYPE_USER
public static final int TYPE_USER- See Also:
-
TYPE_BOOLEAN
public static final int TYPE_BOOLEAN- See Also:
-
TYPE_FOLDER
public static final int TYPE_FOLDER- See Also:
-
TYPE_DOCUMENT
public static final int TYPE_DOCUMENT- See Also:
-
TYPE_SECTION
public static final int TYPE_SECTION- See Also:
-
EDITOR_DEFAULT
public static final int EDITOR_DEFAULT- See Also:
-
EDITOR_LISTBOX
public static final int EDITOR_LISTBOX- See Also:
-
EDITOR_TEXTAREA
public static final int EDITOR_TEXTAREA- See Also:
-
-
Constructor Details
-
GUIAttribute
public GUIAttribute() -
GUIAttribute
-
-
Method Details
-
isForbidden
-
getStringValue
-
setStringValue
-
getIntValue
-
setIntValue
-
getDoubleValue
-
setDoubleValue
-
getDateValue
-
setDateValue
-
getType
public int getType() -
setType
public void setType(int type) -
isSection
public boolean isSection() -
isReadonly
public boolean isReadonly() -
setReadonly
public void setReadonly(boolean readonly) -
getValue
Gets the attribute value. It can be as String, Long, Double or Date.- Returns:
- The attribute value as Object.
-
setValue
Sets the attribute value. It can be as String, Long, Double or Date.- Parameters:
value- The attribute value.
-
isMandatory
public boolean isMandatory() -
setMandatory
public void setMandatory(boolean mandatory) -
getPosition
public int getPosition()This is the position of the attribute into the attributes list- Returns:
- the position
-
setPosition
public void setPosition(int position) -
compareTo
- Specified by:
compareToin interfaceComparable<GUIAttribute>
-
equals
-
hashCode
public int hashCode() -
getName
-
setName
-
getLabel
-
setLabel
-
getEditor
public int getEditor() -
setEditor
public void setEditor(int editor) -
getOptions
-
setOptions
-
getBooleanValue
-
setBooleanValue
-
getSet
-
setSet
-
getSetId
-
setSetId
-
getDisplayName
-
isHidden
public boolean isHidden() -
setHidden
public void setHidden(boolean hidden) -
isMultiple
public boolean isMultiple() -
setMultiple
public void setMultiple(boolean multiple) -
getParent
-
setParent
-
getStringValues
-
setStringValues
-
getUsername
-
setUsername
-
getValidation
-
setValidation
-
getInitialization
-
setInitialization
-
getDependsOn
-
setDependsOn
-
toString
-
getForbiddenNames
-