org.gnu.gtk

Class ItemFactory


public class ItemFactory
extends GtkObject

Old class replaced by UIManager. This class is provided for compatibility only - it will be removed in future releases of java-gnome. Do not use in new code.

Constructor Summary

ItemFactory(Type containerType, String path, AccelGroup accelGroup)
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.

Method Summary

void
createItem(ItemFactoryEntry entry)
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
void
createItems(ItemFactoryEntry[] entries)
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
void
deleteEntries(ItemFactoryEntry[] entries)
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
void
deleteEntry(ItemFactoryEntry entry)
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
void
deleteItem(String path)
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
static ItemFactory
fromWidget(Widget widget)
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Widget
getItem(String path)
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
static Type
getType()
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Widget
getWidget(String path)
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
void
popup(int x, int y, int mouseButton)
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.

Methods inherited from class org.gnu.gtk.GtkObject

destroy, getType, sink

Constructor Details

ItemFactory

public ItemFactory(Type containerType,
                   String path,
                   AccelGroup accelGroup)

Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.

Create a new ItemFactory object.
Parameters:
containerType - The type of menu to create. It can be a MenuBar, a Menu, or an OptionMenu.
path - The factory path of the new item factory, a string of the form "".
accelGroup - A AccelGroup to which the accelerators to the menu items will be added, or null to create a new one.

Method Details

createItem

public void createItem(ItemFactoryEntry entry)

Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.

Create an item for entry.
Parameters:
entry - The IconFactoryEntry to create an item for.

createItems

public void createItems(ItemFactoryEntry[] entries)

Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.

Create the items from the entries.
Parameters:
entries - An array of IconFactoryEntry objects that describe the menus to be created.

deleteEntries

public void deleteEntries(ItemFactoryEntry[] entries)

Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.

Delete the menu items which were created from the entries by the item factory.
Parameters:
entries - The entries to delete.

deleteEntry

public void deleteEntry(ItemFactoryEntry entry)

Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.

Delete the menu item that was created from entry by the item factory.
Parameters:
entry - The Entry to delete.

deleteItem

public void deleteItem(String path)

Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.

Delete the menu item that was created for path by the item factory.
Parameters:
path - The path to the item to delete.

fromWidget

public static ItemFactory fromWidget(Widget widget)

Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.

Obtain the item factory from which a widget was created.
Parameters:
widget - The widget to use for the search.

getItem

public Widget getItem(String path)

Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.

Obtain the menu item that corresponds to path.
Parameters:
path - The path to the menu item.
Returns:
The menu item for the given path or null if path doesn't exist.

getType

public static Type getType()

Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.

Retrieve the runtime type used by the GLib library.
Overrides:
getType in interface GtkObject

getWidget

public Widget getWidget(String path)

Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.

Obtain the widget that corresponds to path.
Parameters:
path - The path to the widget
Returns:
The widget for the given path or null if path doesn't exist.

popup

public void popup(int x,
                  int y,
                  int mouseButton)

Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.

Pops up the menu constructed with the item factory.