|
|
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) |
Method Summary |
int | getColumnResizable(int iX) |
int | getColumnTotal() |
int | getRowResizable(int iY) |
int | getRowTotal() |
boolean | getPacked() |
void | setPacked(boolean iPacked) |
GC | getConstraints(String iName) |
void | setColumnResizable(int iX, int iW) |
void | setConstraints(CATDialog iDialog, GC iConstraints) |
void | setConstraints(String iName, GC iConstraints) |
void | setRowResizable(int iY, int iW) |
void | setDefaultButton(CATButton iButton) |
CATButton | getDefaultButton() |
Field Detail |
Constructor Detail |
CATFrame(CATDialog iDialog, String iName)Creates a frame container with the specified parent and name.
iParent
iName
Method Detail |
int getColumnResizable(int iX)Returns a column's weight.
iX
int getColumnTotal()Computes the sum of column weights.
int getRowResizable(int iY)Returns a row's weight.
iY
int getRowTotal()Computes the sum of row weights.
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.void setPacked(boolean iPacked)Enables/disables packing this frame to its minimum size.
iPacked
true
, this frame is packed to its minimum size.GC getConstraints(String iName)Returns a child component layout constraint set.
iName
void setColumnResizable(int iX, int iW)Sets a column's weight. Default weight is 0 for all columns.
iX
iW
void setConstraints(CATDialog iDialog, GC iConstraints)Sets a child component layout constraint set.
iDialog
iConstraints
void setConstraints(String iName, GC iConstraints)Set a child component layout constraint set.
iName
iConstraints
void setRowResizable(int iY, int iW)Sets a row's weight. Default weight is 0 for all rows.
iY
iW
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.
iButton
null
sets no default button).CATButton getDefaultButton()Retrieves the default button in the DialogBox (may be null).