Class BuddySupport
java.lang.Object
org.jdesktop.swingx.prompt.BuddySupport
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidadd(Component c, BuddySupport.Position pos, JTextField textField) static voidaddGap(int width, BuddySupport.Position pos, JTextField textField) static voidaddLeft(Component c, JTextField textField) static voidaddRight(Component c, JTextField textField) private static voidaddToComponentHierarchy(Component c, BuddySupport.Position pos, JTextField textField) buddies(BuddySupport.Position pos, JTextField textField) static ComponentcreateGap(int width) Create a gap to insert between to buddies.static voidensureBuddiesAreInComponentHierarchy(JTextField textField) getBuddies(BuddySupport.Position pos, JTextField textField) getLeft(JTextField textField) static InsetsgetOuterMargin(JTextField buddyField) getRight(JTextField textField) static booleanisBuddy(Component c, JTextField textField) static voidremove(JComponent c, JTextField textField) BecauseBasicTextUIremoves all components when uninstalled and therefore all buddies are removed when the LnF changes.static voidremoveAll(JTextField textField) static voidset(List<Component> buddies, BuddySupport.Position pos, JTextField textField) static voidsetLeft(JTextField textField, List<Component> leftBuddies) static voidsetOuterMargin(JTextField buddyField, Insets margin) static voidsetRight(JTextField textField, List<Component> rightBuddies)
-
Field Details
-
OUTER_MARGIN
- See Also:
-
-
Constructor Details
-
BuddySupport
public BuddySupport()
-
-
Method Details
-
addLeft
-
addRight
-
add
-
addGap
-
setRight
-
setLeft
-
set
-
addToComponentHierarchy
private static void addToComponentHierarchy(Component c, BuddySupport.Position pos, JTextField textField) -
getLeft
-
getRight
-
getBuddies
-
buddies
-
isBuddy
-
remove
BecauseBasicTextUIremoves all components when uninstalled and therefore all buddies are removed when the LnF changes.- Parameters:
c-textField-
-
removeAll
-
setOuterMargin
-
getOuterMargin
-
ensureBuddiesAreInComponentHierarchy
-
createGap
Create a gap to insert between to buddies.- Parameters:
width-- Returns:
-