| java.lang.Object com.jidesoft.dialog.ButtonPanelLayout
Field Summary | |
final public static int | LINE_AXIS Specifies that components should be laid out in the direction of
a line of text as determined by the target container's
ComponentOrientation property. | final public static int | PAGE_AXIS Specifies that components should be laid out in the direction that
lines flow across a page as determined by the target container's
ComponentOrientation property. | final public static int | X_AXIS Specifies that components should be laid out left to right. | final public static int | Y_AXIS Specifies that components should be laid out top to bottom. | int | _buttonGap | int | _groupGap | int | _maxWidth | int | _minWidth |
Constructor Summary | |
public | ButtonPanelLayout(Container target, int axis, int alignment, int sizeConstraint, String buttonOrder, String oppositeButtonOrder, int buttonGap, int groupGap) Creates a layout manager that will lay out components along the
given axis.
Parameters: target - the container that needs to be laid out Parameters: axis - the axis to lay out components along. |
LINE_AXIS | final public static int LINE_AXIS(Code) | | Specifies that components should be laid out in the direction of
a line of text as determined by the target container's
ComponentOrientation property.
|
PAGE_AXIS | final public static int PAGE_AXIS(Code) | | Specifies that components should be laid out in the direction that
lines flow across a page as determined by the target container's
ComponentOrientation property.
|
X_AXIS | final public static int X_AXIS(Code) | | Specifies that components should be laid out left to right.
|
Y_AXIS | final public static int Y_AXIS(Code) | | Specifies that components should be laid out top to bottom.
|
_buttonGap | int _buttonGap(Code) | | |
ButtonPanelLayout | public ButtonPanelLayout(Container target, int axis, int alignment, int sizeConstraint, String buttonOrder, String oppositeButtonOrder, int buttonGap, int groupGap)(Code) | | Creates a layout manager that will lay out components along the
given axis.
Parameters: target - the container that needs to be laid out Parameters: axis - the axis to lay out components along. Can be one of:BoxLayout.X_AXIS ,BoxLayout.Y_AXIS ,BoxLayout.LINE_AXIS orBoxLayout.PAGE_AXIS Parameters: alignment - the alignment Parameters: sizeConstraint - the size constraint Parameters: buttonOrder - the button order represented as string Parameters: oppositeButtonOrder - the button order on the opposite side represented as string Parameters: buttonGap - the gap btween buttons Parameters: groupGap - the gap btween button groups throws: java.awt.AWTError - if the value of axis is invalid |
addLayoutComponent | public void addLayoutComponent(String name, Component comp)(Code) | | Not used by this class.
Parameters: name - the name of the component Parameters: comp - the component |
addLayoutComponent | public void addLayoutComponent(Component comp, Object constraints)(Code) | | Not used by this class.
Parameters: comp - the component Parameters: constraints - constraints |
checkRequests | void checkRequests()(Code) | | |
getAlignment | public int getAlignment()(Code) | | |
getAxis | public int getAxis()(Code) | | |
getButtonGap | public int getButtonGap()(Code) | | |
getGroupGap | public int getGroupGap()(Code) | | |
getLayoutAlignmentX | public synchronized float getLayoutAlignmentX(Container target)(Code) | | Returns the alignment along the X axis for the container.
If the box is horizontal, the default
alignment will be returned. Otherwise, the alignment needed
to place the children along the X axis will be returned.
Parameters: target - the container the alignment >= 0.0f && <= 1.0f throws: java.awt.AWTError - if the target isn't the container specified to theBoxLayout constructor |
getLayoutAlignmentY | public synchronized float getLayoutAlignmentY(Container target)(Code) | | Returns the alignment along the Y axis for the container.
If the box is vertical, the default
alignment will be returned. Otherwise, the alignment needed
to place the children along the Y axis will be returned.
Parameters: target - the container the alignment >= 0.0f && <= 1.0f throws: java.awt.AWTError - if the target isn't the container specified to theBoxLayout constructor |
getMinButtonWidth | public int getMinButtonWidth()(Code) | | |
getOppositeButtonOrder | public String getOppositeButtonOrder()(Code) | | |
getSizeConstraint | public int getSizeConstraint()(Code) | | |
invalidateLayout | public synchronized void invalidateLayout(Container target)(Code) | | Indicates that a child has changed its layout related information,
and thus any cached calculations should be flushed.
This method is called by AWT when the invalidate method is called
on the Container. Since the invalidate method may be called
asynchronously to the event thread, this method may be called
asynchronously.
Parameters: target - the affected container throws: java.awt.AWTError - if the target isn't the container specified to theBoxLayout constructor |
layoutContainer | public void layoutContainer(Container target)(Code) | | Called by the AWT when the specified container
needs to be laid out.
Parameters: target - the container to lay out throws: java.awt.AWTError - if the target isn't the container specified to theBoxLayout constructor |
removeLayoutComponent | public void removeLayoutComponent(Component comp)(Code) | | Not used by this class.
Parameters: comp - the component |
resetBounds | void resetBounds()(Code) | | |
setAlignment | public void setAlignment(int alignment)(Code) | | |
setAxis | public void setAxis(int axis)(Code) | | |
setButtonGap | public void setButtonGap(int buttonGap)(Code) | | |
setButtonOrder | public void setButtonOrder(String buttonOrder)(Code) | | |
setGroupGap | public void setGroupGap(int groupGap)(Code) | | |
setMinButtonWidth | public void setMinButtonWidth(int minButtonWidth)(Code) | | |
setOppositeButtonOrder | public void setOppositeButtonOrder(String oppositeButtonOrder)(Code) | | |
setSizeConstraint | public void setSizeConstraint(int sizeConstraint)(Code) | | |
|
|