|
Extension SDK 10.1.3.36.73 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectoracle.ide.view.View
oracle.ide.docking.DockableView
oracle.ide.docking.DockableWindow
This class is the bridge between the Dockable interface
docking system and the oracle.ide.addin.View interface.
Addin writers should extend this class and not implement Dockable
or DockableView directly.
| Field Summary |
| Fields inherited from class oracle.ide.docking.DockableView |
CLOSED, HIDDEN, SHOWN |
| Fields inherited from class oracle.ide.view.View |
EMPTY_SELECTION, PROJECT_PROP, VISIBLE_PROP, WORKSPACE_PROP |
| 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 |
| Constructor Summary | |
protected |
DockableWindow()
|
protected |
DockableWindow(IdeMainWindow owner,
java.lang.String viewId)
Don't use this constructor. |
protected |
DockableWindow(java.lang.String viewId)
Constructor. |
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)
This method is called when the window is hidden or closed. |
protected void |
dockableShown(DockableEvent e)
This method is called when the window is shown. |
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. |
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface oracle.ide.docking.Dockable |
getTabName, getTitleName |
| Constructor Detail |
protected DockableWindow()
protected DockableWindow(java.lang.String viewId)
protected DockableWindow(View owner,
java.lang.String viewId)
protected DockableWindow(IdeMainWindow owner,
java.lang.String viewId)
| Method Detail |
protected Dockable getCachedDockable()
public void close()
close in class Viewpublic void show()
show in class Viewpublic boolean isVisible()
View
isVisible in class Viewpublic void setDockableVisible(boolean bVisible)
setDockableVisible in class DockableViewpublic void updateTitle(java.lang.Object object)
updateTitle in class Viewpublic javax.swing.Icon getTabIcon()
Dockable.getTabName()public int getType()
public void setType(int type)
DockableView
setType in class DockableViewpublic java.lang.String getUniqueName()
public Site getSite()
setSite(oracle.ide.docking.Site)public void setSite(Site site)
site - the site to set.getSite()public javax.swing.JComponent getHostedComponent()
public 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.
public java.lang.String getMenuTitle()
public int getDefaultVisibility(Layout layout)
DockableDockable.TYPE_GLOBAL_VISIBLE,
it will be asked if it wants to be shown in that layout.
layout - public void saveLayout(PropertyAccess p)
p - the storage objectpublic void loadLayout(PropertyAccess p)
p - the storage objectpublic void addTitleChangeListener(TitleChangeListener l)
l - a TitleChangeListener instance.public void removeTitleChangeListener(TitleChangeListener l)
l - 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)
DockableView.HIDDEN).
protected void dockableShown(DockableEvent e)
DockableView.SHOWN).
|
Extension SDK 10.1.3.36.73 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Copyright © 1997, 2005, Oracle.All rights reserved.