Class SelectValueAction<T>

Type Parameters:
T - the type of the setting
All Implemented Interfaces:
ActionListener, Serializable, Cloneable, EventListener, Action, SettingChangedListener

public class SelectValueAction<T> extends LocalizedAction implements SettingChangedListener
Action that assigns a fixed value to a setting. GUI components based on this action are typically radio buttons. This action handles selection, so the components do not need to be placed within a button group.
See Also:
  • Constructor Details

    • SelectValueAction

      public SelectValueAction(String id, Localization localization, Setting<T> setting, T value)
      Constructs a new action to assign a fixed value.
      Parameters:
      id - the id for localization
      localization - the source of localization strings
      setting - the underlying setting
      value - the fixed value
  • Method Details