This document lists changes made to the View Model APIs. Please ask on the
nbdev@netbeans.org
mailing list if you have any questions about the details of a
change, or are wondering how to convert existing code to be compatible.
Fuller descriptions of all changes can be found below (follow links).
Not all deprecations are listed here, assuming that the deprecated APIs continue to essentially work. For a full deprecation list, please consult the Javadoc.
These API specification versions may be used to indicate that a module requires a certain API feature in order to function. For example, if you see here a feature you need which is labelled 1.20, your manifest should contain in its main attributes the line:
OpenIDE-Module-Module-Dependencies: org.netbeans.spi.viewmodel/2 > 1.20
org.netbeans.spi.viewmodel.AsynchronousModelFilter
org.netbeans.spi.viewmodel.CachedChildrenTreeModel
org.netbeans.spi.viewmodel.CheckNodeModel
org.netbeans.spi.viewmodel.CheckNodeModelFilter
org.netbeans.spi.viewmodel.ColumnModel
org.netbeans.spi.viewmodel.DnDNodeModel
org.netbeans.spi.viewmodel.DnDNodeModelFilter
org.netbeans.spi.viewmodel.ExtendedNodeModel
org.netbeans.spi.viewmodel.ExtendedNodeModelFilter
org.netbeans.spi.viewmodel.ModelEvent
org.netbeans.spi.viewmodel.Models
org.netbeans.spi.viewmodel.ReorderableTreeModel
org.netbeans.spi.viewmodel.ReorderableTreeModelFilter
org.netbeans.spi.viewmodel.TableHTMLModel
org.netbeans.spi.viewmodel.TableHTMLModelFilter
org.netbeans.spi.viewmodel.TablePropertyEditorsModel
org.netbeans.spi.viewmodel.TablePropertyEditorsModelFilter
org.netbeans.spi.viewmodel.TableRendererModel
org.netbeans.spi.viewmodel.TableRendererModelFilter
org.netbeans.spi.viewmodel.TreeExpansionModel
org.netbeans.spi.viewmodel.TreeExpansionModelFilter
org.netbeans.spi.viewmodel.TreeModel
CachedChildrenTreeModel
; made by: mentlicher; issues:
#248775
CachedChildrenTreeModel
is introduced to allow seamless
refresh of children tree.
TableHTMLModel
TableHTMLModelFilter
TablePropertyEditorsModel
TablePropertyEditorsModelFilter
ModelEvent
; made by: mentlicher; issues:
#228909
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
.
TablePropertyEditorsModel
and TablePropertyEditorsModelFilter
.
Models.CompoundModel
now implements
TableHTMLModel
and TablePropertyEditorsModel
.
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.
TableRendererModel
TableRendererModelFilter
; made by: mentlicher; issues:
#186672
ReorderableTreeModel
ReorderableTreeModelFilter
; made by: mentlicher; issues:
#178301
DnDNodeModel
DnDNodeModelFilter
; made by: mentlicher; issues:
#177506
AsynchronousModelFilter
; made by: mentlicher; issues:
#172694
ModelEvent
; made by: mentlicher; issues:
#171194
Added classes:
org.netbeans.spi.viewmodel.ModelEvent.SelectionChanged
,
CheckNodeModel
CheckNodeModelFilter
; made by: mentlicher; issues:
#159545
Added classes:
org.netbeans.spi.viewmodel.CheckNodeModel
,
org.netbeans.spi.viewmodel.CheckNodeModelFilter
TreeExpansionModelFilter
Models
; made by: mentlicher; issues:
#136099
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
ExtendedNodeModel
ExtendedNodeModelFilter
Models
; made by: mentlicher; issues:
#104281
ExtendedNodeModel
and ExtendedNodeModelFilter
interfaces
and are also added into CompoundModel
:
canRename()
, canCopy()
, canCut()
,
clipboardCopy()
, clipboardCut()
, getPasteTypes()
,
setName()
, getIconBaseWithExtension()
.
ColumnModel
; made by: mentlicher; issues:
#71858
Character ColumnModel.getDisplayedMnemonic()
method was
added to ColumnModel class.
Models
; made by: mentlicher; issues:
#62617
CompoundModel Models.createCompoundModel (List, String)
and String CompoundModel.getHelpId()
.
ModelEvent
; made by: mentlicher; issues:
#60499
Models
TreeExpansionModel
; made by: jjancura; issues:
#46167
TreeModel
; made by: jjancura; issues:
#46368
Incompatile changes (additions / removals).