|
![]() |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openpermis.editor.policy.gui.forms.SmartConstraints
public class SmartConstraints
Smarter version of CellConstraints
that holds the current location.
Constructor Summary | |
---|---|
SmartConstraints()
Returns a new smart constraints object starting at (1, 1). |
|
SmartConstraints(int x,
int y)
Creates a new smart constraints object with the specified initial coordinates. |
Method Summary | |
---|---|
com.jgoodies.forms.layout.CellConstraints |
col(int columnWidth)
Returns a cell constraints with the current location height of one. |
protected int |
getInitialX()
Returns the initial x coordinate. |
protected int |
getX()
Returns the x coordinate. |
protected int |
getY()
Returns the y coordinate. |
void |
reset(int startX,
int startY)
Resets the smart constraints to the specified coordinates. |
void |
row(int offsetY)
Advances the y coordinate by the given amount and resets the x coordinate. |
com.jgoodies.forms.layout.CellConstraints |
x(int offsetX)
Returns a cell constraints with the current location and a width and height of one. |
com.jgoodies.forms.layout.CellConstraints |
xw(int offsetX,
int width)
Returns a cell constraints with the current location, the specified width and height of one. |
com.jgoodies.forms.layout.CellConstraints |
y(int offsetY)
Returns a cell constraints with the current location and a width and height of one. |
com.jgoodies.forms.layout.CellConstraints |
yw(int offsetY,
int width)
Returns a cell constraints with the current location and a width of one and the given height. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SmartConstraints()
The initial x coordinate is also set to 1.
public SmartConstraints(int x, int y)
x
- the x coordinate, also serves as initial x coordinate.y
- the y coordinate.Method Detail |
---|
protected int getInitialX()
protected int getX()
protected int getY()
public void reset(int startX, int startY)
The x coordinate also server as initial x coordinate.
startX
- the x coordinate, also serves as initial x coordinate.startY
- the y coordinate.public void row(int offsetY)
offsetY
- the number of rows to advance.public com.jgoodies.forms.layout.CellConstraints col(int columnWidth)
The width and x coordinate advancement is determined by the column width specified. The width is equivalent to columnWidth * 2 - 1 and the x coordinate is advanced by columnWidth * 2, the y coordinate is left untouched.
columnWidth
- the column width of the cell constraints to return.
public com.jgoodies.forms.layout.CellConstraints x(int offsetX)
The x coordinate is incremented by the specified offset once the constraints are determined, the y coordinate is left untouched.
offsetX
- the x coordinate offset.
public com.jgoodies.forms.layout.CellConstraints xw(int offsetX, int width)
The x coordinate is incremented by the specified offset once the constraints are determined, the y coordinate is left untouched.
offsetX
- the x coordinate offset.width
- the width of the cell constraint returned.
public com.jgoodies.forms.layout.CellConstraints y(int offsetY)
The x coordinate is reset to the initial value and the y coordinate is incremented by the specified offset once the constraints are determined.
offsetY
- the y coordinate offset.
public com.jgoodies.forms.layout.CellConstraints yw(int offsetY, int width)
The x coordinate is reset to the initial value and the y coordinate is incremented by the specified offset once the constraints are determined.
offsetY
- the y coordinate offset.width
- the width of the cell constraint returned.
|
![]() |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
OpenPermis Role Based Access Control 0.9.0 (Build 16)
2009/08/13 07:17:21
Copyright (c) 2002-2007 Ergon Informatik AG