org.openpermis.editor.policy.gui.forms
Class SmartLayoutConstraints

java.lang.Object
  extended by org.openpermis.editor.policy.gui.forms.SmartConstraints
      extended by org.openpermis.editor.policy.gui.forms.SmartLayoutConstraints

public class SmartLayoutConstraints
extends SmartConstraints

Extended smart constraints object that features know-how about its layout.

Since:
0.9.0

Constructor Summary
SmartLayoutConstraints()
          Creates a smart layout constraints that is not bound to a layout yet.
SmartLayoutConstraints(com.jgoodies.forms.layout.FormLayout layout)
          Creates a smart layout constraints object that is initially bound to the layout specified.
SmartLayoutConstraints(int x, int y)
          Creates a new smart layout constraints object with the specified initial coordinates.
SmartLayoutConstraints(int x, int y, com.jgoodies.forms.layout.FormLayout layout)
          Creates a new smart layout constraints object that is not bound to a layout yet and uses the specified initial coordinates.
 
Method Summary
 void reset(int startX, int startY, com.jgoodies.forms.layout.FormLayout newLayout)
          Resets the smart constraints to the specified coordinates and layout.
 void setLayout(com.jgoodies.forms.layout.FormLayout newLayout)
          Sets the layout this constraints object is bound to.
 com.jgoodies.forms.layout.CellConstraints yfill(int offsetY)
          Creates a cell constraints that uses the current the remainder of the current row.
 com.jgoodies.forms.layout.CellConstraints yfill(int offsetY, int gapX)
          Creates a cell constraints that uses the current the remainder of the current row.
 
Methods inherited from class org.openpermis.editor.policy.gui.forms.SmartConstraints
col, getInitialX, getX, getY, reset, row, x, xw, y, yw
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SmartLayoutConstraints

public SmartLayoutConstraints()
Creates a smart layout constraints that is not bound to a layout yet.

See Also:
setLayout(com.jgoodies.forms.layout.FormLayout)
Since:
0.9.0

SmartLayoutConstraints

public SmartLayoutConstraints(com.jgoodies.forms.layout.FormLayout layout)
Creates a smart layout constraints object that is initially bound to the layout specified.

Parameters:
layout - the layout to use for calculating width and height.
Since:
0.9.0

SmartLayoutConstraints

public SmartLayoutConstraints(int x,
                              int y)
Creates a new smart layout constraints object with the specified initial coordinates.

Parameters:
x - the x coordinate, also serves as initial x coordinate.
y - the y coordinate.
Since:
0.9.0

SmartLayoutConstraints

public SmartLayoutConstraints(int x,
                              int y,
                              com.jgoodies.forms.layout.FormLayout layout)
Creates a new smart layout constraints object that is not bound to a layout yet and uses the specified initial coordinates.

Parameters:
x - the x coordinate, also serves as initial x coordinate.
y - the y coordinate.
layout - the layout to use for calculating width and height.
Since:
0.9.0
Method Detail

setLayout

public void setLayout(com.jgoodies.forms.layout.FormLayout newLayout)
Sets the layout this constraints object is bound to.

Parameters:
newLayout - the layout to use for calculating width and height.
Since:
0.9.0

reset

public void reset(int startX,
                  int startY,
                  com.jgoodies.forms.layout.FormLayout newLayout)
Resets the smart constraints to the specified coordinates and layout.

The x coordinate also server as initial x coordinate.

Parameters:
startX - the x coordinate, also serves as initial x coordinate.
startY - the y coordinate.
newLayout - the layout to use for calculating width and height.
Since:
0.9.0

yfill

public com.jgoodies.forms.layout.CellConstraints yfill(int offsetY)
Creates a cell constraints that uses the current the remainder of the current row.

The x coordinate is reset to the initial value and the y coordinate is incremented by the specified offset once the constraints are determined.

Parameters:
offsetY - the y coordinate offset.
Returns:
the cell constraints requested.
Since:
0.9.0

yfill

public com.jgoodies.forms.layout.CellConstraints yfill(int offsetY,
                                                       int gapX)
Creates a cell constraints that uses the current the remainder of the current row.

The x coordinate is reset to the initial value and the y coordinate is incremented by the specified offset once the constraints are determined.

Parameters:
offsetY - the y coordinate offset.
gapX - the number of columns that are subtracted from the total width, using a value of zero will yield the a width that fills all remaining columns.
Returns:
the cell constraints requested.
Since:
0.9.0


OpenPermis Role Based Access Control 0.9.0 (Build 16)
2009/08/13 07:17:21
Copyright (c) 2002-2007 Ergon Informatik AG