Class GUIAttribute
- java.lang.Object
-
- com.logicaldoc.gui.common.client.beans.GUIAttribute
-
- All Implemented Interfaces:
Serializable,Comparable<GUIAttribute>
public class GUIAttribute extends Object implements Comparable<GUIAttribute>, Serializable
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:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static intEDITOR_DEFAULTstatic intEDITOR_LISTBOXstatic intEDITOR_TEXTAREAstatic String[]FORBIDDEN_NAMESstatic intTYPE_BOOLEANstatic intTYPE_DATEstatic intTYPE_DOUBLEstatic intTYPE_FOLDERstatic intTYPE_INTstatic intTYPE_STRINGstatic intTYPE_STRING_PRESETstatic intTYPE_STRING_TEXTAREAstatic intTYPE_USER
-
Constructor Summary
Constructors Constructor Description GUIAttribute()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description GUIAttributeclone()intcompareTo(GUIAttribute o)BooleangetBooleanValue()DategetDateValue()StringgetDisplayName()DoublegetDoubleValue()intgetEditor()LonggetIntValue()StringgetLabel()StringgetName()String[]getOptions()StringgetParent()intgetPosition()This is the position of the attribute into the attributes listStringgetSet()LonggetSetId()StringgetStringValue()StringgetStringValues()intgetType()ObjectgetValue()Gets the attribute value.static booleanisForbidden(String name)booleanisHidden()booleanisMandatory()booleanisMultiple()voidsetBooleanValue(Boolean booleanValue)voidsetDateValue(Date dateValue)voidsetDoubleValue(Double doubleValue)voidsetEditor(int editor)voidsetHidden(boolean hidden)voidsetIntValue(Long intValue)voidsetLabel(String label)voidsetMandatory(boolean mandatory)voidsetMultiple(boolean multiple)voidsetName(String name)voidsetOptions(String[] options)voidsetParent(String parent)voidsetPosition(int position)voidsetSet(String set)voidsetSetId(Long setId)voidsetStringValue(String stringValue)voidsetStringValues(String stringValues)voidsetType(int type)voidsetValue(Object value)Sets the attribute value.StringtoString()
-
-
-
Field Detail
-
FORBIDDEN_NAMES
public static final String[] FORBIDDEN_NAMES
-
TYPE_STRING_PRESET
public static final int TYPE_STRING_PRESET
- See Also:
- Constant Field Values
-
TYPE_STRING_TEXTAREA
public static final int TYPE_STRING_TEXTAREA
- See Also:
- Constant Field Values
-
TYPE_STRING
public static final int TYPE_STRING
- See Also:
- Constant Field Values
-
TYPE_INT
public static final int TYPE_INT
- See Also:
- Constant Field Values
-
TYPE_DOUBLE
public static final int TYPE_DOUBLE
- See Also:
- Constant Field Values
-
TYPE_DATE
public static final int TYPE_DATE
- See Also:
- Constant Field Values
-
TYPE_USER
public static final int TYPE_USER
- See Also:
- Constant Field Values
-
TYPE_BOOLEAN
public static final int TYPE_BOOLEAN
- See Also:
- Constant Field Values
-
TYPE_FOLDER
public static final int TYPE_FOLDER
- See Also:
- Constant Field Values
-
EDITOR_DEFAULT
public static final int EDITOR_DEFAULT
- See Also:
- Constant Field Values
-
EDITOR_LISTBOX
public static final int EDITOR_LISTBOX
- See Also:
- Constant Field Values
-
EDITOR_TEXTAREA
public static final int EDITOR_TEXTAREA
- See Also:
- Constant Field Values
-
-
Method Detail
-
isForbidden
public static boolean isForbidden(String name)
-
getStringValue
public String getStringValue()
-
setStringValue
public void setStringValue(String stringValue)
-
getIntValue
public Long getIntValue()
-
setIntValue
public void setIntValue(Long intValue)
-
getDoubleValue
public Double getDoubleValue()
-
setDoubleValue
public void setDoubleValue(Double doubleValue)
-
getDateValue
public Date getDateValue()
-
setDateValue
public void setDateValue(Date dateValue)
-
getType
public int getType()
-
setType
public void setType(int type)
-
getValue
public Object getValue()
Gets the attribute value. It can be as String, Long, Double or Date.- Returns:
- The attribute value as Object.
-
setValue
public void setValue(Object value)
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
public int compareTo(GUIAttribute o)
- Specified by:
compareToin interfaceComparable<GUIAttribute>
-
getName
public String getName()
-
setName
public void setName(String name)
-
getLabel
public String getLabel()
-
setLabel
public void setLabel(String label)
-
getEditor
public int getEditor()
-
setEditor
public void setEditor(int editor)
-
getOptions
public String[] getOptions()
-
setOptions
public void setOptions(String[] options)
-
getBooleanValue
public Boolean getBooleanValue()
-
setBooleanValue
public void setBooleanValue(Boolean booleanValue)
-
getSet
public String getSet()
-
setSet
public void setSet(String set)
-
getSetId
public Long getSetId()
-
setSetId
public void setSetId(Long setId)
-
getDisplayName
public String getDisplayName()
-
isHidden
public boolean isHidden()
-
setHidden
public void setHidden(boolean hidden)
-
isMultiple
public boolean isMultiple()
-
setMultiple
public void setMultiple(boolean multiple)
-
getParent
public String getParent()
-
setParent
public void setParent(String parent)
-
clone
public GUIAttribute clone()
-
getStringValues
public String getStringValues()
-
setStringValues
public void setStringValues(String stringValues)
-
-