|
org.netbeans.spi.viewmodel/2 1.15 | |||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||
See:
Description
| TreeTableView Model | |
|---|---|
| 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.
This API change is necessary for the redesign of the debugger UI and to be able to better control node expansions.
Added classes:
org.netbeans.spi.viewmodel.TreeExpansionModelFilter
Changed classes:
Models.TreeFeatures - final class with a private
constructor changed to an abstract class.
Added methods:
Models.createNodes(),
Added fields:
ModelEvent.EXPANSION_MASK
Add ability to in-place rename and copy/paste functionality to nodes
in debugger views. Also, the models needs to have a way to provide
an icon with arbitrary extension. Therefore following methods are
provided with new ExtendedNodeModel and ExtendedNodeModelFilter interfaces
and are also added into CompoundModel:
canRename(), canCopy(), canCut(),
clipboardCopy(), clipboardCut(), getPasteTypes(),
setName(), getIconBaseWithExtension().
In order to be able to provide mnemonics for columns in tree table views,
Character ColumnModel.getDisplayedMnemonic() method was
added to ColumnModel class.
In order to have a help ID defined for the GUI component that is
created from the compound model, it's necessary to be able to set
that help ID on the compound model instance.
Two methods are added for that purpose:
CompoundModel Models.createCompoundModel (List, String)
and String CompoundModel.getHelpId().
NodeChanged events need to distinguish what node property has changed. Mask constant were added for display name, icon, short description and children properties. By default, mask that aggregates all these properties is used - to assure compatibility.
|
The sources for the module are in the NetBeans Mercurial repositories.
Read more about the implementation in the answers to architecture questions.
|
org.netbeans.spi.viewmodel/2 1.15 | |||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||