net.simplace.ui.components.FWTextField
This class add the possibility to JTextField to lock the number of character in field to a max
length.
public class FWTextField extends javax.swing.JTextField implements
java.awt.event.MouseListener, java.awt.event.FocusListener,
javax.swing.event.DocumentListener {
// Public Constructors
public FWTextField(boolean aRequiredBorder);
public FWTextField(String aString, int aMaxSize, boolean aRequiredBorder);
public FWTextField(int aMaxSize, boolean aRequiredBorder);
public FWTextField(int aMaxSize, int aMaxInput, boolean aRequiredBorder);
public FWTextField(String aString, int aMaxSize, int aMaxInput, boolean
aRequiredBorder);
public FWTextField(String aString, int aMaxSize, int aMaxInput, boolean
aRequiredBorder, String aRegularExpression);
// Constants
public static final int LITTLE_TEXTSIZE;
public static final int NORMAL_TEXTSIZE;
public static final int BIG_TEXTSIZE;
public static final int UNLIMITED_TEXTSIZE;
public static final int FILE_TEXTSIZE;
public static final int DEFAULT_TEXTSIZE;
// Class Methods public static JPanel createTextPanel(Component aComponent);
Creates a box with the given XTextField as only component.
// Public Instance Methods public void setRequired(boolean aRequired);
Enables/disables the required mode.
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 updateColors();
updates the color after changes to the document
public void setText(String aText); // Defines
javax.swing.text.JTextComponent
public void setDocument(Document aDocument); // Overrides
javax.swing.JTextField
public void focusGained(FocusEvent aFocusEvent); // From
java.awt.event.FocusListener
public void focusLost(FocusEvent aFocusEvent); // From
java.awt.event.FocusListener
public void setDrawBackgroundIfEmpty(boolean aB);
Sets the automatic drawing of the background.
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 String getToolTipText(); // Defines javax.swing.JComponent
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.JTextField (javax.swing.SwingConstants) - FWTextField (java.awt.event.MouseListener, java.awt.event.FocusListener, javax.swing.event.DocumentListener)