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 Link icon

    • controls Link icon

      protected JPanel controls
    • configControls Link icon

      protected JPanel configControls
    • panel Link icon

      protected JPanel panel
    • fixedSize Link icon

      protected Dimension fixedSize
    • configurers Link icon

      protected List<Configurer> configurers
  • Constructor Details Link icon

    • ListConfigurer Link icon

      public ListConfigurer(String key, String name)
    • ListConfigurer Link icon

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

    • getValueString Link icon

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

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

      protected void updateValue()
    • setValue Link icon

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

      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 Link icon

      public List<Object> getListValue()
    • buildChildConfigurer Link icon

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

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

      protected void updateControls()
    • resize Link icon

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

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

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

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