createItem
public void createItem(ItemFactoryEntry entry)
Create an item for entry.
entry
- The IconFactoryEntry to create an item for.
createItems
public void createItems(ItemFactoryEntry[] entries)
Create the items from the entries.
entries
- An array of IconFactoryEntry objects that
describe the menus to be created.
deleteEntries
public void deleteEntries(ItemFactoryEntry[] entries)
Delete the menu items which were created from the entries by the
item factory.
entries
- The entries to delete.
deleteEntry
public void deleteEntry(ItemFactoryEntry entry)
Delete the menu item that was created from entry by the item factory.
entry
- The Entry to delete.
deleteItem
public void deleteItem(String path)
Delete the menu item that was created for path by the item factory.
path
- The path to the item to delete.
fromWidget
public static ItemFactory fromWidget(Widget widget)
Obtain the item factory from which a widget was created.
widget
- The widget to use for the search.
getItem
public Widget getItem(String path)
Obtain the menu item that corresponds to path.
path
- The path to the menu item.
- The menu item for the given path or null if path doesn't exist.
getType
public static Type getType()
Retrieve the runtime type used by the GLib library.
- getType in interface GtkObject
getWidget
public Widget getWidget(String path)
Obtain the widget that corresponds to path.
path
- The path to the widget
- The widget for the given path or null if path doesn't exist.
gtk_item_factory_add_foreign
protected static final void gtk_item_factory_add_foreign(Handle accelWidget,
String fullPath,
Handle accelGroup,
int keyval,
int modifiers)
gtk_item_factory_construct
protected static final void gtk_item_factory_construct(Handle ifactory,
int containerType,
String path,
Handle accelGroup)
gtk_item_factory_create_item
protected static final void gtk_item_factory_create_item(Handle ifactory,
Handle entry,
Object callbackData,
int callbackType)
gtk_item_factory_create_items
protected static final void gtk_item_factory_create_items(Handle ifactory,
int numEntries,
Handle[] entries,
int callbackData)
gtk_item_factory_delete_entries
protected static final void gtk_item_factory_delete_entries(Handle ifactory,
int numEnties,
Handle[] entries)
gtk_item_factory_delete_entry
protected static final void gtk_item_factory_delete_entry(Handle ifactory,
Handle entry)
gtk_item_factory_delete_item
protected static final void gtk_item_factory_delete_item(Handle ifactory,
String path)
gtk_item_factory_from_widget
protected static final Handle gtk_item_factory_from_widget(Handle widget)
gtk_item_factory_get_item
protected static final Handle gtk_item_factory_get_item(Handle ifactory,
String path)
gtk_item_factory_get_item_by_action
protected static final Handle gtk_item_factory_get_item_by_action(Handle ifactory,
Handle action)
gtk_item_factory_get_type
protected static final int gtk_item_factory_get_type()
gtk_item_factory_get_widget
protected static final Handle gtk_item_factory_get_widget(Handle ifactory,
String path)
gtk_item_factory_get_widget_by_action
protected static final Handle gtk_item_factory_get_widget_by_action(Handle ifactory,
Handle action)
gtk_item_factory_new
protected static final Handle gtk_item_factory_new(int containerType,
String path,
Handle accelGroup)
gtk_item_factory_path_from_widget
protected static final String gtk_item_factory_path_from_widget(Handle widget)
gtk_item_factory_popup
protected static final void gtk_item_factory_popup(Handle ifactory,
int x,
int y,
int mouseButton,
int time)
popup
public void popup(int x,
int y,
int mouseButton)
Pops up the menu constructed with the item factory.
x
- The x coordinate for the popup menuy
- The y coordinate for the popup menumouseButton
- The mouse button which was pressed. These values are
defined in MouseEvent
.