jTableViewExtended
TableCell
Events:
- MouseClicked (EventData As MouseEvent)
- MouseDragged (EventData As MouseEvent)
- MouseEntered (EventData As MouseEvent)
- MouseExited (EventData As MouseEvent)
- MouseMoved (EventData As MouseEvent)
- MousePressed (EventData As MouseEvent)
- MouseReleased (EventData As MouseEvent)
Fields:
- ALIGN_BASELINE_CENTER As javafx.geometry.Pos
- ALIGN_BASELINE_LEFT As javafx.geometry.Pos
- ALIGN_BASELINE_RIGHT As javafx.geometry.Pos
- ALIGN_BOTTOM_CENTER As javafx.geometry.Pos
- ALIGN_BOTTOM_LEFT As javafx.geometry.Pos
- ALIGN_BOTTOM_RIGHT As javafx.geometry.Pos
- ALIGN_CENTER As javafx.geometry.Pos
- ALIGN_CENTER_LEFT As javafx.geometry.Pos
- ALIGN_CENTER_RIGHT As javafx.geometry.Pos
- ALIGN_TOP_CENTER As javafx.geometry.Pos
- ALIGN_TOP_LEFT As javafx.geometry.Pos
- ALIGN_TOP_RIGHT As javafx.geometry.Pos
- OVERRUN_CENTER_ELLIPSIS As javafx.scene.control.OverrunStyle
- OVERRUN_CENTER_WORD_ELLIPSIS As javafx.scene.control.OverrunStyle
- OVERRUN_CLIP As javafx.scene.control.OverrunStyle
- OVERRUN_ELLIPSIS As javafx.scene.control.OverrunStyle
- OVERRUN_LEADING_ELLIPSIS As javafx.scene.control.OverrunStyle
- OVERRUN_LEADING_WORD_ELLIPSIS As javafx.scene.control.OverrunStyle
- OVERRUN_WORD_ELLIPSIS As javafx.scene.control.OverrunStyle
Functions:
- Update
Raises the CellFactory event.
- Update2 (Item As Object)
Changes the item displayed in this cell and raises the CellFactory event.
Properties:
- Alignment As javafx.geometry.Pos
Gets or sets how the cell content should be aligned when there is empty space around the content (one of the ALIGN_ constants).
- Column As TableColumn [read only]
Returns the TableColumn in which this cell is currently located.
- EllipsisString As String
Gets or sets the string to display for the ellipsis when the text is truncated.
- Font As javafx.scene.text.Font
Gets or sets the font to use for the text of this cell.
- Height As Double [read only]
- Item As Object [read only]
Returns the item to display in this cell.
- Row As TableRow [read only]
Returns the TableRow that this cell currently finds itself placed within.
- Style As String
Gets or sets the CSS style string associated to this cell.
- Tag As Object
- TextOverrun As javafx.scene.control.OverrunStyle
Gets or sets the behavior to use if the text of the cell exceeds the available space for rendering the text (one of the OVERRUN_ constants).
- Width As Double [read only]
TableColumn
Events:
- CellFactory (Cell As TableCell, Empty As Boolean) As Object
- Compare (Obj1 As Object, Obj2 As Object) As Int
Fields:
- SORTTYPE_ASCENDING As javafx.scene.control.TableColumn.SortType
- SORTTYPE_DESCENDING As javafx.scene.control.TableColumn.SortType
Functions:
- GetData (RowIndex As Int) As Object
Returns the data for this column at the specified row index.
- SetCellFactory (EventPrefix As String)
Raises a CellFactory event whenever a cell is rendered. This event can be used to change how data are displayed in the cell.
- SetCellFactoryWithMouseEvents (EventPrefix As String)
Raises a CellFactory event whenever a cell is rendered and raises the mouse events for the user actions in the cell.
The CellFactory event can be used to change how data are displayed in the cell.
- SetComparator (SubPrefix As String)
Calls a Compare sub when data are sorted. This sub should return:
- a negative integer if the first data is lesser than the second;
- zero if both data are equal;
- a positive integer if the first data is greater than the second.
Properties:
- HeaderText As String
Gets or sets the column header text.
- Index As Int [read only]
Returns the column index.
- Resizable As Boolean
Gets or sets whether the width of this column can change (default = True).
- Sortable As Boolean
Gets or sets whether this column can be sorted (default = True).
- SortType As javafx.scene.control.TableColumn.SortType
Gets or sets whether this column should be sorted in ascending or descending order.
- Style As String
Gets or sets the CSS style string associated to this column.
- Tag As Object
- Visible As Boolean
Gets or sets whether this column is visible (default = True).
- Width As Double
Gets or sets the width of this column.
TableRow
Events:
- MouseClicked (EventData As MouseEvent)
- MouseDragged (EventData As MouseEvent)
- MouseEntered (EventData As MouseEvent)
- MouseExited (EventData As MouseEvent)
- MouseMoved (EventData As MouseEvent)
- MousePressed (EventData As MouseEvent)
- MouseReleased (EventData As MouseEvent)
Properties:
- Height As Double [read only]
- Index As Int [read only]
Returns the row index.
- Style As String
Gets or sets the CSS style string associated to this row.
- Tag As Object
TableViewExtended
Fields:
- CONSTRAINED_RESIZE_POLICY As Byte
- UNCONSTRAINED_RESIZE_POLICY As Byte
Functions:
- ClearSelection
- DisableReorderingColumns
Disables reordering of columns. This works only if the header row exists, so you should not call this before Form.Show.
- GetColumn (ColumnIndex As Int) As TableColumn
Returns the Column object for the specified index.
- GetColumnHeader (arg0 As Int) As String
- GetColumnVisible (arg0 As Int) As Boolean
- GetColumnWidth (arg0 As Int) As Double
- Initialize (arg1 As String)
- InitializeByExtending (TV As TableView)
Shares the internal object of the specified TableView with this TableViewExtended. Thus any change to this TableViewExtended will alter the original TableView and vice versa.
The main use of this function is to extend a TableView created with the designer (after it is loaded with LoadLayout).
- IsInitialized As Boolean
- RemoveNodeFromParent
- RequestFocus
- ScrollTo (arg0 As Int)
- ScrollToColumn (ColumnIndex As Int)
Scrolls to the specified column.
- SelectCell (arg0 As Int, arg1 As Int)
- SetAlphaAnimated (arg0 As Int, arg1 As Double)
- SetColumnHeader (arg0 As Int, arg1 As String)
- SetColumns (arg0 As List)
- SetColumnSortable (arg0 As Int, arg1 As Boolean)
- SetColumnVisible (arg0 As Int, arg1 As Boolean)
- SetColumnWidth (arg0 As Int, arg1 As Double)
- SetLayoutAnimated (arg0 As Int, arg1 As Double, arg2 As Double, arg3 As Double, arg4 As Double)
- SetRowEventsListener (EventPrefix As String)
Sets a listener for the mouse events occurring in the table rows.
- SetSize (arg0 As Double, arg1 As Double)
- Snapshot As Image
- Snapshot2 (arg0 As javafx.scene.paint.Paint) As Image
- Sort
Forces the TableViewExtended to re-run its sorting algorithm.
Properties:
- Alpha As Double
- ColumnResizePolicy As Byte
Gets or sets the policy to apply when the user completes a column-resize operation.
UNCONSTRAINED_RESIZE_POLICY: Very simple resize policy that just resizes the specified column and shifts all columns to its right.
CONSTRAINED_RESIZE_POLICY: The table automatically adjusts the width of the right hand side columns to ensure that the sum of column widths is equal to the width of the table itself.
- ColumnsCount As Int [read only]
- ContextMenu As ContextMenu
- Enabled As Boolean
- FixedCellHeight As Double
Gets or sets the fixed height of all cells. If this value is less than or equal to zero, then all cells are individually sized and positioned.
- Height As Double [read only]
- Id As String
- Items As List
- Left As Double
- MouseCursor As javafx.scene.Cursor
- MultipleSelection As Boolean
Gets or sets whether multiple selection is allowed in this TableViewExtended (default = False).
- Parent As Node [read only]
- PickOnBounds As Boolean
- Placeholder As javafx.scene.Node [write only]
Sets the node to show to the user when the table has no content to show.
- PrefHeight As Double
- PrefWidth As Double
- SelectedCells As Int(,) [read only]
Returns a two-dimensional array containing the position (row, column) of selected cells.
- SelectedRow As Int
- SelectedRows As Int() [read only]
Returns an array containing the indices of selected rows.
- SelectedRowValues As Object()
- SingleCellSelection As Boolean
- SortOrder As List
Gets or sets the list that defines the order in which TableColumn instances are sorted. An empty list means that no sorting is being applied on the TableViewExtended.
- Style As String
- StyleClasses As List [read only]
- Tag As Object
- TooltipText As String
- Top As Double
- Visible As Boolean
- Width As Double [read only]
Author: F. Leneuf-Magaud (Informatix)