org.gnu.gtk
public class ItemFactory extends GtkObject
Deprecated: 2.3
This class is part of the java-gnome 2.x family of libraries,
which, due to their inefficiency and complexity, are no longer
being maintained and have been abandoned by the java-gnome
project. This class may in the future have an equivalent in
java-gnome 4.0, try looking for
org.gnome.gtk.ItemFactory
.
You should be aware that there is a considerably different API
in the new library: the architecture is completely different
and most notably internals are no longer exposed to public view.
Constructor Summary | |
---|---|
ItemFactory(Type containerType, String path, AccelGroup accelGroup)
Create a new ItemFactory object.
|
Method Summary | |
---|---|
void | createItem(ItemFactoryEntry entry)
Create an item for entry.
|
void | createItems(ItemFactoryEntry[] entries)
Create the items from the entries.
|
void | deleteEntries(ItemFactoryEntry[] entries)
Delete the menu items which were created from the entries by the
item factory.
|
void | deleteEntry(ItemFactoryEntry entry)
Delete the menu item that was created from entry by the item
factory.
|
void | deleteItem(String path)
Delete the menu item that was created for path by the item
factory.
|
static ItemFactory | fromWidget(Widget widget)
Obtain the item factory from which a widget was created.
|
Widget | getItem(String path)
Obtain the menu item that corresponds to path.
|
static Type | getType()
Retrieve the runtime type used by the GLib library. |
Widget | getWidget(String path)
Obtain the widget that corresponds to path.
|
void | popup(int x, int y, int mouseButton)
Pops up the menu constructed with the item factory.
|
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 "
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.
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.
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.
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.
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.
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.
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.
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.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.
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.Parameters: x The x coordinate for the popup menu y The y coordinate for the popup menu mouseButton The mouse button which was pressed. These values are defined in MouseEvent.