Table View
A TableView may be used to visualize a data table.
The items list is used as the data model. The columns list defines how the data is represented.
Simplified example on how the columns list is used to represent the data:
items: 1, 2, 3
columns: ("first", {x -> x+1}, 10),
("second", {x -> "nice string " + x}, 14),
("third", {x -> "" + x*x + "!"}, 10)
Representation:
|first |second |third |
|----------|--------------|----------|
|2 |nice string 1 |1! |
|3 |nice string 2 |4! |
|4 |nice string 3 |9! |
Note that the components Font will be ignored. Use the font field for each TableColumn.
See also
Parameters
Generic TableView content.
Horizontal coordinate for this TableView. Default: 0.
Vertical coordinate for this TableView. Default: 0.
Width for this TableView. Default: DEFAULT_TABLE_VIEW_WIDTH.
Height for this TableView. Default: DEFAULT_TABLE_VIEW_HEIGHT.
Initial columns for this TableView. Default: empty list.
Initial list of items for this TableView. Default: empty list.
Background Visual. Default: ColorVisual.WHITE.
Selection mode to be used for this TableView. Default: SelectionMode.SINGLE.
Background for selected items in this TableView. Default: ColorVisual.BLUE.
Constructors
Creates a TableView.
Functions
Clears selection of items. Instantly returns if no item is currently selected.
Adds an offset to this ComponentView's Position.
Removes this component from its parent.
Repositions this ComponentView to the specified coordinates.
Rotates this ComponentView by the given number of degrees.
Scales this ComponentView by the given scalar.
Scales this ComponentView's width by the given scalar.
Scales this ComponentView's height by the given scalar.
Selects all items in this UIComponent.
Selects the first element in this UIComponent. Clears current selection.
Selects the last element in this UIComponent. Clears current selection.
Selects the next element in this UIComponent. Clears current selection.
Selects the previous element in this UIComponent. Clears current selection.
Puts the ComponentView to the back inside its parent and Changes its zIndex accordingly.
Puts the ComponentView to the front inside its parent and Changes its zIndex accordingly.
Properties
The actual height for this ComponentView considering scale.
Horizontal position of this ComponentView considering scale.
Vertical position of this ComponentView considering scale.
The actual width for this ComponentView considering scale.
Css style that gets applied to this UIComponent's background.
Property for the css style that gets applied to this UIComponent's background.
An ObservableList that contains TableColumns which specify how the data is represented in that column. The first TableColumn in this ObservableList will be the leftmost column in the rendered TableView.
Css style that gets applied to this UIComponent.
Property for the css style that gets applied to this UIComponent.
Returns whether this ComponentView is a valid drop target for the dragged component in the given DragEvent or not.
Property for the Font of this UIComponent. Usage depends on subclass.
Property for the height of this ComponentView.
Controls if user input events cause input functions of this ComponentView to get invoked.
Property that controls if user input events cause input functions of this ComponentView to get invoked.
Controls whether this ComponentView is focusable or not.
Property that controls whether this ComponentView is focusable or not.
Property for the visibility of this ComponentView.
An ObservableList that contains the data objects. The first object in this ObservableList will be the topmost row in the rendered UIComponent.
Returns a CoordinatePlain containing the component's corner Coordinates and its layout bounds.
Gets invoked with a DragEvent whenever a drag and drop gesture finishes over this ComponentView and the dropAcceptor returns true
for the given DragEvent.
Gets invoked with a DragEvent whenever the mouse enters this ComponentView while performing a drag gesture.
Gets invoked with a DragEvent whenever the mouse leaves this ComponentView while performing a drag gesture.
Gets invoked with a KeyEvent whenever a key is pressed while this ComponentView has focus.
Gets invoked with a KeyEvent whenever a key is released while this ComponentView has focus.
Gets invoked with a KeyEvent whenever a Character is typed while this ComponentView has focus. Gets invoked after onKeyPressed.
Gets invoked with a MouseEvent whenever the mouse is clicked inside this ComponentView. Gets invoked after onMousePressed and onMouseReleased.
Gets invoked with a MouseEvent whenever the mouse enters this ComponentView.
Gets invoked with a MouseEvent whenever the mouse leaves this ComponentView.
Gets invoked with a MouseEvent whenever the mouse is pressed inside this ComponentView.
Gets invoked with a MouseEvent whenever the mouse is released inside this ComponentView.
Gets invoked with a ScrollEvent whenever the mouse wheel is turned while the mouse is inside this ComponentView.
Property for the opacity of this ComponentView.
Property for the horizontal position of this ComponentView.
Property for the vertical position of this ComponentView.
Property for the rotation of this ComponentView in degrees.
Property for the horizontal scale of this ComponentView.
Property for the vertical scale of this ComponentView.
ReadonlyObservableList containing indices of all currently selected items in this UIComponent. Register a listener to listen for selection changes. Item selection is enabled via selectionMode.
ReadonlyObservableList containing all currently selected items in this UIComponent. Register a listener to listen for selection changes. Item selection is enabled via selectionMode.
Background color for selected items in this UIComponent. Item selection is enabled via selectionMode.
Property for the background color for selected items in this UIComponent. Item selection is enabled via selectionMode.
Selection mode to be used for this UIComponent.
Property for the selectionMode of this UIComponent.
Style of selected items in this UIComponent. Item selection is enabled via selectionMode.
Property for the style of selected items in this UIComponent. Item selection is enabled via selectionMode.
Property for the width of this ComponentView.
Property for the order of ComponentView inside of parent.#