Class TableProperty
java.lang.Object
ro.sync.ecss.extensions.commons.table.properties.TableProperty
Class representing a table property. It contains the name of the property,
 possible values, icons for the values, current set value of the property,
 the group that contains it, the type of GUI elements that will be used to
 present the property in the "Table properties" dialog.
- 
Constructor SummaryConstructorsConstructorDescriptionTableProperty(String propertyName, String propertyRenderString, List<String> propertyValues, String currentValue) Constructor.TableProperty(String propertyName, String propertyRenderString, List<String> propertyValues, String currentValue, boolean isAttribute) Constructor.TableProperty(String propertyName, String propertyRenderString, List<String> propertyValues, String currentValue, boolean isAttribute, boolean isActive) Constructor.TableProperty(String propertyName, String propertyRenderString, List<String> propertyValues, String currentValue, String parentGroup, GuiElements guiType, Map<String, String> icons, boolean isAttribute, boolean isActive) Constructor.
- 
Method SummaryModifier and TypeMethodDescriptionbooleanObtain the property name.Obtain the render string fort the property.Obtain the current value for the attributes.Obtain the type of GUI elements which will be used to present the values for the property.getIcons()Obtain the icons for the property values.Obtain the old set value.Obtain the group that includes the current property.Obtain the property possible values.inthashCode()booleanisActive()Check if the property can be edited through the properties dialog.booleantrueif the current property represents an attribute.voidsetCurrentValue(String currentValue) Set a new current value for the property.voidsetGuiType(GuiElements guiType) Set the type of GUI elements which will be used to present the values for the property.voidSet the icons for the property possible values.voidsetOldValue(String oldValue) Set the old value for the property.voidsetParentGroup(String parentGroup) Sets the group that includes the current property.voidSets the values for the current property.toString()
- 
Constructor Details- 
TablePropertypublic TableProperty(String propertyName, String propertyRenderString, List<String> propertyValues, String currentValue) Constructor.- Parameters:
- propertyName- The qName of the current attribute.
- propertyRenderString- The string that will be presented in the- SATablePropertiesCustomizerDialog. It can be different from the attribute name or it can be even the same.
- propertyValues- The list with the attribute's possible values.
- currentValue- The current of the attribute.
 
- 
TablePropertypublic TableProperty(String propertyName, String propertyRenderString, List<String> propertyValues, String currentValue, boolean isAttribute) Constructor.- Parameters:
- propertyName- The qName of the current attribute.
- propertyRenderString- The string that will be presented in the- SATablePropertiesCustomizerDialog. It can be different from the attribute name or it can be even the same.
- propertyValues- The list with the attribute's possible values.
- currentValue- The current of the attribute.
- isAttribute-- trueif the current property represents an attribute.
 
- 
TablePropertypublic TableProperty(String propertyName, String propertyRenderString, List<String> propertyValues, String currentValue, boolean isAttribute, boolean isActive) Constructor.- Parameters:
- propertyName- The qName of the current attribute.
- propertyRenderString- The string that will be presented in the- SATablePropertiesCustomizerDialog. It can be different from the attribute name or it can be even the same.
- propertyValues- The list with the attribute's possible values.
- currentValue- The current of the attribute.
- isAttribute-- trueif the current property represents an attribute.
- isActive-- trueif the combobox corresponding to the current property is enabled,- falseotherwise.
 
- 
TablePropertypublic TableProperty(String propertyName, String propertyRenderString, List<String> propertyValues, String currentValue, String parentGroup, GuiElements guiType, Map<String, String> icons, boolean isAttribute, boolean isActive) Constructor.- Parameters:
- propertyName- The qName of the current attribute.
- propertyRenderString- The string that will be presented in the- SATablePropertiesCustomizerDialog. It can be different from the attribute name or it can be even the same.
- propertyValues- The list with the attribute's possible values.
- currentValue- The current of the attribute.
- parentGroup- The group name that will include the current property.
- guiType- The type of GUI element that will be used to represent the values for the current property. If is one of- GuiElements.COMBOBOX,- GuiElements.RADIO_BUTTONS. The default is- GuiElements.COMBOBOX. If this parameter is set to- null, the element that will be used is- GuiElements.COMBOBOX.
- icons- The list of icons. An icon for every value. If empty icon corresponds to a value, the icon will be null
- isAttribute-- trueif the current property represents an attribute.
- isActive-- trueif the combobox corresponding to the current property is enabled,- falseotherwise.
 
 
- 
- 
Method Details- 
getAttributeNameObtain the property name.- Returns:
- Returns the property name.
 
- 
getAttributeRenderStringObtain the render string fort the property.- Returns:
- the render string fort the property
 
- 
getValuesObtain the property possible values.- Returns:
- Returns the values.
 
- 
getCurrentValueObtain the current value for the attributes.- Returns:
- Returns the current value of the attribute.
 
- 
setCurrentValueSet a new current value for the property.- Parameters:
- currentValue- The new value to set.
 
- 
getParentGroupObtain the group that includes the current property.- Returns:
- Returns the group name or nullif no group contains this property.
 
- 
setParentGroupSets the group that includes the current property.- Parameters:
- parentGroup- The group that includes the current property.
 
- 
isAttributepublic boolean isAttribute()trueif the current property represents an attribute.- Returns:
- Returns trueif the property is an attribute.
 
- 
equals
- 
toString
- 
getOldValueObtain the old set value.- Returns:
- Returns the old value.
 
- 
setOldValueSet the old value for the property. It should be correlated with setting a new value.- Parameters:
- oldValue- The old value to set.
 
- 
isActivepublic boolean isActive()Check if the property can be edited through the properties dialog.- Returns:
- trueif the combobox corresponding to the current property is enabled,- falseotherwise.
 
- 
hashCodepublic int hashCode()
- 
setValuesSets the values for the current property.- Parameters:
- values- Values for the current property.
 
- 
setGuiTypeSet the type of GUI elements which will be used to present the values for the property.- Parameters:
- guiType- The new type GUI elements which will be used to present the values for the property.
 
- 
getGuiTypeObtain the type of GUI elements which will be used to present the values for the property.- Returns:
- Returns the type of GUI elements which will be used to present the values for the property.
 
- 
getIconsObtain the icons for the property values. If the list contains null objects, then an empty icon should be used.- Returns:
- Returns the icons for all the possible values. Every values is mapped to an icon path.
 
- 
setIconsSet the icons for the property possible values.- Parameters:
- icons- The icons to set.
 
 
-