|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.text.JTextComponent
javax.swing.JTextField
javax.swing.JFormattedTextField
org.jdesktop.swingx.JXFormattedTextField
public class JXFormattedTextField
JFormattedTextField
, with integrated support for prompts and buddies.
PromptSupport
,
BuddySupport
,
Serialized FormNested Class Summary |
---|
Nested classes/interfaces inherited from class javax.swing.JFormattedTextField |
---|
JFormattedTextField.AbstractFormatter, JFormattedTextField.AbstractFormatterFactory |
Nested classes/interfaces inherited from class javax.swing.JTextField |
---|
JTextField.AccessibleJTextField |
Nested classes/interfaces inherited from class javax.swing.text.JTextComponent |
---|
JTextComponent.AccessibleJTextComponent, JTextComponent.DropLocation, JTextComponent.KeyBinding |
Nested classes/interfaces inherited from class javax.swing.JComponent |
---|
JComponent.AccessibleJComponent |
Nested classes/interfaces inherited from class java.awt.Container |
---|
Container.AccessibleAWTContainer |
Nested classes/interfaces inherited from class java.awt.Component |
---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary |
---|
Fields inherited from class javax.swing.JFormattedTextField |
---|
COMMIT, COMMIT_OR_REVERT, PERSIST, REVERT |
Fields inherited from class javax.swing.JTextField |
---|
notifyAction |
Fields inherited from class javax.swing.text.JTextComponent |
---|
DEFAULT_KEYMAP, FOCUS_ACCELERATOR_KEY |
Fields inherited from class javax.swing.JComponent |
---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
Fields inherited from class java.awt.Component |
---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface javax.swing.SwingConstants |
---|
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST |
Fields inherited from interface java.awt.image.ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
---|---|
JXFormattedTextField()
|
|
JXFormattedTextField(String promptText)
|
|
JXFormattedTextField(String promptText,
Color promptForeground)
|
|
JXFormattedTextField(String promptText,
Color promptForeground,
Color promptBackground)
|
Method Summary | |
---|---|
void |
addBuddy(Component buddy,
BuddySupport.Position pos)
|
void |
addGap(int width,
BuddySupport.Position pos)
|
List<Component> |
getBuddies(BuddySupport.Position pos)
|
PromptSupport.FocusBehavior |
getFocusBehavior()
|
Insets |
getOuterMargin()
|
String |
getPrompt()
|
Color |
getPromptBackground()
|
Integer |
getPromptFontStyle()
|
Color |
getPromptForeground()
|
void |
removeAllBuddies()
|
void |
setFocusBehavior(PromptSupport.FocusBehavior focusBehavior)
|
void |
setOuterMargin(Insets margin)
|
void |
setPrompt(String labelText)
|
void |
setPromptBackround(Color promptTextColor)
|
void |
setPromptFontStyle(Integer fontStyle)
|
void |
setPromptForeground(Color promptTextColor)
|
Methods inherited from class javax.swing.JFormattedTextField |
---|
commitEdit, getActions, getFocusLostBehavior, getFormatter, getFormatterFactory, getUIClassID, getValue, invalidEdit, isEditValid, processFocusEvent, processInputMethodEvent, setDocument, setFocusLostBehavior, setFormatter, setFormatterFactory, setValue |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public JXFormattedTextField()
public JXFormattedTextField(String promptText)
public JXFormattedTextField(String promptText, Color promptForeground)
public JXFormattedTextField(String promptText, Color promptForeground, Color promptBackground)
Method Detail |
---|
public PromptSupport.FocusBehavior getFocusBehavior()
PromptSupport.getFocusBehavior(javax.swing.text.JTextComponent)
public String getPrompt()
PromptSupport.getPrompt(javax.swing.text.JTextComponent)
public Color getPromptForeground()
PromptSupport.getForeground(javax.swing.text.JTextComponent)
public Color getPromptBackground()
PromptSupport.getForeground(javax.swing.text.JTextComponent)
public Integer getPromptFontStyle()
PromptSupport.getFontStyle(javax.swing.text.JTextComponent)
public void setFocusBehavior(PromptSupport.FocusBehavior focusBehavior)
PromptSupport.getFocusBehavior(javax.swing.text.JTextComponent)
public void setPrompt(String labelText)
PromptSupport.setPrompt(String, javax.swing.text.JTextComponent)
public void setPromptForeground(Color promptTextColor)
PromptSupport.setForeground(Color, javax.swing.text.JTextComponent)
public void setPromptBackround(Color promptTextColor)
PromptSupport.setBackground(Color, javax.swing.text.JTextComponent)
public void setPromptFontStyle(Integer fontStyle)
PromptSupport.setFontStyle(Integer,
javax.swing.text.JTextComponent)
public void setOuterMargin(Insets margin)
BuddySupport.setOuterMargin(JTextField, Insets)
public Insets getOuterMargin()
BuddySupport.getOuterMargin(JTextField)
public void addBuddy(Component buddy, BuddySupport.Position pos)
BuddySupport.add(Component, Position, JTextField)
public void addGap(int width, BuddySupport.Position pos)
BuddySupport.addGap(int, Position, JTextField)
public List<Component> getBuddies(BuddySupport.Position pos)
BuddySupport.getBuddies(Position, JTextField)
public void removeAllBuddies()
BuddySupport.removeAll(JTextField)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |