|
Extension SDK 10.1.2 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object oracle.ide.MultiManager
The MultiManager class is a base class for other managers that can support support either a singleton view or multiple views based on a configurable setting. It is assumed that the view(s) are extensions of AbstractPinnable.
Constructor Summary | |
MultiManager()
|
Method Summary | |
protected abstract DockableView |
createDockableView(Context ctx,
ViewId viewId)
|
protected abstract IdeAction |
createShowAction()
|
protected IdeAction |
createToggleToolbarAction()
Subclasses should override this method to return the IdeAction that is responsible for toggling the visibility of this manager's toolbar. |
protected DockableView |
findOrCreateView(Context context)
|
protected DockableView |
findView(ViewId viewId)
|
protected abstract java.lang.String |
getDefaultName()
Get the name of the default View instance managed by this manager as it would appear in a ViewId instance. |
ViewId |
getDefaultViewId()
|
protected abstract DockableFactory |
getDockableFactory()
|
DockableView |
getLastView()
Get the last managed View to have been active. |
DockableView |
getNewView(Context context,
ViewId viewId)
Get a new View instance rooted on the given Context and having the given ViewId. |
protected int |
getOrientation(ViewId viewId,
DockableView relative)
|
protected DockableView |
getRelativeView(Context context,
ViewId viewId)
|
IdeAction |
getShowAction()
Get the IdeAction to be associated with a menu item used for raising the last managed View to the top of the z-order. |
protected float |
getToggleToolbarMenuWeight()
|
protected abstract java.lang.String |
getViewCategory()
Get the name of the View type managed by this manager as it would appear in a ViewId instance. |
protected ViewId |
getViewId(Context context)
|
java.util.Collection |
getViews()
|
boolean |
handleEvent(IdeAction action,
Context context)
This method is called when a user interaction with a View
triggers the execution of a command. |
void |
initialize()
Perform any necessary initialization. |
protected boolean |
isToolbarVisible()
|
protected void |
setToolbarVisible(boolean visible)
|
DockableView |
showLastView(Context context)
Show the last managed View. |
DockableView |
showView(Context context)
Show the View for the given Context, creating a new View instance as necessary. |
boolean |
update(IdeAction action,
Context context)
This method updates the enabled status of the specified action within the specified context. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public MultiManager()
Method Detail |
public void initialize()
initialize
in interface Module
DockableFactory
public final IdeAction getShowAction()
IdeMainWindow
,
showLastView(oracle.ide.addin.Context)
public DockableView showLastView(Context context)
#getAction
public DockableView showView(Context context)
#getNewAction
public DockableView getLastView()
public DockableView getNewView(Context context, ViewId viewId)
showView(oracle.ide.addin.Context)
,
#oracle.ide.docing.DockableFactory.install
public java.util.Collection getViews()
public ViewId getDefaultViewId()
ViewId
associated with this manager.protected abstract java.lang.String getViewCategory()
ViewId
,
getDefaultName()
protected abstract java.lang.String getDefaultName()
ViewId
,
getViewCategory()
protected abstract DockableView createDockableView(Context ctx, ViewId viewId)
protected abstract IdeAction createShowAction()
protected abstract DockableFactory getDockableFactory()
protected IdeAction createToggleToolbarAction()
protected float getToggleToolbarMenuWeight()
protected ViewId getViewId(Context context)
protected DockableView findView(ViewId viewId)
protected DockableView findOrCreateView(Context context)
protected DockableView getRelativeView(Context context, ViewId viewId)
protected int getOrientation(ViewId viewId, DockableView relative)
protected boolean isToolbarVisible()
protected void setToolbarVisible(boolean visible)
public boolean handleEvent(IdeAction action, Context context)
Controller
View
triggers the execution of a command.
handleEvent
in interface Controller
action
- action whose command is to be executed.
public boolean update(IdeAction action, Context context)
Controller
update
in interface Controller
action
- action whose command is to be executed.context
- the current context
|
Extension SDK | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 1997, 2004, Oracle. All rights reserved.