|
Extension SDK 10.1.2 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A Dockable interface.
The Dockable interface should be implemented by graphical user interfaces
that want docking support.
Addin developers will typically extend DockableWindow
and should not implement Dockable
directly.
Field Summary | |
static int |
DEFAULT_VISIBILITY_MINIMIZED
Synonym of DEFAULT_VISIBILITY_MINIMIZED |
static int |
DEFAULT_VISIBILITY_RAISED
If the window is tabbed with others, makes this window the active one. |
static int |
DEFAULT_VISIBILITY_VISIBLE
Makes the window visible |
static int |
TYPE_DISCARDABLE
If a Dockable has no corresponding menu View+xxx, it is discardable. |
static int |
TYPE_GLOBAL_VISIBLE
The visibility of Dockables with this type is determined globally. |
static int |
TYPE_NO_BUTTONS
does not show buttons in the title bar |
static int |
TYPE_NORMAL
If a Dockable has a corresponding menu View+xxx. |
static int |
TYPE_NOT_TABBED
does not allow to be tabbed together with another dockable |
static int |
TYPE_RECYCLABLE
Recyclable dockables are allowed to change the hosted component. |
static int |
TYPE_TRUNCATE_TITLE
If set, partial titles can be shown in the title bar. |
Method Summary | |
void |
addTitleChangeListener(TitleChangeListener l)
Adds a title change listener to a dockable. |
int |
getDefaultVisibility(Layout layout)
The first time a Dockable is exposed to a layout, if the dockable is not of type 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 the current site where this dockable is docked or floated. |
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. |
java.lang.String |
getTabName()
Gets the name to display in a tab. |
java.lang.String |
getTitleName()
Gets title to display in a title bar. |
int |
getType()
Gets the types of dockable accepted by a specific dockable implementation. |
java.lang.String |
getUniqueName()
Gets a unique name identifying this dockable. |
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 |
setSite(Site site)
Sets the current site where this dockable is docked or floated. |
Field Detail |
public static final int TYPE_NORMAL
public static final int TYPE_DISCARDABLE
public static final int TYPE_RECYCLABLE
public static final int TYPE_NO_BUTTONS
public static final int TYPE_NOT_TABBED
public static final int TYPE_TRUNCATE_TITLE
public static final int TYPE_GLOBAL_VISIBLE
public static final int DEFAULT_VISIBILITY_VISIBLE
getDefaultVisibility(oracle.ide.layout.Layout)
,
Constant Field Valuespublic static final int DEFAULT_VISIBILITY_MINIMIZED
getDefaultVisibility(oracle.ide.layout.Layout)
,
Constant Field Valuespublic static final int DEFAULT_VISIBILITY_RAISED
getDefaultVisibility(oracle.ide.layout.Layout)
,
Constant Field ValuesMethod Detail |
public java.lang.String getTabName()
getTabIcon()
public javax.swing.Icon getTabIcon()
getTabName()
public java.lang.String getTitleName()
getTabIcon()
public java.lang.String getUniqueName()
public int getType()
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 void addTitleChangeListener(TitleChangeListener l)
l
- a TitleChangeListener instance.public void removeTitleChangeListener(TitleChangeListener l)
l
- a TitleChangeListener instance.public void saveLayout(PropertyAccess p)
p
- the storage objectpublic void loadLayout(PropertyAccess p)
p
- the storage objectpublic 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 getMenuPreferredMnemonic()
public int getDefaultVisibility(Layout layout)
TYPE_GLOBAL_VISIBLE
,
it will be asked if it wants to be shown in that layout.
layout
-
|
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.