Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
11g Release 2 (11.1.2.0.0)

E17493-01

oracle.jdeveloper.webapp.designer
Class ShowInDesignerSupport

java.lang.Object
  extended by oracle.jdeveloper.webapp.designer.ShowInDesignerSupport

public class ShowInDesignerSupport
extends java.lang.Object

Support classs that is used to for integration of "View" menu that is located in both dynamic menu for Designer, and Designer's toolbar.


Nested Class Summary
static class ShowInDesignerSupport.DynamicMenuItemsProvider
           
 
Field Summary
static java.lang.Float LAYER_ENABLING_SECTION
          Section of the Show menu that contains controls of desinger layers visibibility.
static java.lang.String SHOW_HIDE_COMMAND_ENABLED
          Property that marks IdeAction registered with ShowInDesignerSupport visible in the given context.
static java.lang.String SUBMENU
           
static java.lang.String SUBMENU_NAME
           
static java.lang.String SUBMENU_WEIGHT
           
static java.lang.String TOOLBAR_ENABLED
          Property that marks IdeAction registered with ShowInDesignerSupport visible in the Designer's toolbar "Show" menu.
 
Method Summary
 void addAction(IdeAction showAction)
           
 void addPreferenceSource(ChangeEventSource preferenceSource)
          Adds source of change events which should cause registered show actions to update.
 java.lang.Iterable<IdeAction> getAvailableShowActions(Context context, boolean forToolbar)
           
static ShowInDesignerSupport getInstance()
           
static void populateMenu(javax.swing.JMenu menu, java.lang.Iterable<IdeAction> actions)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SHOW_HIDE_COMMAND_ENABLED

public static final java.lang.String SHOW_HIDE_COMMAND_ENABLED
Property that marks IdeAction registered with ShowInDesignerSupport visible in the given context. Actions that want to be added to the "View" submenu has to register with this class and set this property to true when asked to update themselves.

See Also:
Constant Field Values

TOOLBAR_ENABLED

public static final java.lang.String TOOLBAR_ENABLED
Property that marks IdeAction registered with ShowInDesignerSupport visible in the Designer's toolbar "Show" menu. Actions that want to be added to the drop down list in toolbar's "Show" menu has to register with this class and set this property to true when asked to update themselves.

See Also:
Constant Field Values

SUBMENU

public static final java.lang.String SUBMENU
See Also:
Constant Field Values

SUBMENU_NAME

public static final java.lang.String SUBMENU_NAME
See Also:
Constant Field Values

SUBMENU_WEIGHT

public static final java.lang.String SUBMENU_WEIGHT
See Also:
Constant Field Values

LAYER_ENABLING_SECTION

public static final java.lang.Float LAYER_ENABLING_SECTION
Section of the Show menu that contains controls of desinger layers visibibility.

Method Detail

getInstance

public static ShowInDesignerSupport getInstance()

addAction

public void addAction(IdeAction showAction)
Parameters:
showAction -

addPreferenceSource

public void addPreferenceSource(ChangeEventSource preferenceSource)
                         throws java.lang.ClassCastException
Adds source of change events which should cause registered show actions to update. The preference source must implement Copyable interface.

Parameters:
preferenceSource -
Throws:
java.lang.ClassCastException - if preferenceSource does not implement Copyable interface

getAvailableShowActions

public java.lang.Iterable<IdeAction> getAvailableShowActions(Context context,
                                                             boolean forToolbar)

populateMenu

public static void populateMenu(javax.swing.JMenu menu,
                                java.lang.Iterable<IdeAction> actions)

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
11g Release 2 (11.1.2.0.0)

E17493-01

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