|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jdesktop.swingx.JXStatusBar.Constraint
public static class JXStatusBar.Constraint
The constraint object to be used with the JXStatusBar. It takes
a ResizeBehaviour, Insets and a Width. Width is only applicable for
ResizeBehavior.FIXED. @see JXStatusBar class documentation.
| Nested Class Summary | |
|---|---|
static class |
JXStatusBar.Constraint.ResizeBehavior
|
| Constructor Summary | |
|---|---|
JXStatusBar.Constraint()
Creates a new Constraint with default FIXED behaviour and no insets. |
|
JXStatusBar.Constraint(java.awt.Insets insets)
Creates a new Constraint with default FIXED behaviour and the given insets |
|
JXStatusBar.Constraint(int fixedWidth)
Creates a new Constraint with default FIXED behaviour and the given fixed width. |
|
JXStatusBar.Constraint(int fixedWidth,
java.awt.Insets insets)
Creates a new Constraint with default FIXED behaviour and the given fixed width, and using the given Insets. |
|
JXStatusBar.Constraint(JXStatusBar.Constraint.ResizeBehavior resizeBehavior)
Creates a new Constraint with the specified resize behaviour and no insets |
|
JXStatusBar.Constraint(JXStatusBar.Constraint.ResizeBehavior resizeBehavior,
java.awt.Insets insets)
Creates a new Constraint with the specified resize behavior and insets. |
|
| Method Summary | |
|---|---|
int |
getFixedWidth()
Get fixed width. |
java.awt.Insets |
getInsets()
Returns the insets. |
JXStatusBar.Constraint.ResizeBehavior |
getResizeBehavior()
Returns the ResizeBehavior. |
void |
setFixedWidth(int width)
Set the fixed width the component added with this constraint will occupy on the JXStatusBar. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JXStatusBar.Constraint()
public JXStatusBar.Constraint(java.awt.Insets insets)
insets - may be null. If null, an Insets with 0 values will be used.public JXStatusBar.Constraint(int fixedWidth)
fixedWidth - must be >= 0
public JXStatusBar.Constraint(int fixedWidth,
java.awt.Insets insets)
fixedWidth - must be >= 0insets - may be null. If null, an Insets with 0 values will be used.public JXStatusBar.Constraint(JXStatusBar.Constraint.ResizeBehavior resizeBehavior)
resizeBehavior - - either JXStatusBar.Constraint.ResizeBehavior.FIXED
or JXStatusBar.Constraint.ResizeBehavior.FILL.
public JXStatusBar.Constraint(JXStatusBar.Constraint.ResizeBehavior resizeBehavior,
java.awt.Insets insets)
resizeBehavior - - either JXStatusBar.Constraint.ResizeBehavior.FIXED
or JXStatusBar.Constraints.ResizeBehavior.FILL.insets - may be null. If null, an Insets with 0 values will be used.| Method Detail |
|---|
public void setFixedWidth(int width)
JXStatusBar. Only applies
to ResizeBehavior.FIXED. Will be ignored for ResizeBehavior.FILL.
width - - minimum width component will occupy. If 0, the preferred
width of the component will be used.
The width specified must be >= 0public JXStatusBar.Constraint.ResizeBehavior getResizeBehavior()
public java.awt.Insets getInsets()
public int getFixedWidth()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||