Documentation of 'org.jgap.data.config.ConfigProperty' Java class
ConfigProperty
org.jgap.data.config

Class ConfigProperty



  • public class ConfigProperty
    extends java.lang.Object
    Represents 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
      void addValue(java.lang.String a_value)
      Add a value into the values ArrayList.
      java.lang.String getLabel() 
      java.lang.String getName() 
      java.util.Iterator getValuesIter() 
      java.lang.String getWidget() 
      void setLabel(java.lang.String a_label)
      Sets the label.
      void setName(java.lang.String a_name)
      Setter for the name of this property.
      void setWidget(java.lang.String a_widget)
      Sets the widget.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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

You see the box below because you did not login.