Package rma.swing

Class RmaJTextArea

All Implemented Interfaces:
FocusListener, MouseMotionListener, ImageObserver, MenuContainer, Serializable, EventListener, Accessible, DocumentListener, Scrollable, Modifiable, EditableComponent, FormManagementListener, RmaValidComponent
Direct Known Subclasses:
RmaJDescriptionField, SearchableJTextArea

See Also:
  • Field Details

    • _statusLine

      protected JTextComponent _statusLine
    • _statusText

      protected String _statusText
    • _name

      protected String _name
    • _parentWindow

      protected Window _parentWindow
    • _modifiable

      protected boolean _modifiable
  • Constructor Details

    • RmaJTextArea

      public RmaJTextArea(String text, int rows, int columns)
      Constructs a new TextArea initialized with the specified text, rows and columns.
    • RmaJTextArea

      public RmaJTextArea(Document doc, String text, int rows, int columns)
      Constructs a new JTextArea that uses the given text storage model and the given number of rows and columns.
    • RmaJTextArea

      public RmaJTextArea(int rows, int columns)
      Constructs a new empty TextArea with the specified number of columns.
    • RmaJTextArea

      public RmaJTextArea()
      Constructs a new TextArea.
    • RmaJTextArea

      public RmaJTextArea(String text)
      Constructs a new TextArea initialized with the specified text.
  • Method Details

    • popupMenuAction

      protected void popupMenuAction(Point pt)
    • addPopupAction

      public void addPopupAction(Action action)
    • setEnabled

      public void setEnabled(boolean b)
      Overrides:
      setEnabled in class JComponent
    • setEditable

      public void setEditable(boolean b)
      Overrides:
      setEditable in class JTextComponent
    • setChangeColor

      public void setChangeColor(Color changeColor)
      set the foreground color when the user changes the text.
    • changedUpdate

      public void changedUpdate(DocumentEvent e)
      Specified by:
      changedUpdate in interface DocumentListener
    • insertUpdate

      public void insertUpdate(DocumentEvent e)
      Specified by:
      insertUpdate in interface DocumentListener
    • removeUpdate

      public void removeUpdate(DocumentEvent e)
      Specified by:
      removeUpdate in interface DocumentListener
    • setEmptyOk

      public void setEmptyOk(boolean b)
    • isEmptyOk

      public boolean isEmptyOk()
    • errorMsg

      public void errorMsg(String msg)
    • takeFocus

      public void takeFocus()
      allows the text field to take the focus back while within the focusLost() method.
    • isValid

      public boolean isValid(boolean showErr)
      return whether this component has valid data
      Specified by:
      isValid in interface RmaValidComponent
    • focusGained

      public void focusGained(FocusEvent e)
      Invoked when a this component gains the keyboard focus.
      Specified by:
      focusGained in interface FocusListener
    • focusLost

      public void focusLost(FocusEvent e)
      Invoked when this component loses the keyboard focus.
      Specified by:
      focusLost in interface FocusListener
    • setShowErrorMsg

      public void setShowErrorMsg(boolean b)
    • validateData

      protected boolean validateData(boolean showErrorMsg)
    • setStatusLineField

      public void setStatusLineField(JTextComponent statusLine, String statusText)
      setup a status line field so when the mouse enters this field some status info text is displayed in the statusLine field. if statusLine is null then remove the mouselistener
    • mouseDragged

      public void mouseDragged(MouseEvent e)
      Specified by:
      mouseDragged in interface MouseMotionListener
    • mouseMoved

      public void mouseMoved(MouseEvent e)
      Specified by:
      mouseMoved in interface MouseMotionListener
    • getName

      public String getName()
      Overrides:
      getName in class Component
    • setName

      public void setName(String name)
      Overrides:
      setName in class Component
    • getToolTipTextDisabled

      public boolean getToolTipTextDisabled()
    • setToolTipTextDisabled

      public void setToolTipTextDisabled(boolean toolTipTextDisabled)
    • getToolTipText

      public String getToolTipText(MouseEvent e)
      Overrides:
      getToolTipText in class JTextComponent
    • clearPerformed

      public void clearPerformed()
      Called when the parent form calls clear(). Part of the Form management listener interface
      Specified by:
      clearPerformed in interface FormManagementListener
    • isModified

      public boolean isModified()
      Specified by:
      isModified in interface Modifiable
    • setModified

      public void setModified(boolean b)
      Specified by:
      setModified in interface Modifiable
    • processComponentKeyEvent

      protected void processComponentKeyEvent(KeyEvent e)
      Overrides:
      processComponentKeyEvent in class JComponent
    • setIsEditable

      public void setIsEditable(boolean b)
      Specified by:
      setIsEditable in interface EditableComponent
    • setModifiable

      public void setModifiable(boolean m)
    • setText

      public void setText(String text)
      Overrides:
      setText in class JTextComponent