Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
GObject
org.gnu.gtk.GtkObject
org.gnu.gtk.Widget
org.gnu.gtk.Container
org.gnu.gtk.Table
public class Table
extends Container
Constructor Summary | |
| |
|
Method Summary | |
void |
|
void |
|
int |
|
int |
|
int |
|
boolean |
|
int |
|
static Table |
|
static Type |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
Methods inherited from class org.gnu.gtk.Container | |
add , addListener , getBooleanChildProperty , getBorderWidth , getChildProperty , getChildren , getEventListenerClass , getEventType , getIntChildProperty , getResizeMode , getType , remove , removeListener , resizeChildren , setBooleanChildProperty , setBorderWidth , setChildProperty , setIntChildProperty , setResizeMode |
public Table(Handle handle)
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Construct a new Table from a handle to a native resource.
public Table(int rows, int columns, boolean homogenous)
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Constructs a new table widget. An initial size must be given by specifying how many rows and columns the table should have, although this can be changed later with the resize method. Rows and columns must both be in the range 0 .. 65535
- Parameters:
rows
- The initial number of rows in the tablecolumns
- The initial number of columns for the tablehomogenous
- If set to TRUE, all table cells are resized to the size of the cell containing the largest widget.
public void attach(Widget child, int leftAttach, int rightAttach, int topAttach, int bottomAttach)
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Attaches a child widget to a position in the table. This is a convenience function provides the programmer with a means to add children to a table with identical padding and expansion options.
- Parameters:
child
- The widget to add.leftAttach
- The column number to attach the left side of a child widget to.rightAttach
- The column number to attach the right side of a child widget to.topAttach
- The row number to attach the top of a child widget to.bottomAttach
- The row number to attach the bottom of a child widget to.
public void attach(Widget child, int leftAttach, int rightAttach, int topAttach, int bottomAttach, AttachOptions xOptions, AttachOptions yOptions, int xPadding, int yPadding)
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Attaches a child widget to a position in the table
- Parameters:
child
- The widget to add.leftAttach
- The column number to attach the left side of a child widget to.rightAttach
- The column number to attach the right side of a child widget to.topAttach
- The row number to attach the top of a child widget to.bottomAttach
- The row number to attach the bottom of a child widget to.xOptions
- Used to specify the properties of the child widget when the table is resized.yOptions
- The same as xOptions, except this field determines behaviour of vertical resizing.xPadding
- An integer value specifying the padding on the left and right of the widget being added to the table.yPadding
- The amount of padding above and below the child widget.
public int getColumnSpacing(int column)
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Gets the amount of space between columncolumn
, and columncolumn + 1
.
- Parameters:
column
- A row in the table, 0 indicates the first row.
public int getDefaultColumnSpacing()
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
returns the default spacing between columns. The only way to change this is to usesetColumnSpacings
, which changes the spacing of all cells, regardless of whether they have been set independently.
- See Also:
setColumnSpacing(int,int)
public int getDefaultRowSpacing()
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
returns the default spacing between rows. The only way to change this is to usesetRowSpacings
, which changes the spacing of all cells, regardless of whether they have been set independently.
- See Also:
setRowSpacing(int,int)
public boolean getHomogeneous()
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Returns whether the table cells are all constrained to the same width and height
- Returns:
- TRUE if the cells are all constrained to the same size
- See Also:
setHomogeneous(boolean)
public int getRowSpacing(int row)
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Gets the amount of space between rowrow
, and rowrow + 1
.
- Parameters:
row
- A row in the table, 0 indicates the first row.
public static Table getTable(Handle handle)
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Internal static factory method to be used by Java-Gnome only.
public static Type getType()
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Retrieve the runtime type used by the GLib library.
public void resize(int rows, int columns)
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Changes the size of the table after it has been created. The parameters define the requested total number of rows/columns after the resize.
public void setColumnSpacing(int spacing)
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Sets the space between every column in the table. This overrides any previous changes to particular cells.
- Parameters:
spacing
- The number of pixels of space to place between every column in the table.
public void setColumnSpacing(int column, int spacing)
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Changes the space between a given table column and its surrounding columns.
- Parameters:
column
- Column number whose spacing will be changed.spacing
- Number of pixels that the spacing should take up.
public void setHomogeneous(boolean homogeneous)
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Changes the homogenous property of table cells (ie whether all cells are an equal size or not).
- Parameters:
homogeneous
- Set to TRUE to ensure all table cells are the same size. Set to FALSE if this is not your desired behaviour.
public void setRowSpacing(int spacing)
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Sets the space between every row in the table. This overrides any previous changes to particular cells.
- Parameters:
spacing
- The number of pixels of space to place between every row in the table.
public void setRowSpacing(int row, int spacing)
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Changes the space between a given table row and its surrounding rows.
- Parameters:
row
- Row number whose spacing will be changed.spacing
- Number of pixels that the spacing should take up.