See: Description
Package | Description |
---|---|
org.netbeans.spi.viewmodel |
Defines API for sharing of Tree Table View.
|
Support for tree table view. The view is described via models - TreeModel, TableModel and NodeModel. Filters can be applied to each model - TreeModelFilter, TableModelFilter and NodeModelFilter. The view listens on changes in the models and filters and updates itself accordingly.
Views that show asynchronously loaded children nodes, have problems
with visible refreshes of the children tree.
CachedChildrenTreeModel
is introduced to allow seamless
refresh of children tree.
So far the HTML value is automatically retrieved from the value provided
by the TableModel
when the value is a String
and contains HTML code. This is not flexible enough and therefore
we separate the value and HTML value by introduction of TableHTMLModel
and TableHTMLModelFilter
.
In addition to that, this API change also brings a prossibility
to provide custom property editor, separately for every value.
Two interfaces are introduced for this purpose: TablePropertyEditorsModel
and TablePropertyEditorsModelFilter
.
This also implies, that Models.CompoundModel
now implements
TableHTMLModel
and TablePropertyEditorsModel
.
In order to be able to fire changes in HTML value and also in r/w state,
an additional constructor of ModelEvent.TableValueChanged
is added, which takes the change mask. Three change masks are defined:
VALUE_MASK
, HTML_VALUE_MASK
and IS_READ_ONLY_MASK
.
To get the change mask, ModelEvent.TableValueChanged.getChange()
method is added.
This API introduce TableRendererModel and TableRendererModelFilter that can be used to provide custom table cell renderers and cell editors.
This API introduce ReorderableTreeModel and ReorderableTreeModelFilter that can be used to alter the order of children nodes.
This API introduce DnDNodeModel and DnDNodeModelFilter that can be used by clients to implement Drag and Drop.
|
The sources for the module are in the NetBeans Mercurial repositories.
Read more about the implementation in the answers to architecture questions.
Built on June 4 2024. | Copyright © 2017-2024 Apache Software Foundation. All Rights Reserved.