|
|||||||||
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(java.lang.String name,
java.awt.Component comp)
Does nothing. |
protected int |
centerY(java.awt.Rectangle rect,
java.awt.Dimension size)
|
javax.swing.border.Border |
getBorderDelegate()
|
java.awt.Insets |
getBorderInsets(java.awt.Component c)
Returns the Insets of the original Border plus the space
required by the child components. |
java.awt.Insets |
getRealBorderInsets()
Returns the insets of the original border (without the margin! Beware of BasicBorders.MarginBorder !). |
protected java.awt.Rectangle |
getVisibleRect()
|
protected void |
install(javax.swing.JTextField textField)
Installs a BuddyLayoutAndBorder as a layout and border of the
given text field. |
boolean |
isBorderOpaque()
|
void |
layoutContainer(java.awt.Container parent)
|
java.awt.Dimension |
minimumLayoutSize(java.awt.Container parent)
|
void |
paintBorder(java.awt.Component c,
java.awt.Graphics g,
int x,
int y,
int width,
int height)
|
java.awt.Dimension |
preferredLayoutSize(java.awt.Container parent)
|
void |
propertyChange(java.beans.PropertyChangeEvent evt)
|
void |
removeLayoutComponent(java.awt.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. |
java.lang.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(javax.swing.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 javax.swing.border.Border getBorderDelegate()
protected void replaceBorderIfNecessary()
public void addLayoutComponent(java.lang.String name, java.awt.Component comp)
addLayoutComponent
in interface java.awt.LayoutManager
BuddySupport#add(javax.swing.JComponent, Position, JTextField)
public java.awt.Dimension minimumLayoutSize(java.awt.Container parent)
minimumLayoutSize
in interface java.awt.LayoutManager
public java.awt.Dimension preferredLayoutSize(java.awt.Container parent)
preferredLayoutSize
in interface java.awt.LayoutManager
public void removeLayoutComponent(java.awt.Component comp)
removeLayoutComponent
in interface java.awt.LayoutManager
BuddySupport.remove(javax.swing.JComponent, JTextField)
public void layoutContainer(java.awt.Container parent)
layoutContainer
in interface java.awt.LayoutManager
protected int centerY(java.awt.Rectangle rect, java.awt.Dimension size)
protected java.awt.Rectangle getVisibleRect()
public java.awt.Insets getBorderInsets(java.awt.Component c)
Insets
of the original Border
plus the space
required by the child components.
getBorderInsets
in interface javax.swing.border.Border
Border.getBorderInsets(java.awt.Component)
public java.awt.Insets getRealBorderInsets()
BasicBorders.MarginBorder
!).
public boolean isBorderOpaque()
isBorderOpaque
in interface javax.swing.border.Border
public void paintBorder(java.awt.Component c, java.awt.Graphics g, int x, int y, int width, int height)
paintBorder
in interface javax.swing.border.Border
public void propertyChange(java.beans.PropertyChangeEvent evt)
propertyChange
in interface java.beans.PropertyChangeListener
public void uninstall()
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |