public abstract class View
extends java.lang.Object
Constructor and Description |
---|
View(Viewer viewer,
java.lang.String iD,
java.lang.String name)
Builds a
View . |
Modifier and Type | Method and Description |
---|---|
void |
applyStyle(java.lang.String arg)
Applies a style to this view.
|
void |
deSelectAll()
Deselects all elements (with pre and post operations for synchronization).
|
ilog.views.gantt.action.IlvAction |
getContextualAction(ViewerAbstractAction action)
Returns the contextual action.
|
ilog.views.IlvTransformer |
getDefaultTransformer()
Returns the default transformer.
|
java.lang.String |
getID()
Returns the view ID.
|
javax.swing.JComponent |
getMainComponent()
Returns the main component.
|
java.lang.String |
getName()
Returns the view name.
|
javax.swing.JComponent |
getSecondaryComponent() |
Viewer |
getViewer()
Returns the associated viewer.
|
void |
initialize() |
boolean |
isRegisteredAction(ViewerAbstractAction action)
Checks whether the specified action is available.
|
boolean |
isStylable()
Indicates whether this view is stylable or not.
|
void |
performAction(ViewerAbstractAction action,
java.awt.event.ActionEvent event)
Executes the given action (if it has been registered).
|
void |
registerAction(ViewerAbstractAction action)
Registers an action.
|
void |
setAsCurrentView()
View is displayed.
|
void |
setSelected(java.lang.Object obj,
boolean selected)
Selects or deselects the given object (with pre and post operations for synchronization).
|
void |
unregisterAction(ViewerAbstractAction action)
Unregisters the given action.
|
public View(Viewer viewer, java.lang.String iD, java.lang.String name)
View
.viewer
- The viewer the view belongs to.iD
- ID of the view.name
- Name of the view.public Viewer getViewer()
public java.lang.String getID()
public java.lang.String getName()
public javax.swing.JComponent getMainComponent()
public javax.swing.JComponent getSecondaryComponent()
public final void setSelected(java.lang.Object obj, boolean selected)
obj
- The object.selected
- The selection status.public final void deSelectAll()
public ilog.views.IlvTransformer getDefaultTransformer()
public void registerAction(ViewerAbstractAction action)
action
- The action.public void unregisterAction(ViewerAbstractAction action)
action
- The action.public boolean isRegisteredAction(ViewerAbstractAction action)
command
- The actionpublic ilog.views.gantt.action.IlvAction getContextualAction(ViewerAbstractAction action)
action
- The action.public void performAction(ViewerAbstractAction action, java.awt.event.ActionEvent event)
action
- The action.event
- The event to forward.public boolean isStylable()
public void applyStyle(java.lang.String arg) throws ilog.views.util.styling.IlvStylingException
arg
- A value (up to the view to interpret).An
- eventual styling exception.ilog.views.util.styling.IlvStylingException
public void setAsCurrentView()
public void initialize()