org.gnu.gtk
public class TreeViewColumn extends GObject
Constructor Summary | |
---|---|
TreeViewColumn()
Creates a new Column |
Method Summary | |
---|---|
void | addAttributeMapping(CellRenderer renderer, CellRendererAttribute attribute, DataColumn dataBlock)
TreeView widgets contain TreeViewColumn objects. |
void | addListener(TreeViewColumnListener listener)
Register an object to handle events on the column header.
|
void | clear()
Removes all the renderers from the column. |
void | clearAttributeMappings(CellRenderer renderer)
Clears all attribute mappings
|
void | click()
Creates a Clicked event. |
void | focusCell(CellRenderer cell)
Sets the current keyboard focus to be at cell, if the column contains 2
or more editable and activatable cells.
|
double | getAlignment() |
CellRenderer[] | getCellRenderers()
Returns an array of CellRenderers in the column in no particular order. |
boolean | getClickable() |
Class | getEventListenerClass(String signal) |
EventType | getEventType(String signal) |
boolean | getExpand()
Return TRUE if the column expands to take any available space.
|
int | getFixedWidth() |
boolean | getIsVisible()
Returns TRUE if any of the cells packed into the column are visible. |
int | getMaxWidth() |
int | getMinWidth() |
boolean | getReorderable() |
boolean | getResizable() |
TreeViewColumnSizing | getSizing() |
boolean | getSortIndicator() |
SortType | getSortOrder() |
int | getSpacing() |
String | getTitle() |
static Type | getType()
Retrieve the runtime type used by the GLib library. |
boolean | getVisible() |
Widget | getWidget() |
int | getWidth()
Returns the current size of the column in pixels
|
void | packEnd(CellRenderer cell, boolean expand)
Packs the cell into the column. |
void | packStart(CellRenderer cell, boolean expand)
Packs the cell into the beginning column. |
void | removeListener(TreeViewColumnListener listener)
Removes a listener
|
void | setAlignment(double align)
Sets the alignment of the title or custom widget inside the column
header. |
void | setClickable(boolean clickable)
Sets the header to be active if active is TRUE. |
void | setExpand(boolean expand)
Sets the column to take available extra space. |
void | setFixedWidth(int fixedWidth)
Sets the size of the column in pixels. |
void | setMaxWidth(int maxWidth)
Sets the maximum width of the column. |
void | setMinWidth(int minWidth)
Sets the minimum width of the column. |
void | setReorderable(boolean reorderable)
If reorderable is TRUE, then the column can be reordered
by the end user dragging the header. |
void | setResizable(boolean resizable)
If resizable is TRUE, then the user can explicitly resize the column by
grabbing the outer edge of the column button.
|
void | setSizing(TreeViewColumnSizing type)
Sets the growth behavior of the column
|
void | setSortColumn(DataColumn column)
Sets the logical DataColumn that this column sorts on when this column is
selected for sorting. |
void | setSortIndicator(boolean setting)
Call this function with a setting of TRUE to display an
arrow in the header button indicating the column is sorted. |
void | setSortOrder(SortType order)
Changes the appearance of the sort indicator.
|
void | setSpacing(int spacing)
Sets the spacing field of the column, which is the number of pixels to
place between cell renderers packed into it.
|
void | setTitle(String title)
Sets the title of the column. |
void | setVisible(boolean visible)
Sets the visibility of the column
|
void | setWidget(Widget widget)
Sets the widget in the header to be widget |
Parameters: 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.
See Also: TreeViewColumnListener
See Also: TreeViewColumn
Since: 2.2
Returns: true, if the column expands
Since: 2.4
Returns: The current width, in pizels.
Parameters: cell The CellRenderer. expand TRUE if cell is to be given extra space allocated to box.
Parameters: cell The CellRenderer. expand TRUE if cell is to be given extra space allocated to box.
See Also: addListener
Parameters: align : The alignment, which is between [0.0 and 1.0] inclusive.
active
is TRUE. When the
header is active, then it can take keyboard focus, and can be clicked.
Parameters: clickable TRUE if the header is active.
Parameters: expand
Since: 2.4
Parameters: fixedWidth The size to set the column to. Must be greater than 0.
Parameters: maxWidth The maximum width of the column in pixels, or -1.
Parameters: minWidth The minimum width of the column in pixels, or -1.
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.
Parameters: reorderable TRUE, if the column can be reordered.
Parameters: resizable TRUE, if the column can be resized.
Parameters: type The TreeViewColumnSizing.
Parameters: column The DataColumn of the model to sort on.
TRUE
to display an
arrow in the header button indicating the column is sorted. Call
setSortOrder to change the direction of the arrow.
Parameters: setting TRUE to display an indicator that the column is sorted
This does not actually sort the model. Use TreeViewColumn if you want automatic sorting support. This function is primarily for custom sorting behavior, and should be used in conjunction with TreeViewColumn 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;
Parameters: order Sort order that the sort indicator should indicate
See Also: TreeViewColumn TreeViewColumn
Parameters: spacing Distance between cell renderers in pixels.
Parameters: title The title of the column
Parameters: visible If true, the column s visible.