games.strategy.engine.data.properties
Class ListProperty

java.lang.Object
  extended by games.strategy.engine.data.properties.AEditableProperty
      extended by games.strategy.engine.data.properties.ListProperty
All Implemented Interfaces:
IEditableProperty, java.io.Serializable, java.lang.Comparable

public class ListProperty
extends AEditableProperty

See Also:
Serialized Form

Constructor Summary
ListProperty(java.lang.String name, java.lang.String defaultValue, java.util.Collection<java.lang.String> possibleValues)
           
 
Method Summary
 javax.swing.JComponent getEditorComponent()
           
 java.lang.Object getValue()
           
 
Methods inherited from class games.strategy.engine.data.properties.AEditableProperty
compareTo, equals, getName, getViewComponent, hashCode
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ListProperty

public ListProperty(java.lang.String name,
                    java.lang.String defaultValue,
                    java.util.Collection<java.lang.String> possibleValues)
Parameters:
values - A collection of Strings
Method Detail

getValue

public java.lang.Object getValue()

getEditorComponent

public javax.swing.JComponent getEditorComponent()
Returns:
component used to edit this property