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
Modifier and TypeFieldDescriptionstatic final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
boolean
int
getLabel()
getName()
int
This is the position of the attribute into the attributes listgetSet()
getSetId()
int
getType()
getValue()
Gets the attribute value.int
hashCode()
static boolean
isForbidden
(String name) boolean
isHidden()
boolean
boolean
boolean
boolean
void
setBooleanValue
(Boolean booleanValue) void
setDateValue
(Date dateValue) void
setDependsOn
(String dependsOn) void
setDoubleValue
(Double doubleValue) void
setEditor
(int editor) void
setHidden
(boolean hidden) void
setInitialization
(String initialization) void
setIntValue
(Long intValue) void
void
setMandatory
(boolean mandatory) void
setMultiple
(boolean multiple) void
void
setOptions
(List<String> options) void
void
setPosition
(int position) void
setReadonly
(boolean readonly) void
void
void
setStringValue
(String stringValue) void
setStringValues
(String stringValues) void
setType
(int type) void
setUsername
(String username) void
setValidation
(String validation) void
Sets 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:
compareTo
in 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
-