Class ListConfigurer

java.lang.Object
VASSAL.configure.Configurer
VASSAL.configure.ListConfigurer
All Implemented Interfaces:
PropertyChangeListener, EventListener
Direct Known Subclasses:
DoActionButton.NamedHotkeyListConfigurer

public abstract class ListConfigurer extends Configurer implements PropertyChangeListener
Configures a variable-length list of objects
Author:
rkinney
  • Field Details

    • controls

      protected JPanel controls
    • configControls

      protected JPanel configControls
    • panel

      protected JPanel panel
    • fixedSize

      protected Dimension fixedSize
    • configurers

      protected List<Configurer> configurers
  • Constructor Details

    • ListConfigurer

      public ListConfigurer(String key, String name)
    • ListConfigurer

      public ListConfigurer(String key, String name, List<?> val)
  • Method Details

    • getValueString

      public String getValueString()
      Specified by:
      getValueString in class Configurer
      Returns:
      a String representation of the Object value
    • setValue

      public void setValue(String s)
      Description copied from class: Configurer
      Set the Object value from a String
      Specified by:
      setValue in class Configurer
    • updateValue

      protected void updateValue()
    • setValue

      public void setValue(Object o)
      Description copied from class: Configurer
      Set the Object value
      Overrides:
      setValue in class Configurer
    • getControls

      public Component getControls()
      Description copied from class: Configurer
      GUI interface for setting the option in an editing window
      Specified by:
      getControls in class Configurer
    • getListValue

      public List<Object> getListValue()
    • buildChildConfigurer

      protected abstract Configurer buildChildConfigurer()
      The objects in the list are specified by the Configurer returned here
      Returns:
      objects in the list
    • propertyChange

      public void propertyChange(PropertyChangeEvent evt)
      Specified by:
      propertyChange in interface PropertyChangeListener
    • updateControls

      protected void updateControls()
    • resize

      public void resize()
      Resize the overall Configurer to only show Scroll bars if getting close to full screen height
    • repack

      public void repack()
      Description copied from class: Configurer
      Repack the current configurer
      Overrides:
      repack in class Configurer
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object