Package rma.swing

Class ToggleDocument

All Implemented Interfaces:
Serializable, Document

public class ToggleDocument extends PlainDocument
a document that toggle between to values for JTextFields, and other components that use PlainDocument
See Also:
  • Constructor Details

  • Method Details

    • setAllowOtherCase

      public void setAllowOtherCase(boolean b)
    • getAllowOtherCase

      public boolean getAllowOtherCase()
    • setToggleValues

      public void setToggleValues(char val1, char val2)
      set the keystrokes to toggle between
    • setToggleKey

      public void setToggleKey(char toggleKey)
      set the keystroke that toggles between the 2 values
    • insertString

      public void insertString(int offs, String str, AttributeSet a) throws BadLocationException
      Specified by:
      insertString in interface Document
      Overrides:
      insertString in class PlainDocument
      Throws:
      BadLocationException