|
Extension SDK 10.1.2 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectoracle.ide.addin.AbstractView
oracle.ide.docking.DockableWindow
This class is the bridge between the Dockable interface
docking system and the View interface.
Addin writers should extend this class and not implement Dockable
or DockableView directly.
| Field Summary |
| Fields inherited from class oracle.ide.addin.AbstractView |
owner, SEPARATOR, viewListeners, viewSelectionListeners |
| 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 |
DockableWindow(View owner,
java.lang.String viewId)
Constructor. |
| Method Summary | |
void |
addTitleChangeListener(TitleChangeListener l)
Adds a title change listener to a dockable. |
void |
close()
Closes the view. |
protected void |
dockableHidden(DockableEvent e)
|
protected void |
dockableShown(DockableEvent e)
|
protected void |
fireTitleChangeListener()
|
protected Dockable |
getCachedDockable()
This method returns the Dockable as know by the docking system based on the view ID. |
int |
getDefaultVisibility(Layout layout)
The first time a Dockable is exposed to a layout, if the dockable is not of type Dockable.TYPE_GLOBAL_VISIBLE,
it will be asked if it wants to be shown in that layout. |
javax.swing.JComponent |
getHostedComponent()
Gets the root component of the user interface to be docked or floated. |
int |
getMenuPreferredMnemonic()
Gets mnemonic used in the menus of the docking for showing/hiding the dockable. |
java.lang.String |
getMenuTitle()
Gets the text to display in the menus of the docking for showing/hiding the dockable. |
Site |
getSite()
Gets a storage object for docking information. |
java.awt.dnd.DropTargetListener |
getTabDropListener()
Gets the drop target listener for drop events on the tab. |
javax.swing.Icon |
getTabIcon()
Gets the icon to display in a tab along side the name. |
int |
getType()
Gets the types of dockable accepted by a specific dockable implementation. |
java.lang.String |
getUniqueName()
Gets a unique name used for persistence. |
boolean |
isVisible()
Determine whether the View is visible. |
void |
loadLayout(PropertyAccess p)
reloads the layout information of this dockable. |
void |
removeTitleChangeListener(TitleChangeListener l)
Removes the specified title change listener from the dockable. |
void |
saveLayout(PropertyAccess p)
Saves the layout information of this dockable. |
void |
setDockableVisible(boolean bVisible)
Shows/hides the dockable. |
void |
setSite(Site site)
Sets the current site where this dockable is docked or floated. |
void |
setType(int type)
Set the dockable type. |
void |
show()
Shows the view if hidden. |
void |
stateChange(int newState)
This method gets called when a panel is shown, hidden, or closed. |
void |
updateTitle(java.lang.Object object)
Called when the view needs to update its title based on the specified object. |
| Methods inherited from class oracle.ide.addin.AbstractView |
activate, addViewListener, addViewSelectionListener, deactivate, fireViewActivated, fireViewClosed, fireViewDeactivated, fireViewSelectionChanged, getContext, getContextMenu, getController, getHelpInfo, getId, getSelection, getToolbar, loadToolbar, loadToolbar, newId, owner, removeViewListener, removeViewSelectionListener, setId, setOwner, setToolbarVisible, 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, getToolbar, owner, removeViewListener, removeViewSelectionListener, setToolbarVisible, updateVisibleActions |
| Methods inherited from interface oracle.ide.addin.ControllerProvider |
getController |
| Methods inherited from interface oracle.ide.help.Helpable |
getHelpInfo |
| Constructor Detail |
protected DockableWindow(View owner,
java.lang.String viewId)
| Method Detail |
protected Dockable getCachedDockable()
public void close()
close in interface Viewclose in class AbstractViewpublic void show()
show in interface Viewshow in class AbstractViewpublic boolean isVisible()
View
isVisible in interface ViewisVisible in class AbstractViewpublic void setDockableVisible(boolean bVisible)
setDockableVisible in interface DockableViewpublic void updateTitle(java.lang.Object object)
updateTitle in interface ViewupdateTitle in class AbstractViewpublic javax.swing.Icon getTabIcon()
getTabIcon in interface DockableDockable.getTabName()public int getType()
getType in interface Dockablepublic void setType(int type)
DockableView
setType in interface DockableViewpublic java.lang.String getUniqueName()
getUniqueName in interface Dockablepublic Site getSite()
getSite in interface DockablesetSite(oracle.ide.docking.Site)public void setSite(Site site)
setSite in interface Dockablesite - the site to set.getSite()public javax.swing.JComponent getHostedComponent()
getHostedComponent in interface Dockablepublic java.awt.dnd.DropTargetListener getTabDropListener()
If handling drop events on the tab is not necessary, the implementation of this method should return null.
Note that this method may called repeatedly during a drag and drop operation, so it should be fast.
getTabDropListener in interface Dockablepublic java.lang.String getMenuTitle()
getMenuTitle in interface Dockablepublic int getMenuPreferredMnemonic()
getMenuPreferredMnemonic in interface Dockablepublic int getDefaultVisibility(Layout layout)
DockableDockable.TYPE_GLOBAL_VISIBLE,
it will be asked if it wants to be shown in that layout.
getDefaultVisibility in interface Dockablelayout - public void saveLayout(PropertyAccess p)
saveLayout in interface Dockablep - the storage objectpublic void loadLayout(PropertyAccess p)
loadLayout in interface Dockablep - the storage objectpublic void addTitleChangeListener(TitleChangeListener l)
addTitleChangeListener in interface Dockablel - a TitleChangeListener instance.public void removeTitleChangeListener(TitleChangeListener l)
removeTitleChangeListener in interface Dockablel - a TitleChangeListener instance.public void stateChange(int newState)
newState - The new state indicating whether the panel was shown,
hidden or closed.protected void fireTitleChangeListener()
protected void dockableHidden(DockableEvent e)
protected void dockableShown(DockableEvent e)
|
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.