Package com.globalmentor.model
Interface ModelViewable
Deprecated.
Indicates an object allows multiple views to an underlying data model.
Bound properties:
MODEL_VIEW_PROPERTY
(Integer
)- Indicates the data view has been changed.
- Author:
- Garret Wilson
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Deprecated.The view in which configuration and settings data is shown.static final int
Deprecated.The view in which the data is shown in a graph structure.static final int
Deprecated.The view in which a list of items is shown.static final String
Deprecated.The name of the bound view property.static final int
Deprecated.Represents no view of the data.static final int
Deprecated.The view in which a sequence of items is shown, perhaps as a card deck.static final int
Deprecated.The view in which any source data used to generate the data is shown.static final int
Deprecated.The view in which the data is shown as a brief overview.static final int
Deprecated.The view in which the data is shown in a tree structure.static final int
Deprecated.The view in which the data is shown as it would be in its final form. -
Method Summary
Modifier and TypeMethodDescriptionint
Deprecated.int
Deprecated.int[]
Deprecated.boolean
isModelViewSupported
(int modelView) Deprecated.Determines whether this object supports the given data view.void
setModelView
(int newView) Deprecated.Sets the view of the data.
-
Field Details
-
MODEL_VIEW_PROPERTY
Deprecated.The name of the bound view property. -
NO_MODEL_VIEW
static final int NO_MODEL_VIEWDeprecated.Represents no view of the data. This should only be used for error conditions and when the data is not being viewed.- See Also:
-
TREE_MODEL_VIEW
static final int TREE_MODEL_VIEWDeprecated.The view in which the data is shown in a tree structure.- See Also:
-
GRAPH_MODEL_VIEW
static final int GRAPH_MODEL_VIEWDeprecated.The view in which the data is shown in a graph structure.- See Also:
-
WYSIWYG_MODEL_VIEW
static final int WYSIWYG_MODEL_VIEWDeprecated.The view in which the data is shown as it would be in its final form.- See Also:
-
SEQUENCE_MODEL_VIEW
static final int SEQUENCE_MODEL_VIEWDeprecated.The view in which a sequence of items is shown, perhaps as a card deck.- See Also:
-
LIST_MODEL_VIEW
static final int LIST_MODEL_VIEWDeprecated.The view in which a list of items is shown.- See Also:
-
SUMMARY_MODEL_VIEW
static final int SUMMARY_MODEL_VIEWDeprecated.The view in which the data is shown as a brief overview.- See Also:
-
SOURCE_MODEL_VIEW
static final int SOURCE_MODEL_VIEWDeprecated.The view in which any source data used to generate the data is shown.- See Also:
-
CONFIGURATION_MODEL_VIEW
static final int CONFIGURATION_MODEL_VIEWDeprecated.The view in which configuration and settings data is shown.- See Also:
-
-
Method Details
-
getSupportedModelViews
int[] getSupportedModelViews()Deprecated.- Returns:
- An array of supported model views.
-
isModelViewSupported
boolean isModelViewSupported(int modelView) Deprecated.Determines whether this object supports the given data view.- Parameters:
modelView
- A model view such asSUMMARY_MODEL_VIEW
.- Returns:
true
if and only if this object supports the indicated model view.
-
getDefaultModelView
int getDefaultModelView()Deprecated.- Returns:
- The default view of the data, such as
SUMMARY_MODEL_VIEW
.
-
getModelView
int getModelView()Deprecated.- Returns:
- The view of the data, such as
SUMMARY_MODEL_VIEW
.
-
setModelView
void setModelView(int newView) Deprecated.Sets the view of the data.- Parameters:
newView
- The view of the data, such asSUMMARY_MODEL_VIEW
.- Throws:
IllegalArgumentException
- Thrown if the given view is not supported.
-