|
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.addin.AbstractView oracle.ide.docking.DockableWindow oracle.ide.addin.AbstractPinnable
AbstractPinnable implements the Pinnable interface as it applies to a DockableWindow which is capable of responding to changes in selection in the active View as well as changes of the active View from one View to another.
Field Summary | |
protected Document |
document
|
protected boolean |
forceUpdate
|
protected boolean |
isToolbarVisible
|
protected Toolbar |
toolbar
|
static java.lang.String |
TOOLBAR_ITEM
|
static java.lang.String |
TOOLBAR_ITEM_COUNT
|
Fields inherited from class oracle.ide.addin.AbstractView |
owner, SEPARATOR, viewListeners, viewSelectionListeners |
Fields inherited from interface oracle.ide.addin.Pinnable |
PIN_NONE, PIN_OBJECT, PIN_VIEW |
Fields inherited from interface oracle.ide.docking.DockableView |
CLOSED, HIDDEN, SHOWN |
Fields inherited from interface oracle.ide.docking.Dockable |
DEFAULT_VISIBILITY_MINIMIZED, DEFAULT_VISIBILITY_RAISED, DEFAULT_VISIBILITY_VISIBLE, TYPE_DISCARDABLE, TYPE_GLOBAL_VISIBLE, TYPE_NO_BUTTONS, TYPE_NORMAL, TYPE_NOT_TABBED, TYPE_RECYCLABLE, TYPE_TRUNCATE_TITLE |
Fields inherited from interface oracle.ide.addin.View |
PROJECT_PROP, VISIBLE_PROP, WORKSPACE_PROP |
Constructor Summary | |
protected |
AbstractPinnable(View owner,
java.lang.String viewId)
Constructor. |
Method Summary | |
protected void |
activeViewChanged(ActiveViewEvent e)
Respond to a change of active View filtered by the current pin state. |
protected void |
clear()
Internal method allowing subclasses to perform cleaning duties when no View is available from which to fetch a selection for display. |
protected View |
getPinnedView()
Get the View whose selection is currently the source displayed within this DockableWindow. |
int |
getPinState()
Get the current pin state as one of PIN_NONE, PIN_VIEW, or PIN_OBJECT. |
Toolbar |
getToolbar()
Get the Toolbar associated with this View. |
int |
getType()
Override superclass implementation to include Dockable.TYPE_TRUNCATE_TITLE |
protected boolean |
isSingleton()
Determine whether or not this AbstractPinnable represents a singleton View. |
protected abstract boolean |
isViewSupported(View view)
Determine whether or not the given View is one that is considered interesting by this Pinnable. |
protected void |
objectClosed(Subject subject,
UpdateMessage msg)
Perform any cleanup required in response to an UpdateMessage.OBJECT_CLOSED message received by update. |
protected void |
objectRenamed(Subject subject,
UpdateMessage msg)
Perform any cleanup required in response to an UpdateMessage.OBJECT_RENAMED message received by update. |
protected void |
persistPinTarget()
Persist the identity of any pinned object such that its representation may be restored at a later time. |
protected void |
restorePinTarget()
Restore the representation of a previously persisted object reference. |
void |
setContext(Context context)
Initialize the DockableView based upon the selection of the View contained in the incoming Context. |
protected void |
setPinnedView(View view)
Set the View whose selection should be displayed within this DockableWindow. |
void |
setPinState(int newState)
Set the current pin state as one of PIN_NONE, PIN_VIEW, or PIN_OBJECT. |
void |
setToolbarVisible(boolean visible)
Set the visibility of the Toolbar, if any. |
void |
stateChange(int newState)
Responds to changes in state. |
void |
update(java.lang.Object subject,
UpdateMessage msg)
Respond to Document events from which the current Explorer is rooted. |
protected void |
viewSelectionChanged(Context context)
Internal method allowing subclasses to perform additional processing after the standard call to viewSelectionChanged(ViewSelectionEvent) has filtered out cases where the selection changes should be ignored. |
void |
viewSelectionChanged(ViewSelectionEvent e)
Respond to a change in selection in the pinned View based on the pin state. |
Methods inherited from class oracle.ide.docking.DockableWindow |
addTitleChangeListener, close, dockableHidden, dockableShown, fireTitleChangeListener, getCachedDockable, getDefaultVisibility, getHostedComponent, getMenuPreferredMnemonic, getMenuTitle, getSite, getTabDropListener, getTabIcon, getUniqueName, isVisible, loadLayout, removeTitleChangeListener, saveLayout, setDockableVisible, setSite, setType, show, updateTitle |
Methods inherited from class oracle.ide.addin.AbstractView |
activate, addViewListener, addViewSelectionListener, deactivate, fireViewActivated, fireViewClosed, fireViewDeactivated, fireViewSelectionChanged, getContext, getContextMenu, getController, getHelpInfo, getId, getSelection, loadToolbar, loadToolbar, newId, owner, removeViewListener, removeViewSelectionListener, setId, setOwner, updateToolbarActions, updateVisibleActions, updateVisibleActions |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface oracle.ide.docking.Dockable |
getTabName, getTitleName |
Methods inherited from interface oracle.ide.addin.View |
activate, addViewListener, addViewSelectionListener, deactivate, getContext, getContext, getContextMenu, getGUI, getId, getSelection, owner, removeViewListener, removeViewSelectionListener, updateVisibleActions |
Methods inherited from interface oracle.ide.addin.ControllerProvider |
getController |
Methods inherited from interface oracle.ide.help.Helpable |
getHelpInfo |
Field Detail |
public static final java.lang.String TOOLBAR_ITEM
public static final java.lang.String TOOLBAR_ITEM_COUNT
protected Toolbar toolbar
protected boolean isToolbarVisible
protected Document document
protected boolean forceUpdate
Constructor Detail |
protected AbstractPinnable(View owner, java.lang.String viewId)
DockableWindow
Method Detail |
public Toolbar getToolbar()
getToolbar
in interface View
getToolbar
in class AbstractView
public void setToolbarVisible(boolean visible)
setToolbarVisible
in interface View
setToolbarVisible
in class AbstractView
visible
- true to display the Toolbar, false to hide the Toolbarpublic void setContext(Context context)
context
- the Context from which to initialize.ActiveViewEvent
,
activeViewChanged(oracle.ide.addin.ActiveViewEvent)
public int getType()
getType
in interface Dockable
getType
in class DockableWindow
protected boolean isSingleton()
stateChange(int)
public void stateChange(int newState)
stateChange
in class DockableWindow
newState
- the new visibility state of this DockableWindowDockableWindow.stateChange
protected void activeViewChanged(ActiveViewEvent e)
e
- the ActiveViewEvent describing the newly activated ViewActiveViewEvent
,
isViewSupported(oracle.ide.addin.View)
,
getPinState()
,
setPinnedView(oracle.ide.addin.View)
,
getPinnedView()
,
viewSelectionChanged(ViewSelectionEvent)
public void viewSelectionChanged(ViewSelectionEvent e)
viewSelectionChanged
in interface ViewSelectionListener
e
- ViewSelecitonEvent describing the change of selection in the ViewViewSelectionEvent
,
getPinState()
,
viewSelectionChanged(Context)
public int getPinState()
getPinState
in interface Pinnable
Pinnable.PIN_NONE
,
Pinnable.PIN_VIEW
,
Pinnable.PIN_OBJECT
public void setPinState(int newState)
setPinState
in interface Pinnable
newState
- the new pin state to set.Pinnable.PIN_NONE
,
Pinnable.PIN_VIEW
,
Pinnable.PIN_OBJECT
,
getPinnedView()
,
activeViewChanged(oracle.ide.addin.ActiveViewEvent)
,
viewSelectionChanged(ViewSelectionEvent)
protected abstract boolean isViewSupported(View view)
view
- the View under considerationprotected void persistPinTarget()
restorePinTarget()
protected void restorePinTarget()
persistPinTarget
protected void viewSelectionChanged(Context context)
context
- the Context of the View from which a selection has changed.viewSelectionChanged(ViewSelectionEvent)
public void update(java.lang.Object subject, UpdateMessage msg)
update
in interface Observer
subject
- the subject whose state has changed.msg
- what has changed.protected void objectClosed(Subject subject, UpdateMessage msg)
update(java.lang.Object, oracle.ide.addin.UpdateMessage)
protected void objectRenamed(Subject subject, UpdateMessage msg)
update(java.lang.Object, oracle.ide.addin.UpdateMessage)
protected void clear()
viewSelectionChanged(ViewSelectionEvent)
protected View getPinnedView()
activeViewChanged(oracle.ide.addin.ActiveViewEvent)
protected void setPinnedView(View view)
view
- the new View to take interest in#viewActivated
,
#viewDeactivated
,
#viewClosed
,
viewSelectionChanged(ViewSelectionEvent)
|
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.