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

E17493-01

javax.ide.menu
Class ItemFactory

java.lang.Object
  extended by javax.ide.menu.ItemFactory

public abstract class ItemFactory
extends java.lang.Object

An ItemFactory provides a custom GUI component for a menu item or toolbar item. In the current release of JSR-198, only toolbar items support customizability.


Constructor Summary
ItemFactory()
           
 
Method Summary
abstract  GUIPanel createItem(java.lang.String path)
          Create the GUI item for the specified menu or toolbar item.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ItemFactory

public ItemFactory()
Method Detail

createItem

public abstract GUIPanel createItem(java.lang.String path)
Create the GUI item for the specified menu or toolbar item.

Parameters:
path - the path to the menu or toolbar pattern. This is a forward slash (/) separated list of the ids of all parent menu containers for this item. For example, an item in the main window toolbar might have a path javax.ide.view.MAIN_WINDOW_TOOLBAR_ID/javax.ide.OPEN_SECTION_ID/someActionId
Returns:
a GUIPanel containing the custom component to use for this item. May be null, in which case the default standard component is used.

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.