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:
  • Field Details

  • Constructor Details

    • GUIAttribute

      public GUIAttribute()
    • GUIAttribute

      public GUIAttribute(GUIAttribute source)
  • Method Details

    • 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)
    • isReadonly

      public boolean isReadonly()
    • setReadonly

      public void setReadonly(boolean readonly)
    • 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:
      compareTo in interface Comparable<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)
    • getStringValues

      public String getStringValues()
    • setStringValues

      public void setStringValues(String stringValues)
    • getUsername

      public String getUsername()
    • setUsername

      public void setUsername(String username)
    • getValidation

      public String getValidation()
    • setValidation

      public void setValidation(String validation)
    • getInitialization

      public String getInitialization()
    • setInitialization

      public void setInitialization(String initialization)
    • getDependsOn

      public String getDependsOn()
    • setDependsOn

      public void setDependsOn(String dependsOn)
    • toString

      public String toString()
      Overrides:
      toString in class Object