|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.netbeans.spi.viewmodel.Models
Contains various utility methods for various models.
Nested Class Summary | |
static interface |
Models.ActionPerformer
Support interface for #createAction(String,Object,Models.ActionPerformer) method. |
static class |
Models.CompoundModel
This model encapsulates all currently supported models. |
static class |
Models.TreeFeatures
Implements set of tree view features. |
Field Summary | |
static Models.CompoundModel |
EMPTY_MODEL
Empty model - returns default root node with no children. |
static int |
MULTISELECTION_TYPE_ALL
|
static int |
MULTISELECTION_TYPE_ANY
|
static int |
MULTISELECTION_TYPE_EXACTLY_ONE
|
Constructor Summary | |
Models()
|
Method Summary | |
static Action |
createAction(String displayName,
Models.ActionPerformer performer,
int multiselectionType)
Returns Action for given parameters. |
static Models.CompoundModel |
createCompoundModel(List models)
Creates one Models.CompoundModel from given list of models. |
static JComponent |
createView(Models.CompoundModel compoundModel)
Creates a new instances of TreeTableView for given TreeModel ,
TreeModel ,
NodeModel ,
NodeActionsProvider and
list of ColumnModel s. |
static void |
setModelsToView(JComponent view,
Models.CompoundModel compoundModel)
Set given models to given view instance. |
static Models.TreeFeatures |
treeFeatures(JComponent view)
Returns implementation of tree view features for given view. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static Models.CompoundModel EMPTY_MODEL
public static int MULTISELECTION_TYPE_EXACTLY_ONE
public static int MULTISELECTION_TYPE_ALL
public static int MULTISELECTION_TYPE_ANY
Constructor Detail |
public Models()
Method Detail |
public static JComponent createView(Models.CompoundModel compoundModel)
TreeModel
,
TreeModel
,
NodeModel
,
NodeActionsProvider
and
list of ColumnModel
s.
public static void setModelsToView(JComponent view, Models.CompoundModel compoundModel)
view
- a view instancepublic static Models.CompoundModel createCompoundModel(List models)
Models.CompoundModel
from given list of models.
models
- a list of models
Models.CompoundModel
encapsulating given list of modelspublic static Action createAction(String displayName, Models.ActionPerformer performer, int multiselectionType)
Action
for given parameters.
displayName
- a display name for actionperformer
- a performer for action
Action
for given parameterspublic static Models.TreeFeatures treeFeatures(JComponent view) throws UnsupportedOperationException
view
- a view created by this Models class
UnsupportedOperationException
- in the case that given
view is not tree view
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |