Class FeatureTable

Object
Node
Parent
Region
Control
TableView<AbstractFeature>
FeatureTable
All Implemented Interfaces:
Styleable, Event­Target, Skinnable

@DefaultProperty("features") public class FeatureTable extends TableView<AbstractFeature>
A view of Feature­Set data organized as a table. The features are specified by a call to set­Features(Feature­Set), which will load the features in a background thread. At first only a limited amount of features are loaded. More features will be loaded only when the user scroll down.

If this view is removed from scene graph, then interrupt() should be called for stopping any loading process that may be under progress.

Limitations

  • The items­Property should be considered read-only, and Table­View​.set­Items(Observable­List) should never be invoked explicitly. For changing content, use the features­Property instead.
  • The list returned by Table­View​.get­Items() should be considered read-only.
Since:
1.1

Defined in the sis-javafx module

TODO:
This class does not yet handle Feature­Association­Role. We could handle them with Split­Pane with the main feature table in the upper part and the feature table of selected cell in the bottom part. Bottom part could put tables in a Accordion since there is possibly different tables to show depending on the column of selected cell.
  • Property Summary

    Properties inherited from class TableView

    column­Resize­Policy, comparator, editable, editing­Cell, fixed­Cell­Size, focus­Model, items, on­Scroll­To­Column, on­Scroll­To, on­Sort, placeholder, row­Factory, selection­Model, sort­Policy, table­Menu­Button­Visible

    Properties inherited from class Control

    context­Menu, skin, tooltip

    Properties inherited from class Region

    background, border, cache­Shape, center­Shape, height, insets, max­Height, max­Width, min­Height, min­Width, opaque­Insets, padding, pref­Height, pref­Width, scale­Shape, shape, snap­To­Pixel, width

    Properties inherited from class Parent

    needs­Layout

    Properties inherited from class Node

    accessible­Help, accessible­Role­Description, accessible­Role, accessible­Text, blend­Mode, bounds­In­Local, bounds­In­Parent, cache­Hint, cache, clip, cursor, depth­Test, disabled, disable, effective­Node­Orientation, effect, event­Dispatcher, focused, focus­Traversable, focus­Visible, focus­Within, hover, id, input­Method­Requests, layout­Bounds, layout­X, layout­Y, local­To­Parent­Transform, local­To­Scene­Transform, managed, mouse­Transparent, node­Orientation, on­Context­Menu­Requested, on­Drag­Detected, on­Drag­Done, on­Drag­Dropped, on­Drag­Entered, on­Drag­Exited, on­Drag­Over, on­Input­Method­Text­Changed, on­Key­Pressed, on­Key­Released, on­Key­Typed, on­Mouse­Clicked, on­Mouse­Drag­Entered, on­Mouse­Drag­Exited, on­Mouse­Dragged, on­Mouse­Drag­Over, on­Mouse­Drag­Released, on­Mouse­Entered, on­Mouse­Exited, on­Mouse­Moved, on­Mouse­Pressed, on­Mouse­Released, on­Rotate, on­Rotation­Finished, on­Rotation­Started, on­Scroll­Finished, on­Scroll, on­Scroll­Started, on­Swipe­Down, on­Swipe­Left, on­Swipe­Right, on­Swipe­Up, on­Touch­Moved, on­Touch­Pressed, on­Touch­Released, on­Touch­Stationary, on­Zoom­Finished, on­Zoom, on­Zoom­Started, opacity, parent, pick­On­Bounds, pressed, rotate, rotation­Axis, scale­X, scale­Y, scale­Z, scene, style, translate­X, translate­Y, translate­Z, view­Order, visible
  • Nested Class Summary

    Nested classes/interfaces inherited from class TableView

    Table­View​.Resize­Features<S>, Table­View​.Table­View­Focus­Model<S>, Table­View​.Table­View­Selection­Model<S>
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    final Object­Property<Feature­Set>
    The data shown in this table.

    Fields inherited from class TableView

    CONSTRAINED_RESIZE_POLICY, DEFAULT_SORT_POLICY, UNCONSTRAINED_RESIZE_POLICY

    Fields inherited from class Region

    USE_COMPUTED_SIZE, USE_PREF_SIZE

    Fields inherited from class Node

    BASELINE_OFFSET_SAME_AS_HEIGHT
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates an initially empty table.
    Creates a new table initialized to the same data than the specified table.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the source of features for this table.
    void
    If a loading process was under way, interrupts it and closes the feature stream.
    final void
    Sets the features to show in this table.

    Methods inherited from class TableView

    column­Resize­Policy­Property, comparator­Property, create­Default­Skin, edit, editable­Property, editing­Cell­Property, fixed­Cell­Size­Property, focus­Model­Property, get­Class­Css­Meta­Data, get­Column­Resize­Policy, get­Columns, get­Comparator, get­Control­Css­Meta­Data, get­Editing­Cell, get­Fixed­Cell­Size, get­Focus­Model, get­Items, get­On­Scroll­To, get­On­Scroll­To­Column, get­On­Sort, get­Placeholder, get­Row­Factory, get­Selection­Model, get­Sort­Order, get­Sort­Policy, get­Visible­Leaf­Column, get­Visible­Leaf­Columns, get­Visible­Leaf­Index, is­Editable, is­Table­Menu­Button­Visible, items­Property, on­Scroll­To­Column­Property, on­Scroll­To­Property, on­Sort­Property, placeholder­Property, query­Accessible­Attribute, refresh, resize­Column, row­Factory­Property, scroll­To, scroll­To, scroll­To­Column, scroll­To­Column­Index, selection­Model­Property, set­Column­Resize­Policy, set­Editable, set­Fixed­Cell­Size, set­Focus­Model, set­Items, set­On­Scroll­To, set­On­Scroll­To­Column, set­On­Sort, set­Placeholder, set­Row­Factory, set­Selection­Model, set­Sort­Policy, set­Table­Menu­Button­Visible, sort, sort­Policy­Property, table­Menu­Button­Visible­Property

    Methods inherited from class Control

    compute­Max­Height, compute­Max­Width, compute­Min­Height, compute­Min­Width, compute­Pref­Height, compute­Pref­Width, context­Menu­Property, execute­Accessible­Action, get­Baseline­Offset, get­Context­Menu, get­Css­Meta­Data, get­Initial­Focus­Traversable, get­Skin, get­Tooltip, is­Resizable, layout­Children, set­Context­Menu, set­Skin, set­Tooltip, skin­Property, tooltip­Property

    Methods inherited from class Region

    background­Property, border­Property, cache­Shape­Property, center­Shape­Property, get­Background, get­Border, get­Height, get­Insets, get­Max­Height, get­Max­Width, get­Min­Height, get­Min­Width, get­Opaque­Insets, get­Padding, get­Pref­Height, get­Pref­Width, get­Shape, get­User­Agent­Stylesheet, get­Width, height­Property, insets­Property, is­Cache­Shape, is­Center­Shape, is­Scale­Shape, is­Snap­To­Pixel, layout­In­Area, layout­In­Area, layout­In­Area, layout­In­Area, max­Height, max­Height­Property, max­Width, max­Width­Property, min­Height, min­Height­Property, min­Width, min­Width­Property, opaque­Insets­Property, padding­Property, position­In­Area, position­In­Area, pref­Height, pref­Height­Property, pref­Width, pref­Width­Property, resize, scale­Shape­Property, set­Background, set­Border, set­Cache­Shape, set­Center­Shape, set­Height, set­Max­Height, set­Max­Size, set­Max­Width, set­Min­Height, set­Min­Size, set­Min­Width, set­Opaque­Insets, set­Padding, set­Pref­Height, set­Pref­Size, set­Pref­Width, set­Scale­Shape, set­Shape, set­Snap­To­Pixel, set­Width, shape­Property, snapped­Bottom­Inset, snapped­Left­Inset, snapped­Right­Inset, snapped­Top­Inset, snap­Position, snap­Position­X, snap­Position­Y, snap­Size, snap­Size­X, snap­Size­Y, snap­Space, snap­Space­X, snap­Space­Y, snap­To­Pixel­Property, width­Property

    Methods inherited from class Parent

    get­Children, get­Children­Unmodifiable, get­Managed­Children, get­Stylesheets, is­Needs­Layout, layout, lookup, needs­Layout­Property, request­Layout, request­Parent­Layout, set­Needs­Layout, update­Bounds

    Methods inherited from class Node

    accessible­Help­Property, accessible­Role­Description­Property, accessible­Role­Property, accessible­Text­Property, add­Event­Filter, add­Event­Handler, apply­Css, autosize, blend­Mode­Property, bounds­In­Local­Property, bounds­In­Parent­Property, build­Event­Dispatch­Chain, cache­Hint­Property, cache­Property, clip­Property, compute­Area­In­Screen, contains, contains, cursor­Property, depth­Test­Property, disabled­Property, disable­Property, effective­Node­Orientation­Property, effect­Property, event­Dispatcher­Property, fire­Event, focused­Property, focus­Traversable­Property, focus­Visible­Property, focus­Within­Property, get­Accessible­Help, get­Accessible­Role, get­Accessible­Role­Description, get­Accessible­Text, get­Blend­Mode, get­Bounds­In­Local, get­Bounds­In­Parent, get­Cache­Hint, get­Clip, get­Content­Bias, get­Cursor, get­Depth­Test, get­Effect, get­Effective­Node­Orientation, get­Event­Dispatcher, get­Id, get­Initial­Cursor, get­Input­Method­Requests, get­Layout­Bounds, get­Layout­X, get­Layout­Y, get­Local­To­Parent­Transform, get­Local­To­Scene­Transform, get­Node­Orientation, get­On­Context­Menu­Requested, get­On­Drag­Detected, get­On­Drag­Done, get­On­Drag­Dropped, get­On­Drag­Entered, get­On­Drag­Exited, get­On­Drag­Over, get­On­Input­Method­Text­Changed, get­On­Key­Pressed, get­On­Key­Released, get­On­Key­Typed, get­On­Mouse­Clicked, get­On­Mouse­Drag­Entered, get­On­Mouse­Drag­Exited, get­On­Mouse­Dragged, get­On­Mouse­Drag­Over, get­On­Mouse­Drag­Released, get­On­Mouse­Entered, get­On­Mouse­Exited, get­On­Mouse­Moved, get­On­Mouse­Pressed, get­On­Mouse­Released, get­On­Rotate, get­On­Rotation­Finished, get­On­Rotation­Started, get­On­Scroll, get­On­Scroll­Finished, get­On­Scroll­Started, get­On­Swipe­Down, get­On­Swipe­Left, get­On­Swipe­Right, get­On­Swipe­Up, get­On­Touch­Moved, get­On­Touch­Pressed, get­On­Touch­Released, get­On­Touch­Stationary, get­On­Zoom, get­On­Zoom­Finished, get­On­Zoom­Started, get­Opacity, get­Parent, get­Properties, get­Pseudo­Class­States, get­Rotate, get­Rotation­Axis, get­Scale­X, get­Scale­Y, get­Scale­Z, get­Scene, get­Style, get­Styleable­Parent, get­Style­Class, get­Transforms, get­Translate­X, get­Translate­Y, get­Translate­Z, get­Type­Selector, get­User­Data, get­View­Order, has­Properties, hover­Property, id­Property, input­Method­Requests­Property, intersects, intersects, is­Cache, is­Disable, is­Disabled, is­Focused, is­Focus­Traversable, is­Focus­Visible, is­Focus­Within, is­Hover, is­Managed, is­Mouse­Transparent, is­Pick­On­Bounds, is­Pressed, is­Visible, layout­Bounds­Property, layout­XProperty, layout­YProperty, local­To­Parent, local­To­Parent, local­To­Parent, local­To­Parent, local­To­Parent, local­To­Parent­Transform­Property, local­To­Scene, local­To­Scene, local­To­Scene, local­To­Scene, local­To­Scene, local­To­Scene, local­To­Scene, local­To­Scene, local­To­Scene, local­To­Scene, local­To­Scene­Transform­Property, local­To­Screen, local­To­Screen, local­To­Screen, local­To­Screen, local­To­Screen, lookup­All, managed­Property, mouse­Transparent­Property, node­Orientation­Property, notify­Accessible­Attribute­Changed, on­Context­Menu­Requested­Property, on­Drag­Detected­Property, on­Drag­Done­Property, on­Drag­Dropped­Property, on­Drag­Entered­Property, on­Drag­Exited­Property, on­Drag­Over­Property, on­Input­Method­Text­Changed­Property, on­Key­Pressed­Property, on­Key­Released­Property, on­Key­Typed­Property, on­Mouse­Clicked­Property, on­Mouse­Drag­Entered­Property, on­Mouse­Drag­Exited­Property, on­Mouse­Dragged­Property, on­Mouse­Drag­Over­Property, on­Mouse­Drag­Released­Property, on­Mouse­Entered­Property, on­Mouse­Exited­Property, on­Mouse­Moved­Property, on­Mouse­Pressed­Property, on­Mouse­Released­Property, on­Rotate­Property, on­Rotation­Finished­Property, on­Rotation­Started­Property, on­Scroll­Finished­Property, on­Scroll­Property, on­Scroll­Started­Property, on­Swipe­Down­Property, on­Swipe­Left­Property, on­Swipe­Right­Property, on­Swipe­Up­Property, on­Touch­Moved­Property, on­Touch­Pressed­Property, on­Touch­Released­Property, on­Touch­Stationary­Property, on­Zoom­Finished­Property, on­Zoom­Property, on­Zoom­Started­Property, opacity­Property, parent­Property, parent­To­Local, parent­To­Local, parent­To­Local, parent­To­Local, parent­To­Local, pick­On­Bounds­Property, pressed­Property, pseudo­Class­State­Changed, relocate, remove­Event­Filter, remove­Event­Handler, request­Focus, resize­Relocate, rotate­Property, rotation­Axis­Property, scale­XProperty, scale­YProperty, scale­ZProperty, scene­Property, scene­To­Local, scene­To­Local, scene­To­Local, scene­To­Local, scene­To­Local, scene­To­Local, scene­To­Local, scene­To­Local, screen­To­Local, screen­To­Local, screen­To­Local, set­Accessible­Help, set­Accessible­Role, set­Accessible­Role­Description, set­Accessible­Text, set­Blend­Mode, set­Cache, set­Cache­Hint, set­Clip, set­Cursor, set­Depth­Test, set­Disable, set­Disabled, set­Effect, set­Event­Dispatcher, set­Event­Handler, set­Focused, set­Focus­Traversable, set­Hover, set­Id, set­Input­Method­Requests, set­Layout­X, set­Layout­Y, set­Managed, set­Mouse­Transparent, set­Node­Orientation, set­On­Context­Menu­Requested, set­On­Drag­Detected, set­On­Drag­Done, set­On­Drag­Dropped, set­On­Drag­Entered, set­On­Drag­Exited, set­On­Drag­Over, set­On­Input­Method­Text­Changed, set­On­Key­Pressed, set­On­Key­Released, set­On­Key­Typed, set­On­Mouse­Clicked, set­On­Mouse­Drag­Entered, set­On­Mouse­Drag­Exited, set­On­Mouse­Dragged, set­On­Mouse­Drag­Over, set­On­Mouse­Drag­Released, set­On­Mouse­Entered, set­On­Mouse­Exited, set­On­Mouse­Moved, set­On­Mouse­Pressed, set­On­Mouse­Released, set­On­Rotate, set­On­Rotation­Finished, set­On­Rotation­Started, set­On­Scroll, set­On­Scroll­Finished, set­On­Scroll­Started, set­On­Swipe­Down, set­On­Swipe­Left, set­On­Swipe­Right, set­On­Swipe­Up, set­On­Touch­Moved, set­On­Touch­Pressed, set­On­Touch­Released, set­On­Touch­Stationary, set­On­Zoom, set­On­Zoom­Finished, set­On­Zoom­Started, set­Opacity, set­Pick­On­Bounds, set­Pressed, set­Rotate, set­Rotation­Axis, set­Scale­X, set­Scale­Y, set­Scale­Z, set­Style, set­Translate­X, set­Translate­Y, set­Translate­Z, set­User­Data, set­View­Order, set­Visible, snapshot, snapshot, start­Drag­And­Drop, start­Full­Drag, style­Property, to­Back, to­Front, to­String, translate­XProperty, translate­YProperty, translate­ZProperty, uses­Mirroring, view­Order­Property, visible­Property

    Methods inherited from class Object

    clone, equals, finalize, get­Class, hash­Code, notify, notify­All, wait, wait, wait

    Methods inherited from interface Styleable

    get­Styleable­Node
  • Field Details

    • featuresProperty

      public final ObjectProperty<FeatureSet> featuresProperty
      The data shown in this table. Note that setting this property to a non-null value does not modify the table content immediately. Instead, a background process will load the feature instances.
      See Also:
  • Constructor Details

    • FeatureTable

      public FeatureTable()
      Creates an initially empty table.
    • FeatureTable

      public FeatureTable(FeatureTable other)
      Creates a new table initialized to the same data than the specified table. The two tables will share the same list as long as they are viewing the same data source: as the data loading progresses, new features will appear in both tables.
      Parameters:
      other - the other table from which to get the feature list.
  • Method Details

    • getFeatures

      public final FeatureSet getFeatures()
      Returns the source of features for this table.
      Returns:
      the features shown in this table, or null if none.
      See Also:
    • setFeatures

      public final void setFeatures(FeatureSet features)
      Sets the features to show in this table. This method loads an arbitrary number of features in a background thread. It does not load all features if the feature set is large, unless the user scroll down.

      If the loading of another Feature­Set was in progress at the time this method is invoked, then that previous loading process is cancelled.

      Note: the table content may appear unmodified after this method returns. The modifications will appear at an undetermined amount of time later.

      Parameters:
      features - the features to show in this table, or null if none.
      See Also:
    • interrupt

      public void interrupt()
      If a loading process was under way, interrupts it and closes the feature stream. This method returns immediately; the release of resources happens in a background thread.