|
|
|||||
| Package com.dassault_systemes.catjdialog |
Class CATFrame
|
| Class Hierarchy |
java.lang.Object
|
+-com.dassault_systemes.catjdialog.CATCallbackSource
|
+-com.dassault_systemes.catjdialog.CATDialog
|
+-com.dassault_systemes.catjdialog.CATFrame
| Class Location |
| Class Description |
public class CATFrame
The frame graphical component.
In order to determine how to distribute extra space (needed for resizing),
the container grid also provides a way of defining rows and columns weights.
Extra space is distributed to columns and rows proportionally to their weights.
Note: By default all columns and rows of the grid have a null weight. If all columns
and rows have a null weight, then the algorithm shares extra space equally.
See the CAA Use Case "Creating a Command" for a simple Grid Layout sample.
See the CAA Use Case "Grid Constraint Layout" for a complex Grid Layout sample.
All Implemented Interfaces: CATIDefaultButton
| Field Summary |
| Constructor Summary |
| CATFrame(CATDialog iDialog, String iName)
Creates a frame container with the specified parent and name. |
| Method Summary |
| public int | getColumnResizable(int iX)
Returns a column's weight. |
| public int | getColumnTotal()
Computes the sum of column weights. |
| public GC | getConstraints(String iName)
Returns a child component layout constraint set. |
| public CATButton | getDefaultButton()
Retrieves the default button in the DialogBox (may be null). |
| public boolean | getPacked()
Determines whether this frame is packed to its minimum size or not. |
| public int | getRowResizable(int iY)
Returns a row's weight. |
| public int | getRowTotal()
Computes the sum of row weights. |
| public void | setColumnResizable(int iX, int iW)
Sets a column's weight. |
| public void | setConstraints(CATDialog iDialog, GC iConstraints)
Sets a child component layout constraint set. |
| public void | setConstraints(String iName, GC iConstraints)
Set a child component layout constraint set. |
| public void | setDefaultButton(CATButton iButton)
Defines the default button. |
| public void | setPacked(boolean iPacked)
Enables/disables packing this frame to its minimum size. |
| public void | setRowResizable(int iY, int iW)
Sets a row's weight. |
| Field Detail |
| Constructor Detail |
CATFrame(CATDialog iDialog, String iName)
Creates a frame container with the specified parent and name.
iParentiName| Method Detail |
public int getColumnResizable(int iX)
Returns a column's weight.
iX
public int getColumnTotal()
Computes the sum of column weights.
public GC getConstraints(String iName)
Returns a child component layout constraint set.
iName
public CATButton getDefaultButton()
Retrieves the default button in the DialogBox (may be null).
public boolean getPacked()
Determines whether this frame is packed to its minimum size or not. Default is not packed.
true if this frame is packed; false otherwise.
public int getRowResizable(int iY)
Returns a row's weight.
iY
public int getRowTotal()
Computes the sum of row weights.
public void setColumnResizable(int iX, int iW)
Sets a column's weight. Default weight is 0 for all columns.
iXiW
public void setConstraints(CATDialog iDialog, GC iConstraints)
Sets a child component layout constraint set.
iDialogiConstraints
public void setConstraints(String iName, GC iConstraints)
Set a child component layout constraint set.
iNameiConstraints
public void setDefaultButton(CATButton iButton)
Defines the default button.
That causes the default button to be automatically triggered (as if it was pressed) when the user presses ENTER.
iButtonnull sets no default button).
public void setPacked(boolean iPacked)
Enables/disables packing this frame to its minimum size.
iPackedtrue, this frame is packed to its minimum size.
public void setRowResizable(int iY, int iW)
Sets a row's weight. Default weight is 0 for all rows.
iYiW