|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.gnu.glib.Struct
org.gnu.glib.GObject
org.gnu.gtk.GtkObject
org.gnu.gtk.Widget
org.gnu.gtk.Container
org.gnu.gtk.Table
org.gnome.gtk.Table
.
You should be aware that there is a considerably different API
in the new library: the architecture is completely different
and most notably internals are no longer exposed to public view.
public class Table
A container that creates a grid of flexible static rectangles that you can use to position and size widgets.
The table cells are referenced by rows and columns. The top left of the table is row 0, column 0.
Constructor Summary | |
---|---|
Table(org.gnu.glib.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. |
|
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. |
Method Summary | |
---|---|
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. |
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. |
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. |
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. |
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. |
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. |
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. |
static Table |
getTable(org.gnu.glib.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. |
static org.gnu.glib.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. |
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. |
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. |
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. |
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. |
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. |
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. |
Methods inherited from class org.gnu.gtk.Container |
---|
add, addListener, getBooleanChildProperty, getBorderWidth, getChildProperty, getChildren, getEventListenerClass, getEventType, getIntChildProperty, getResizeMode, remove, removeListener, resizeChildren, setBooleanChildProperty, setBorderWidth, setChildProperty, setIntChildProperty, setResizeMode |
Methods inherited from class org.gnu.gtk.GtkObject |
---|
destroy, sink |
Methods inherited from class org.gnu.glib.GObject |
---|
addEventHandler, addEventHandler, addEventHandler, addEventHandler, addEventHandler, addEventHandler, addEventHandler, addListener, collect, freezeNotify, getBooleanProperty, getData, getDoubleProperty, getFloatProperty, getGObjectFromHandle, getIntProperty, getJavaObjectProperty, getLongProperty, getProperty, getStringProperty, hasProperty, notify, removeEventHandler, removeListener, setBooleanProperty, setData, setDoubleProperty, setFloatProperty, setIntProperty, setJavaObjectProperty, setLongProperty, setProperty, setStringProperty, thawNotify |
Methods inherited from class org.gnu.glib.Struct |
---|
equals, getHandle, getNullHandle, hashCode |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Table(int rows, int columns, boolean homogenous)
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 Table(org.gnu.glib.Handle handle)
Method Detail |
---|
public static Table getTable(org.gnu.glib.Handle handle)
public void resize(int rows, int columns)
public void attach(Widget child, int leftAttach, int rightAttach, int topAttach, int bottomAttach, AttachOptions xOptions, AttachOptions yOptions, int xPadding, int yPadding)
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 void attach(Widget child, int leftAttach, int rightAttach, int topAttach, int bottomAttach)
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 setColumnSpacing(int column, int spacing)
column
- Column number whose spacing will be changed.spacing
- Number of pixels that the spacing should take up.public void setRowSpacing(int row, int spacing)
row
- Row number whose spacing will be changed.spacing
- Number of pixels that the spacing should take up.public int getRowSpacing(int row)
row
, and row
row + 1
.
row
- A row in the table, 0 indicates the first row.public int getColumnSpacing(int column)
column
, and
column column + 1
.
column
- A row in the table, 0 indicates the first row.public int getDefaultRowSpacing()
setRowSpacings
, which changes the spacing of
all cells, regardless of whether they have been set
independently.
setRowSpacing(int, int)
public int getDefaultColumnSpacing()
setColumnSpacings
, which changes the spacing of
all cells, regardless of whether they have been set
independently.
setColumnSpacing(int, int)
public void setRowSpacing(int spacing)
spacing
- The number of pixels of space to place between every row in
the table.public void setColumnSpacing(int spacing)
spacing
- The number of pixels of space to place between every column in
the table.public void setHomogeneous(boolean homogeneous)
homogeneous
- Set to TRUE to ensure all table cells are the same size. Set
to FALSE if this is not your desired behaviour.public boolean getHomogeneous()
setHomogeneous(boolean)
public static org.gnu.glib.Type getType()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |