Package rma.swing

Class RmaJToggleField

All Implemented Interfaces:
FocusListener, MouseMotionListener, ImageObserver, MenuContainer, Serializable, EventListener, Accessible, DocumentListener, Scrollable, SwingConstants, Modifiable, ModifiedEventControl, EditableComponent, FormManagementListener, RmaValidComponent

public class RmaJToggleField extends RmaJTextField
text field that will toggle between 2 values.
See Also:
  • Constructor Details

    • RmaJToggleField

      public RmaJToggleField(char key1, char key2, char toggleKey)
  • Method Details

    • setAllowOtherCase

      public void setAllowOtherCase(boolean b)
    • createDefaultModel

      protected Document createDefaultModel()
      Creates the default implementation of the model to be used at construction if one isn't explicitly given. An instance of ToggleDocument is returned.
      Overrides:
      createDefaultModel in class RmaJTextField
      Returns:
      the default model implementation
    • setToggleKeyIndex

      public void setToggleKeyIndex(int num)
    • getToggleKeyIndex

      public int getToggleKeyIndex()