|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jdesktop.swingx.plaf.BuddyLayoutAndBorder
public class BuddyLayoutAndBorder
| Constructor Summary | |
|---|---|
BuddyLayoutAndBorder()
|
|
| Method Summary | |
|---|---|
void |
addLayoutComponent(String name,
Component comp)
Does nothing. |
protected int |
centerY(Rectangle rect,
Dimension size)
|
Border |
getBorderDelegate()
|
Insets |
getBorderInsets(Component c)
Returns the Insets of the original Border plus the space
required by the child components. |
Insets |
getRealBorderInsets()
Returns the insets of the original border (without the margin! Beware of BasicBorders.MarginBorder!). |
protected Rectangle |
getVisibleRect()
|
protected void |
install(JTextField textField)
Installs a BuddyLayoutAndBorder as a layout and border of the
given text field. |
boolean |
isBorderOpaque()
|
void |
layoutContainer(Container parent)
|
Dimension |
minimumLayoutSize(Container parent)
|
void |
paintBorder(Component c,
Graphics g,
int x,
int y,
int width,
int height)
|
Dimension |
preferredLayoutSize(Container parent)
|
void |
propertyChange(PropertyChangeEvent evt)
|
void |
removeLayoutComponent(Component comp)
Does nothing. |
protected void |
replaceBorderIfNecessary()
Wraps and replaces the text fields default border with this object, to honor the button margins and sizes of the search, clear and popup buttons and the layout style. |
String |
toString()
|
void |
uninstall()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public BuddyLayoutAndBorder()
| Method Detail |
|---|
protected void install(JTextField textField)
BuddyLayoutAndBorder as a layout and border of the
given text field. Registers a PropertyChangeListener to wrap any
subsequently set border on the text field.
public Border getBorderDelegate()
protected void replaceBorderIfNecessary()
public void addLayoutComponent(String name,
Component comp)
addLayoutComponent in interface LayoutManagerBuddySupport#add(javax.swing.JComponent, Position, JTextField)public Dimension minimumLayoutSize(Container parent)
minimumLayoutSize in interface LayoutManagerpublic Dimension preferredLayoutSize(Container parent)
preferredLayoutSize in interface LayoutManagerpublic void removeLayoutComponent(Component comp)
removeLayoutComponent in interface LayoutManagerBuddySupport.remove(javax.swing.JComponent, JTextField)public void layoutContainer(Container parent)
layoutContainer in interface LayoutManager
protected int centerY(Rectangle rect,
Dimension size)
protected Rectangle getVisibleRect()
public Insets getBorderInsets(Component c)
Insets of the original Border plus the space
required by the child components.
getBorderInsets in interface BorderBorder.getBorderInsets(java.awt.Component)public Insets getRealBorderInsets()
BasicBorders.MarginBorder!).
public boolean isBorderOpaque()
isBorderOpaque in interface Border
public void paintBorder(Component c,
Graphics g,
int x,
int y,
int width,
int height)
paintBorder in interface Borderpublic void propertyChange(PropertyChangeEvent evt)
propertyChange in interface PropertyChangeListenerpublic void uninstall()
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||