public abstract class AbstractPinnable extends DockableWindow implements ViewSelectionListener, Pinnable, Observer
| Modifier and Type | Field and Description |
|---|---|
protected Node |
_node |
protected boolean |
forceUpdate |
protected boolean |
isToolbarVisible |
protected Toolbar |
toolbar |
static java.lang.String |
TOOLBAR_ITEM |
static java.lang.String |
TOOLBAR_ITEM_COUNT |
CLOSED, HIDDEN, SHOWNEMPTY_SELECTION, PROJECT_PROP, VISIBLE_PROP, WORKSPACE_PROPPIN_NONE, PIN_OBJECT, PIN_VIEWDEFAULT_VISIBILITY_MINIMIZED, DEFAULT_VISIBILITY_RAISED, DEFAULT_VISIBILITY_VISIBLE, TYPE_DISCARDABLE, TYPE_FORGETTABLE, TYPE_GLOBAL_VISIBLE, TYPE_NO_BUTTONS, TYPE_NORMAL, TYPE_NOT_TABBED, TYPE_RECYCLABLE, TYPE_TRUNCATE_TITLE| Modifier | Constructor and Description |
|---|---|
protected |
AbstractPinnable(IdeMainWindow mw,
java.lang.String viewId)
Don't use this constructor.
|
protected |
AbstractPinnable(java.lang.String viewId)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
javax.swing.Icon |
getTabIcon()
Gets the icon to display in a tab along side the name.
|
protected javax.swing.Icon |
getTabIconImpl() |
java.lang.String |
getTitleName()
Gets title to display in a title bar.
|
protected java.lang.String |
getTitleNameImpl() |
Toolbar |
getToolbar()
Get the Toolbar associated with this View.
|
boolean |
isPinned() |
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(java.lang.Object subject,
UpdateMessage msg)
Perform any cleanup required in response to an UpdateMessage.OBJECT_CLOSED
message received by update.
|
protected void |
objectRenamed(java.lang.Object 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 Node 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(..) 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.
|
addTitleChangeListener, close, dockableHidden, dockableShown, fireTitleChangeListener, getCachedDockable, getDefaultVisibility, getHeaderComponents, getHostedComponent, getMenuTitle, getSite, getTabDropListener, getType, getUniqueName, isDrawer, isVisible, removeTitleChangeListener, setDockableVisible, setSite, setType, show, updateTitleafterAutoExpanding, afterRestoringFromAutoExpansion, beforeAutoExpanding, getAutoExpansionPreferredSize, getAutoExpansionSize, isAutoExpandable, isAutoExpandableEnabled, setAutoExpandable, setAutoExpandableEnabledactivate, deactivate, getContext, getContextMenu, getController, getDecorated, getGUI, getHelpInfo, getSelectionFromUI, getViewWithoutDecoration, isDecorated, loadLayout, newId, saveLayout, setDecorated, setOwner, updateVisibleActionsaddViewListener, addViewSelectionListener, addViewStateListener, fireViewCollapsed, fireViewExpanded, fireViewSelectionChanged, getContext, getId, getSelection, getTabName, loadManifestToolbar, loadManifestToolbar, owner, removeViewListener, removeViewSelectionListener, removeViewStateListener, scheduleUpdateSelection, setId, toString, updateSelection, updateSelectionImpl, updateToolbarActions, updateVisibleActionsclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetTabName, loadLayout, saveLayoutpublic static final java.lang.String TOOLBAR_ITEM
public static final java.lang.String TOOLBAR_ITEM_COUNT
protected Toolbar toolbar
protected boolean isToolbarVisible
protected Node _node
protected boolean forceUpdate
protected AbstractPinnable(java.lang.String viewId)
DockableWindowprotected AbstractPinnable(IdeMainWindow mw, java.lang.String viewId)
public Toolbar getToolbar()
getToolbar in class ViewDecoratorpublic void setToolbarVisible(boolean visible)
setToolbarVisible in class ViewDecoratorpublic void setContext(Context context)
context - the Context from which to initialize.ActiveViewEvent,
activeViewChanged(oracle.ide.view.ActiveViewEvent)protected boolean isSingleton()
stateChange(int)public void stateChange(int newState)
stateChange in class DockableWindownewState - the new visibility state of this DockableWindowDockableWindow.stateChangeprotected void activeViewChanged(ActiveViewEvent e)
e - the ActiveViewEvent describing the newly activated ViewActiveViewEvent,
isViewSupported(oracle.ide.view.View),
getPinState(),
setPinnedView(oracle.ide.view.View),
getPinnedView()public void viewSelectionChanged(ViewSelectionEvent e)
viewSelectionChanged in interface ViewSelectionListenere - event describing the change of selection in the ViewgetPinState(),
viewSelectionChanged(Context)public int getPinState()
getPinState in interface PinnablePinnable.PIN_NONE,
Pinnable.PIN_VIEW,
Pinnable.PIN_OBJECTpublic void setPinState(int newState)
setPinState in interface PinnablenewState - the new pin state to set.Pinnable.PIN_NONE,
Pinnable.PIN_VIEW,
Pinnable.PIN_OBJECT,
getPinnedView(),
activeViewChanged(oracle.ide.view.ActiveViewEvent)protected abstract boolean isViewSupported(View view)
view - the View under considerationprotected void persistPinTarget()
restorePinTarget()protected void restorePinTarget()
persistPinTargetprotected void viewSelectionChanged(Context context)
context - the Context of the View from which a selection has changed.public void update(java.lang.Object subject,
UpdateMessage msg)
protected void objectClosed(java.lang.Object subject,
UpdateMessage msg)
protected void objectRenamed(java.lang.Object subject,
UpdateMessage msg)
protected void clear()
protected View getPinnedView()
protected void setPinnedView(View view)
view - the new View to take interest in#viewActivated,
#viewDeactivated,
#viewClosedpublic boolean isPinned()
public java.lang.String getTitleName()
DockablegetTitleName in interface DockableDockable.getTabIcon()protected java.lang.String getTitleNameImpl()
public javax.swing.Icon getTabIcon()
DockableWindowgetTabIcon in interface DockablegetTabIcon in class DockableWindowView.getTabName()protected javax.swing.Icon getTabIconImpl()