Klasse FWTextArea

Alle implementierten Schnittstellen:
FocusListener, MouseListener, ImageObserver, MenuContainer, Serializable, EventListener, Accessible, DocumentListener, Scrollable

public class FWTextArea extends JTextArea implements MouseListener, FocusListener, DocumentListener
Predefines some default behaviour for text-inputfields.
Autor:
jschoder, hschmitt
Siehe auch:
  • Konstruktordetails

    • FWTextArea

      public FWTextArea(boolean aRequired)
      Default constructor. Sets the default-textsize to this field.
    • FWTextArea

      public FWTextArea(String aString, boolean aRequired)
      Default constructor. Sets the default-textsize to this field.
    • FWTextArea

      public FWTextArea(String aString, int aMaxSize, boolean aRequired)
      Default constructor. Sets the default-textsize to this field.
    • FWTextArea

      public FWTextArea(int aMaxSize, boolean aRequired)
      This construcotr has the maxsize as parameter. This allows the developer to choose a size different from the default.
    • FWTextArea

      public FWTextArea(String aString, int aMaxSize, int aMaxInput, boolean aRequiredBorder)
      This construcotr has the maxsize and the maxInput as parameter. This allows the developer separate the MaxSize and the max. input of letters
    • FWTextArea

      public FWTextArea(String aString, int aMaxSize, int aMaxInput, boolean aRequiredBorder, String aRegularExpression)
      This construcotr has the maxsize and the maxInput as parameter. This allows the developer separate the MaxSize and the max. input of letters
  • Methodendetails

    • createDefaultModel

      public Document createDefaultModel()
      Returns a new instance of LimitedDocument.
      Setzt außer Kraft:
      createDefaultModel in Klasse JTextArea
    • mouseReleased

      public void mouseReleased(MouseEvent aMouseEvent)
      Angegeben von:
      mouseReleased in Schnittstelle MouseListener
      Siehe auch:
    • mouseEntered

      public void mouseEntered(MouseEvent aMouseEvent)
      Angegeben von:
      mouseEntered in Schnittstelle MouseListener
    • mouseExited

      public void mouseExited(MouseEvent aMouseEvent)
      Angegeben von:
      mouseExited in Schnittstelle MouseListener
    • mousePressed

      public void mousePressed(MouseEvent aMouseEvent)
      Angegeben von:
      mousePressed in Schnittstelle MouseListener
    • mouseClicked

      public void mouseClicked(MouseEvent aMouseEvent)
      Angegeben von:
      mouseClicked in Schnittstelle MouseListener
    • setText

      public void setText(String aText)
      Setzt außer Kraft:
      setText in Klasse JTextComponent
      Siehe auch:
    • focusGained

      public void focusGained(FocusEvent aFocusEvent)
      Angegeben von:
      focusGained in Schnittstelle FocusListener
    • focusLost

      public void focusLost(FocusEvent aFocusEvent)
      Angegeben von:
      focusLost in Schnittstelle FocusListener
    • updateColors

      public void updateColors()
    • getMaxSize

      public int getMaxSize()
      Gibt zurück:
      Returns the maxSize.
    • setMaxSize

      public void setMaxSize(int aMaxSize)
      Parameter:
      aMaxSize - The maxSize to set.
    • isRequired

      public boolean isRequired()
      Returns the required mode.
    • setEditable

      public void setEditable(boolean aEditable)
      Sets the editable property of the textfield.
      Setzt außer Kraft:
      setEditable in Klasse JTextComponent
    • setRequired

      public void setRequired(boolean aRequired)
      Sets the required property of the textfield.
    • getRequiredBackgroundColor

      public Color getRequiredBackgroundColor()
      Returns the required background color.
    • setRequiredBackgroundColor

      public void setRequiredBackgroundColor(Color aRequiredBackgroundColor)
      Changes the required background color.
    • getDefaultBackgroundColor

      public Color getDefaultBackgroundColor()
      Returns the default background color.
    • setDefaultBackgroundColor

      public void setDefaultBackgroundColor(Color aDefaultBackgroundColor)
      Changes the default background color.
    • insertUpdate

      public void insertUpdate(DocumentEvent eDocumentEvent)
      Angegeben von:
      insertUpdate in Schnittstelle DocumentListener
    • removeUpdate

      public void removeUpdate(DocumentEvent eDocumentEvent)
      Angegeben von:
      removeUpdate in Schnittstelle DocumentListener
    • changedUpdate

      public void changedUpdate(DocumentEvent eDocumentEvent)
      Angegeben von:
      changedUpdate in Schnittstelle DocumentListener
    • setDefaultForeground

      public void setDefaultForeground(Color aDefaultForeground)
      Sets the default forground color used for enabled fields
    • getDisabledBackground

      public Color getDisabledBackground()
      Gibt zurück:
      the background color for disabled components
    • setDisabledBackground

      public void setDisabledBackground(Color aDisabledBackground)
      Parameter:
      aDisabledBackground -
    • getDisabledForeground

      public Color getDisabledForeground()
      Gibt zurück:
      the foreground color for disabled components
    • setDisabledForeground

      public void setDisabledForeground(Color aDisabledForeground)
      Parameter:
      aDisabledForeground -
    • setBorder

      public void setBorder(Border aBorder)
      Setzt außer Kraft:
      setBorder in Klasse JComponent
      Siehe auch: