|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.vlsolutions.swing.toolbars.ToolBarConstraints
public class ToolBarConstraints
Constraints to be used with the ToolBarLayout.
Depending on the orientation of the layout, the two integers majorOrder and minorOrder express the opposite measures :
Example : To layout two toolbars horizontally on an horizontal layout, use the following constraints (0,0) and (0,1) (the column is the minor order on an horizontal layout).
to layout them in a row (one above the other), use the constraints (0,0) and (1,0) (the row is the major order on an horizontal layout).
Field Summary | |
---|---|
int |
majorOrder
The major order is the row index for horizontal toolbars, and the column index for vertical toolbars. |
int |
minorOrder
The minor order is the column index for horizontal toolbars, and the row index for vertical toolbars. |
Constructor Summary | |
---|---|
ToolBarConstraints()
Constructs a new ToolBarConstraints at (0,0) |
|
ToolBarConstraints(int majorOrder,
int minorOrder)
Constructs a new ToolBarConstraints at (majorOrder,minorOrder). |
Method Summary | |
---|---|
java.lang.String |
toString()
Returns a description of these constraints. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public int majorOrder
public int minorOrder
Constructor Detail |
---|
public ToolBarConstraints()
public ToolBarConstraints(int majorOrder, int minorOrder)
the majorOrder is the ROW for an horizontal layout, and the columns for a vertical layout.
Method Detail |
---|
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 |