@API(type=INTERNAL,
src=PUBLIC)
public class TableProperty
extends java.lang.Object
Constructor and Description |
---|
TableProperty(java.lang.String propertyName,
java.lang.String propertyRenderString,
java.util.List<java.lang.String> propertyValues,
java.lang.String currentValue)
Constructor.
|
TableProperty(java.lang.String propertyName,
java.lang.String propertyRenderString,
java.util.List<java.lang.String> propertyValues,
java.lang.String currentValue,
boolean isAttribute)
Constructor.
|
TableProperty(java.lang.String propertyName,
java.lang.String propertyRenderString,
java.util.List<java.lang.String> propertyValues,
java.lang.String currentValue,
boolean isAttribute,
boolean isActive)
Constructor.
|
TableProperty(java.lang.String propertyName,
java.lang.String propertyRenderString,
java.util.List<java.lang.String> propertyValues,
java.lang.String currentValue,
java.lang.String parentGroup,
GuiElements guiType,
java.util.Map<java.lang.String,java.lang.String> icons,
boolean isAttribute,
boolean isActive)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getAttributeName()
Obtain the property name.
|
java.lang.String |
getAttributeRenderString()
Obtain the render string fort the property.
|
java.lang.String |
getCurrentValue()
Obtain the current value for the attributes.
|
GuiElements |
getGuiType()
Obtain the type of GUI elements which will be used to present the values
for the property.
|
java.util.Map<java.lang.String,java.lang.String> |
getIcons()
Obtain the icons for the property values.
|
java.lang.String |
getOldValue()
Obtain the old set value.
|
java.lang.String |
getParentGroup()
Obtain the group that includes the current property.
|
java.util.List<java.lang.String> |
getValues()
Obtain the property possible values.
|
int |
hashCode() |
boolean |
isActive()
Check if the property can be edited through the properties dialog.
|
boolean |
isAttribute()
true if the current property represents an attribute. |
void |
setCurrentValue(java.lang.String currentValue)
Set a new current value for the property.
|
void |
setGuiType(GuiElements guiType)
Set the type of GUI elements which will be used to present the values
for the property.
|
void |
setIcons(java.util.Map<java.lang.String,java.lang.String> icons)
Set the icons for the property possible values.
|
void |
setOldValue(java.lang.String oldValue)
Set the old value for the property.
|
void |
setParentGroup(java.lang.String parentGroup)
Sets the group that includes the current property.
|
void |
setValues(java.util.List<java.lang.String> values)
Sets the values for the current property.
|
java.lang.String |
toString() |
public TableProperty(java.lang.String propertyName, java.lang.String propertyRenderString, java.util.List<java.lang.String> propertyValues, java.lang.String currentValue)
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.public TableProperty(java.lang.String propertyName, java.lang.String propertyRenderString, java.util.List<java.lang.String> propertyValues, java.lang.String currentValue, boolean isAttribute)
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
- true
if the current property represents an attribute.public TableProperty(java.lang.String propertyName, java.lang.String propertyRenderString, java.util.List<java.lang.String> propertyValues, java.lang.String currentValue, boolean isAttribute, boolean isActive)
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
- true
if the current property represents an attribute.isActive
- true
if the combobox corresponding to the current property is enabled,
false
otherwise.public TableProperty(java.lang.String propertyName, java.lang.String propertyRenderString, java.util.List<java.lang.String> propertyValues, java.lang.String currentValue, java.lang.String parentGroup, GuiElements guiType, java.util.Map<java.lang.String,java.lang.String> icons, boolean isAttribute, boolean isActive)
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 nullisAttribute
- true
if the current property represents an attribute.isActive
- true
if the combobox corresponding to the current property is enabled,
false
otherwise.public java.lang.String getAttributeName()
public java.lang.String getAttributeRenderString()
public java.util.List<java.lang.String> getValues()
public java.lang.String getCurrentValue()
public void setCurrentValue(java.lang.String currentValue)
currentValue
- The new value to set.public java.lang.String getParentGroup()
null
if no group contains this property.public void setParentGroup(java.lang.String parentGroup)
parentGroup
- The group that includes the current property.public boolean isAttribute()
true
if the current property represents an attribute.true
if the property is an attribute.public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Object.equals(java.lang.Object)
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public java.lang.String getOldValue()
public void setOldValue(java.lang.String oldValue)
oldValue
- The old value to set.public boolean isActive()
true
if the combobox corresponding to the current property is enabled,
false
otherwise.public int hashCode()
hashCode
in class java.lang.Object
Object.hashCode()
public void setValues(java.util.List<java.lang.String> values)
values
- Values for the current property.public void setGuiType(GuiElements guiType)
guiType
- The new type GUI elements which will be used to present the values
for the property.public GuiElements getGuiType()
public java.util.Map<java.lang.String,java.lang.String> getIcons()
public void setIcons(java.util.Map<java.lang.String,java.lang.String> icons)
icons
- The icons to set.© Copyright SyncRO Soft SRL 2002 - 2016. All rights reserved.