net.simplace.ui.components.FWTextArea
Predefines some default behaviour for text-inputfields.
public class FWTextArea extends javax.swing.JTextArea implements
java.awt.event.MouseListener, java.awt.event.FocusListener,
javax.swing.event.DocumentListener {
// Public Constructors
public FWTextArea(boolean aRequired);
public FWTextArea(String aString, boolean aRequired);
public FWTextArea(String aString, int aMaxSize, boolean aRequired);
public FWTextArea(int aMaxSize, boolean aRequired);
public FWTextArea(String aString, int aMaxSize, int aMaxInput, boolean
aRequiredBorder);
public FWTextArea(String aString, int aMaxSize, int aMaxInput, boolean
aRequiredBorder, String aRegularExpression);
// Public Instance Methods public Document createDefaultModel(); // Overrides javax.swing.JTextArea
Returns a new instance of LimitedDocument.
public void mouseReleased(MouseEvent aMouseEvent); // From
java.awt.event.MouseListener
public void mouseEntered(MouseEvent aMouseEvent); // From
java.awt.event.MouseListener
public void mouseExited(MouseEvent aMouseEvent); // From
java.awt.event.MouseListener
public void mousePressed(MouseEvent aMouseEvent); // From
java.awt.event.MouseListener
public void mouseClicked(MouseEvent aMouseEvent); // From
java.awt.event.MouseListener
public void setText(String aText); // Defines
javax.swing.text.JTextComponent
public void focusGained(FocusEvent aFocusEvent); // From
java.awt.event.FocusListener
public void focusLost(FocusEvent aFocusEvent); // From
java.awt.event.FocusListener
public void updateColors();
public int getMaxSize();
returns Returns the maxSize.
public void
setMaxSize(int aMaxSize);
- aMaxSize The maxSize to set.
public boolean isRequired();
Returns the required mode.
public void setEditable(boolean aEditable); // Defines
javax.swing.text.JTextComponent
Sets the editable property of the textfield.
public void setRequired(boolean aRequired);
Sets the required property of the textfield.
public Color getRequiredBackgroundColor();
Returns the required background color.
public void setRequiredBackgroundColor(Color aRequiredBackgroundColor);
Changes the required background color.
public Color getDefaultBackgroundColor();
Returns the default background color.
public void setDefaultBackgroundColor(Color aDefaultBackgroundColor);
Changes the default background color.
public void insertUpdate(DocumentEvent eDocumentEvent);
// From javax.swing.event.DocumentListener
public void removeUpdate(DocumentEvent eDocumentEvent);
// From javax.swing.event.DocumentListener
public void changedUpdate(DocumentEvent eDocumentEvent);
// From javax.swing.event.DocumentListener
public void setDefaultForeground(Color aDefaultForeground);
Sets the default forground color used for enabled fields
public Color getDisabledBackground();
returns the background color for disabled components
public void
setDisabledBackground(Color aDisabledBackground);
public Color getDisabledForeground();
returns the foreground color for disabled components
public void
setDisabledForeground(Color aDisabledForeground);
public void setBorder(Border aBorder); // Defines javax.swing.JComponent
}
Hierarchy: java.lang.Object - java.awt.Component (java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable) - java.awt.Container - javax.swing.JComponent (java.io.Serializable, javax.swing.TransferHandler.HasGetTransferHandler) - javax.swing.text.JTextComponent (javax.swing.Scrollable, javax.accessibility.Accessible) - javax.swing.JTextArea - FWTextArea (java.awt.event.MouseListener, java.awt.event.FocusListener, javax.swing.event.DocumentListener)