Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1.6.0)

E13403-07

oracle.jdevimpl.bookmarks
Class BookmarkDockable

java.lang.Object
  extended by oracle.ide.view.View
      extended by oracle.ide.view.ViewDecorator
          extended by oracle.ide.docking.DockableView
              extended by oracle.ide.docking.DockableWindow
                  extended by oracle.jdevimpl.bookmarks.BookmarkDockable
All Implemented Interfaces:
ContextMenuListener, ControllerProvider, Dockable, Helpable

public class BookmarkDockable
extends DockableWindow
implements ContextMenuListener


Field Summary
static java.lang.String BOOKMARK_VIEW_ID
           
 
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
BookmarkDockable(oracle.jdevimpl.bookmarks.BookmarkManager bookmarkManager)
           
 
Method Summary
 void activate()
           
 void deactivate()
          Cleans up after this view stops being the active view.
 ContextMenu getContextMenu()
           
 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.
 java.awt.Component getGUI()
           
 HelpInfo getHelpInfo()
           
 java.lang.String getTabName()
          Gets the name to display in a tab.
 java.lang.String getTitleName()
          Gets title to display in a title bar.
 Toolbar getToolbar()
          Get the toolbar associated with this view.
 boolean handleDefaultAction(Context context)
          Called when the user double clicks on an item that has a context menu.
 void menuWillHide(ContextMenu contextMenu)
          This method is called just before a showing context menu is dismissed.
 void menuWillShow(ContextMenu contextMenu)
          Called just before the context menu is shown.
 
Methods inherited from class oracle.ide.docking.DockableWindow
addTitleChangeListener, close, dockableHidden, dockableShown, fireTitleChangeListener, getCachedDockable, getHostedComponent, getMenuTitle, getSite, getTabDropListener, getTabIcon, getType, getUniqueName, isVisible, removeTitleChangeListener, setDockableVisible, setSite, setType, show, stateChange, updateTitle
 
Methods inherited from class oracle.ide.docking.DockableView
afterAutoExpanding, afterRestoringFromAutoExpansion, beforeAutoExpanding, getAutoExpansionPreferredSize, getAutoExpansionSize, isAutoExpandable, isAutoExpandableEnabled, setAutoExpandable, setAutoExpandableEnabled
 
Methods inherited from class oracle.ide.view.ViewDecorator
getContext, getController, getSelectionFromUI, getViewWithoutDecoration, loadLayout, newId, saveLayout, setOwner, setToolbarVisible, updateVisibleActions
 
Methods inherited from class oracle.ide.view.View
addViewListener, addViewSelectionListener, addViewStateListener, fireViewCollapsed, fireViewExpanded, fireViewSelectionChanged, getContext, getId, getSelection, loadManifestToolbar, loadManifestToolbar, owner, removeViewListener, removeViewSelectionListener, removeViewStateListener, scheduleUpdateSelection, setId, toString, updateSelection, updateSelectionImpl, updateToolbarActions, updateVisibleActions
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface oracle.ide.docking.Dockable
loadLayout, saveLayout
 

Field Detail

BOOKMARK_VIEW_ID

public static final java.lang.String BOOKMARK_VIEW_ID
See Also:
Constant Field Values
Constructor Detail

BookmarkDockable

public BookmarkDockable(oracle.jdevimpl.bookmarks.BookmarkManager bookmarkManager)
Method Detail

getContextMenu

public ContextMenu getContextMenu()
Overrides:
getContextMenu in class ViewDecorator
Returns:
the ContextMenu, if any.

getTabName

public java.lang.String getTabName()
Description copied from interface: Dockable
Gets the name to display in a tab.

Specified by:
getTabName in interface Dockable
Overrides:
getTabName in class View
Returns:
the name to display in a tab.
See Also:
Dockable.getTabIcon()

getTitleName

public java.lang.String getTitleName()
Description copied from interface: Dockable
Gets title to display in a title bar.

Specified by:
getTitleName in interface Dockable
Returns:
the title to display in a title bar.
See Also:
Dockable.getTabIcon()

getGUI

public java.awt.Component getGUI()
Overrides:
getGUI in class ViewDecorator
Returns:
the root graphical user interface component.

getDefaultVisibility

public int getDefaultVisibility(Layout layout)
Description copied from interface: Dockable
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.

Specified by:
getDefaultVisibility in interface Dockable
Overrides:
getDefaultVisibility in class DockableWindow

getHelpInfo

public HelpInfo getHelpInfo()
Specified by:
getHelpInfo in interface Helpable
Overrides:
getHelpInfo in class ViewDecorator

activate

public void activate()
Overrides:
activate in class ViewDecorator

deactivate

public void deactivate()
Description copied from class: View
Cleans up after this view stops being the active view.

Overrides:
deactivate in class ViewDecorator

getToolbar

public Toolbar getToolbar()
Description copied from class: View
Get the toolbar associated with this view.

Overrides:
getToolbar in class ViewDecorator

menuWillShow

public void menuWillShow(ContextMenu contextMenu)
Description copied from interface: ContextMenuListener
Called just before the context menu is shown. Implementations should add their items to the context menu here.

Specified by:
menuWillShow in interface ContextMenuListener
Parameters:
contextMenu - the context menu being shown

menuWillHide

public void menuWillHide(ContextMenu contextMenu)
Description copied from interface: ContextMenuListener
This method is called just before a showing context menu is dismissed. Most implementations should not do anything in this method. In particular, it is not necessary to clean out menu items or submenus that were added during ContextMenuListener.menuWillShow(oracle.ide.controller.ContextMenu), since the IDE takes care of that automatically.

Specified by:
menuWillHide in interface ContextMenuListener
Parameters:
contextMenu - the context menu being hidden

handleDefaultAction

public boolean handleDefaultAction(Context context)
Description copied from interface: ContextMenuListener
Called when the user double clicks on an item that has a context menu. If the listener handles the action, then it must return true; otherwise it must return false. Processing of handleDefaultAction stops on the first return of true.

Specified by:
handleDefaultAction in interface ContextMenuListener
Parameters:
context - the context on which the default action needs to occur.

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1.6.0)

E13403-07

Copyright © 1997, 2011, Oracle. All rights reserved.