|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.pf.swing.TakeAllLayoutManager
public class TakeAllLayoutManager
This layout manager expects only one component in the parent container. Its simple task is to resize the inner component to the container's full available size.
| Constructor Summary | |
|---|---|
TakeAllLayoutManager()
Initialize the new instance with default values. |
|
TakeAllLayoutManager(int margin)
Initialize the new instance with a margin for all sides. |
|
TakeAllLayoutManager(int left,
int right,
int top,
int bottom)
Initialize the new instance with the specified margin values. |
|
| Method Summary | |
|---|---|
void |
addLayoutComponent(java.lang.String name,
java.awt.Component comp)
|
int |
getBottomMargin()
Returns the current bottom margin |
int |
getLeftMargin()
Returns the current left margin |
int |
getRightMargin()
Returns the current right margin |
int |
getTopMargin()
Returns the current top margin |
void |
layoutContainer(java.awt.Container parent)
|
java.awt.Dimension |
minimumLayoutSize(java.awt.Container parent)
|
java.awt.Dimension |
preferredLayoutSize(java.awt.Container parent)
|
void |
removeLayoutComponent(java.awt.Component comp)
|
void |
setBottomMargin(int newValue)
Sets the bottom margin |
void |
setLeftMargin(int newValue)
Sets the left margin |
void |
setRightMargin(int newValue)
Sets the right margin |
void |
setTopMargin(int newValue)
Sets the top margin |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TakeAllLayoutManager()
public TakeAllLayoutManager(int margin)
public TakeAllLayoutManager(int left,
int right,
int top,
int bottom)
| Method Detail |
|---|
public void layoutContainer(java.awt.Container parent)
layoutContainer in interface java.awt.LayoutManager
public void addLayoutComponent(java.lang.String name,
java.awt.Component comp)
addLayoutComponent in interface java.awt.LayoutManagerpublic java.awt.Dimension minimumLayoutSize(java.awt.Container parent)
minimumLayoutSize in interface java.awt.LayoutManagerpublic java.awt.Dimension preferredLayoutSize(java.awt.Container parent)
preferredLayoutSize in interface java.awt.LayoutManagerpublic void removeLayoutComponent(java.awt.Component comp)
removeLayoutComponent in interface java.awt.LayoutManagerpublic int getTopMargin()
public void setTopMargin(int newValue)
newValue - The margin in pixel (must be >=0)public int getBottomMargin()
public void setBottomMargin(int newValue)
newValue - The margin in pixel (must be >=0)public int getLeftMargin()
public void setLeftMargin(int newValue)
newValue - The margin in pixel (must be >=0)public int getRightMargin()
public void setRightMargin(int newValue)
newValue - The margin in pixel (must be >=0)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||