|
|||||||||
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.TreeViewColumn
org.gnome.gtk.TreeViewColumn
.
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 TreeViewColumn
The TreeViewColumn object is a visible column in a TreeView
widget,
which is the base widget for all Tree, list and table widgets.
Constructor Summary | |
---|---|
TreeViewColumn()
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 |
addAttributeMapping(CellRenderer renderer,
CellRendererAttribute attribute,
DataColumn dataBlock)
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 |
addListener(TreeViewColumnListener listener)
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 |
clear()
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 |
clearAttributeMappings(CellRenderer renderer)
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 |
click()
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 |
focusCell(CellRenderer cell)
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. |
double |
getAlignment()
Deprecated. |
CellRenderer[] |
getCellRenderers()
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 |
getClickable()
Deprecated. |
java.lang.Class |
getEventListenerClass(java.lang.String signal)
Deprecated. |
org.gnu.glib.EventType |
getEventType(java.lang.String signal)
Deprecated. |
boolean |
getExpand()
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 |
getFixedWidth()
Deprecated. |
boolean |
getIsVisible()
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 |
getMaxWidth()
Deprecated. |
int |
getMinWidth()
Deprecated. |
boolean |
getReorderable()
Deprecated. |
boolean |
getResizable()
Deprecated. |
TreeViewColumnSizing |
getSizing()
Deprecated. |
boolean |
getSortIndicator()
Deprecated. |
SortType |
getSortOrder()
Deprecated. |
int |
getSpacing()
Deprecated. |
java.lang.String |
getTitle()
Deprecated. |
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. |
boolean |
getVisible()
Deprecated. |
Widget |
getWidget()
Deprecated. |
int |
getWidth()
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 |
packEnd(CellRenderer cell,
boolean expand)
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 |
packStart(CellRenderer cell,
boolean expand)
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 |
removeListener(TreeViewColumnListener listener)
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 |
setAlignment(double align)
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 |
setClickable(boolean clickable)
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 |
setExpand(boolean expand)
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 |
setFixedWidth(int fixedWidth)
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 |
setMaxWidth(int maxWidth)
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 |
setMinWidth(int minWidth)
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 |
setReorderable(boolean reorderable)
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 |
setResizable(boolean resizable)
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 |
setSizing(TreeViewColumnSizing type)
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 |
setSortColumn(DataColumn 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. |
void |
setSortIndicator(boolean setting)
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 |
setSortOrder(SortType order)
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 |
setSpacing(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 |
setTitle(java.lang.String title)
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 |
setVisible(boolean visible)
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 |
setWidget(Widget widget)
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.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 TreeViewColumn()
Method Detail |
---|
public void packStart(CellRenderer cell, boolean expand)
cell
- The CellRenderer.expand
- TRUE if cell is to be given extra space allocated to box.public void packEnd(CellRenderer cell, boolean expand)
cell
- The CellRenderer.expand
- TRUE if cell is to be given extra space allocated to box.public void clear()
public CellRenderer[] getCellRenderers()
public void setSpacing(int spacing)
spacing
- Distance between cell renderers in pixels.public int getSpacing()
public void setVisible(boolean visible)
visible
- If true, the column s visible.public boolean getVisible()
public void setResizable(boolean resizable)
resizable
- TRUE, if the column can be resized.public boolean getResizable()
public void setSizing(TreeViewColumnSizing type)
type
- The TreeViewColumnSizing.public TreeViewColumnSizing getSizing()
public int getWidth()
public void setFixedWidth(int fixedWidth)
TreeViewColumnSizing.FIXED
. The size of the
column is clamped to the min/max width for the column. Please note that
the min/max width of the column doesn't actually affect the "fixedWidth"
property of the widget, just the actual size when displayed.
fixedWidth
- The size to set the column to. Must be greater than 0.public int getFixedWidth()
public void setMinWidth(int minWidth)
minWidth
- The minimum width of the column in pixels, or -1.public int getMinWidth()
public void setMaxWidth(int maxWidth)
maxWidth
- The maximum width of the column in pixels, or -1.public int getMaxWidth()
public void click()
public void setTitle(java.lang.String title)
title
- The title of the columnpublic java.lang.String getTitle()
public void setClickable(boolean clickable)
active
is TRUE. When the
header is active, then it can take keyboard focus, and can be clicked.
clickable
- TRUE if the header is active.public boolean getClickable()
public void setWidget(Widget widget)
widget. If widget is
null
, then the header button is set with a Label
set to the title of column.
- Parameters:
widget
- : A child Widget
, or null.
public Widget getWidget()
public void setAlignment(double align)
align
- :
The alignment, which is between [0.0 and 1.0] inclusive.public double getAlignment()
public void setReorderable(boolean reorderable)
reorderable
is TRUE, then the column can be reordered
by the end user dragging the header. By using this method, the developer
does not have to deal with the drag events.
reorderable
- TRUE, if the column can be reordered.public boolean getReorderable()
public void setSortColumn(DataColumn column)
column
- The DataColumn of the model to sort on.public void setSortIndicator(boolean setting)
TRUE
to display an
arrow in the header button indicating the column is sorted. Call
setSortOrder(SortType)
to change the direction of the arrow.
setting
- TRUE to display an indicator that the column is sortedpublic boolean getSortIndicator()
public void setSortOrder(SortType order)
This does not actually sort the model. Use setSortColumn(org.gnu.gtk.DataColumn)
if you
want automatic sorting support. This function is primarily for custom
sorting behavior, and should be used in conjunction with
setSortColumn(org.gnu.gtk.DataColumn)
to do that. For custom models, the mechanism will
vary.
The sort indicator changes direction to indicate normal sort or reverse sort. Note that you must have the sort indicator enabled to see anything when calling this function;
order
- Sort order that the sort indicator should indicatesetSortIndicator(boolean)
,
setSortColumn(org.gnu.gtk.DataColumn)
public SortType getSortOrder()
public boolean getIsVisible()
public void addAttributeMapping(CellRenderer renderer, CellRendererAttribute attribute, DataColumn dataBlock)
TreeView
widgets contain TreeViewColumn
objects. These
contain CellRenderer
s to display data on the screen. This data
is stored in a ListStore
or TreeStore
. In order for data
to be displayed, a mapping has to be made between the data in the data
store and the attributes of the CellRenderers which determine what they
render. This method creates those mappings.
renderer
- The cell renderer to add the mapping to. This must have been
addded to this column.attribute
- The attribute to be mapped. This must be one of the attributes
for the given renderer.dataBlock
- the dataBlock in the store in which the data is contained.
This should be of the type required by the renderer attribute.public void clearAttributeMappings(CellRenderer renderer)
addAttributeMapping(CellRenderer, CellRendererAttribute,
DataColumn)
public void setExpand(boolean expand)
expand
- public boolean getExpand()
public void focusCell(CellRenderer cell)
public void addListener(TreeViewColumnListener listener)
TreeViewColumnListener
public void removeListener(TreeViewColumnListener listener)
addListener(TreeViewColumnListener)
public java.lang.Class getEventListenerClass(java.lang.String signal)
getEventListenerClass
in class org.gnu.glib.GObject
public org.gnu.glib.EventType getEventType(java.lang.String signal)
getEventType
in class org.gnu.glib.GObject
public static org.gnu.glib.Type getType()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |