org.jgap.data.config
Class ConfigProperty
- java.lang.Object
-
- org.jgap.data.config.ConfigProperty
-
public class ConfigProperty extends java.lang.ObjectRepresents a property to be shown on the configuration screen.- Since:
- 2.3
-
-
Constructor Summary
Constructors Constructor and Description ConfigProperty()Default Constructor for a ConfigProperty.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidaddValue(java.lang.String a_value)Add a value into the values ArrayList.java.lang.StringgetLabel()java.lang.StringgetName()java.util.IteratorgetValuesIter()java.lang.StringgetWidget()voidsetLabel(java.lang.String a_label)Sets the label.voidsetName(java.lang.String a_name)Setter for the name of this property.voidsetWidget(java.lang.String a_widget)Sets the widget.
-
-
-
Constructor Detail
-
ConfigProperty
public ConfigProperty()
Default Constructor for a ConfigProperty.- Since:
- 2.3
-
-
Method Detail
-
getName
public java.lang.String getName()
- Returns:
- name associated with this property
- Since:
- 2.3
-
setName
public void setName(java.lang.String a_name)
Setter for the name of this property.- Parameters:
a_name- the name associated with this property. This name will be used as the key in the properties file for persisting configuration information- Since:
- 2.3
-
getWidget
public java.lang.String getWidget()
- Returns:
- name of the widget associated with this property
- Since:
- 2.3
-
setWidget
public void setWidget(java.lang.String a_widget)
Sets the widget.- Parameters:
a_widget- either "JList" or "JTextField" for now- Since:
- 2.3
-
getLabel
public java.lang.String getLabel()
- Returns:
- label of the property
- Since:
- 2.4
-
setLabel
public void setLabel(java.lang.String a_label)
Sets the label.- Parameters:
a_label- the label of this property, by default the same as the name of the property- Since:
- 2.4
-
addValue
public void addValue(java.lang.String a_value)
Add a value into the values ArrayList. These values are added in case the display component is a ListBox or ComboBox or something that can have multiple values.- Parameters:
a_value- the value to add- Since:
- 2.3
-
getValuesIter
public java.util.Iterator getValuesIter()
- Returns:
- iterator on the values ArrayList for this property
- Since:
- 2.3
-
-
DMelt 3.0 © DataMelt by jWork.ORG