org.gnu.gnome

Class UIInfo


public class UIInfo
extends Boxed

Constructor Summary

UIInfo(Handle hndl)
UIInfo(String helpNode)
This constructor should be used when the UIInfo type is a help item.
UIInfo(UIInfoType type, String label, String hint, ButtonListener listener, UIPixmapType pixmapType, String name, int acceleratorKey, ModifierType acMods)
This constructor should be used when the UIInfoType is item, toggleitem, or radioitem and the UIPixmapType is file or stock.
UIInfo(UIInfoType type, String label, String hint, ButtonListener listener, UIPixmapType pixmapType, data[] , int acceleratorKey, ModifierType acMods)
This constructor should be used when the UIInfoType is item, toggleitem, or radioitem and the UIPixmapType is data.
UIInfo(UIInfoType type, String label, String hint, MenuItemListener listener, UIPixmapType pixmapType, String name, int acceleratorKey, ModifierType acMods)
This constructor should be used when the UIInfoType is item, toggleitem, or radioitem and the UIPixmapType is file or stock.
UIInfo(UIInfoType type, String label, String hint, MenuItemListener listener, UIPixmapType pixmapType, data[] , int acceleratorKey, ModifierType acMods)
This constructor should be used when the UIInfoType is item, toggleitem, or radioitem and the UIPixmapType is data.
UIInfo(UIInfoType type, String label, String hint, UIInfo moreInfo, UIPixmapType pixmapType, String name, int acceleratorKey, ModifierType acMods)
This constructor should be used when the UIInfo type is a subtree or a radioitem lead entry and the UIPixmapType is stock or a filename.
UIInfo(UIInfoType type, String label, String hint, UIInfo moreInfo, UIPixmapType pixmapType, data[] , int acceleratorKey, ModifierType acMods)
This constructor should be used when the UIInfo type is a subtree or a radioitem lead entry and the UIPixmapType is data.

Method Summary

static UIInfo
aboutItem(ButtonListener listener)
static UIInfo
aboutItem(MenuItemListener listener)
static UIInfo
clearItem(ButtonListener listener)
static UIInfo
clearItem(MenuItemListener listener)
static UIInfo
closeItem(ButtonListener listener)
static UIInfo
closeItem(MenuItemListener listener)
static UIInfo
closeWindowItem(ButtonListener listener)
static UIInfo
closeWindowItem(MenuItemListener listener)
static UIInfo
copyItem(ButtonListener listener)
static UIInfo
copyItem(MenuItemListener listener)
protected static UIInfo
createDefault(ButtonListener listener, int type)
protected static UIInfo
createDefault(MenuItemListener listener, int type)
static UIInfo
cutItem(ButtonListener listener)
static UIInfo
cutItem(MenuItemListener listener)
static UIInfo
end()
Use this method to end an array.
static UIInfo
endGameItem(ButtonListener listener)
static UIInfo
endGameItem(MenuItemListener listener)
static UIInfo
findAgainItem(ButtonListener listener)
static UIInfo
findAgainItem(MenuItemListener listener)
static UIInfo
findItem(ButtonListener listener)
static UIInfo
findItem(MenuItemListener listener)
protected static int
getAcMods(Handle cptr)
protected static int
getAcceleratorKey(Handle cptr)
protected static String
getHint(Handle cptr)
protected static String
getLabel(Handle cptr)
protected static int
getMoreinfo(Handle cptr)
protected static int
getPixmapInfo(Handle cptr)
protected static int
getPixmapType(Handle cptr)
int
getType()
protected static int
getType(Handle cptr)
protected static int
getUserData(Handle cptr)
Widget
getWidget()
protected static Handle
getWidget(Handle cptr)
protected void
handleButtonEvent()
protected void
handleMenuEvent()
static UIInfo
help(String helpNode)
static UIInfo
hintItem(ButtonListener listener)
static UIInfo
hintItem(MenuItemListener listener)
static UIInfo
item(String label, String tooltip, ButtonListener listener)
Use this method to add an item to the menu that has no pixmap associated with it.
static UIInfo
item(String label, String tooltip, ButtonListener listener, byte[] xpmData)
Generic menu or toolbar item which includes a label, a tooltip and an optional pixmap (in xpm format) to be displayed next to the entry.
static UIInfo
item(String label, String tooltip, MenuItemListener listener)
Use this method to add an item to the menu that has no pixmap associated with it.
static UIInfo
item(String label, String tooltip, MenuItemListener listener, byte[] xpmData)
Generic menu or toolbar item which includes a label, a tooltip and an optional pixmap (in xpm format) to be displayed next to the entry.
static UIInfo
itemStock(String label, String tooltip, ButtonListener listener, GtkStockItem stockID)
Use this method to include an item in your menu that includes a GNOME-stock image.
static UIInfo
itemStock(String label, String tooltip, MenuItemListener listener, GtkStockItem stockID)
Use this method to include an item in your menu that includes a GNOME-stock image.
static UIInfo
newGameItem(ButtonListener listener)
static UIInfo
newGameItem(MenuItemListener listener)
static UIInfo
newItem(String label, String tip, MenuItemListener listener)
static UIInfo
newSubtree(UIInfo tree)
static UIInfo
newWindowItem(ButtonListener listener)
static UIInfo
newWindowItem(MenuItemListener listener)
static UIInfo
openItem(ButtonListener listener)
static UIInfo
openItem(MenuItemListener listener)
static UIInfo
pasteItem(ButtonListener listener)
static UIInfo
pasteItem(MenuItemListener listener)
static UIInfo
pauseGameItem(ButtonListener listener)
static UIInfo
pauseGameItem(MenuItemListener listener)
static UIInfo
preferencesItem(ButtonListener listener)
static UIInfo
preferencesItem(MenuItemListener listener)
static UIInfo
printItem(ButtonListener listener)
static UIInfo
printItem(MenuItemListener listener)
static UIInfo
printSetupItem(ButtonListener listener)
static UIInfo
printSetupItem(MenuItemListener listener)
static UIInfo
propertiesItem(ButtonListener listener)
static UIInfo
propertiesItem(MenuItemListener listener)
static UIInfo
quitItem(ButtonListener listener)
static UIInfo
quitItem(MenuItemListener listener)
static UIInfo
radioItem(String label, String tooltip, ButtonListener listener)
static UIInfo
radioItem(String label, String tooltip, ButtonListener listener, byte[] xpmData)
static UIInfo
radioItem(String label, String tooltip, MenuItemListener listener)
static UIInfo
radioItem(String label, String tooltip, MenuItemListener listener, byte[] xpmData)
static UIInfo
radioItemStock(String label, String tooltip, ButtonListener listener, GtkStockItem stock)
static UIInfo
radioItemStock(String label, String tooltip, MenuItemListener listener, GtkStockItem stock)
static UIInfo
radioList(list[] )
Creates a structure to insert a list of radio items.
static UIInfo
redoItem(ButtonListener listener)
static UIInfo
redoItem(MenuItemListener listener)
static UIInfo
redoMoveItem(ButtonListener listener)
static UIInfo
redoMoveItem(MenuItemListener listener)
static UIInfo
replaceItem(ButtonListener listener)
static UIInfo
replaceItem(MenuItemListener listener)
static UIInfo
restartGameItem(ButtonListener listener)
static UIInfo
restartGameItem(MenuItemListener listener)
static UIInfo
revertItem(ButtonListener listener)
static UIInfo
revertItem(MenuItemListener listener)
static UIInfo
saveAsItem(ButtonListener listener)
static UIInfo
saveAsItem(MenuItemListener listener)
static UIInfo
saveItem(ButtonListener listener)
static UIInfo
saveItem(MenuItemListener listener)
static UIInfo
scoresItem(ButtonListener listener)
static UIInfo
scoresItem(MenuItemListener listener)
static UIInfo
selectAllItem(ButtonListener listener)
static UIInfo
selectAllItem(MenuItemListener listener)
static UIInfo
separator()
Use this method to include a separator in your menu or toolbar
protected static void
setCallbackInfo(Handle handle, String callbackFunc, Object callbackObj)
protected static void
setMoreInfo(Handle handle, String moreInfo)
protected static void
setPixmapInfo(Handle handle, String name)
protected static void
setPixmapInfo(Handle handle, byte[] data)
protected static void
setSubmenuInfo(Handle handle, Handle[] moreInfo)
static UIInfo
subtree(String label, tree[] )
Creates a submenu or a sub-tree in the menu stracture.
static UIInfo
subtree(String label, tree[] , String stockID)
Creates a submenu or a sub-tree in the menu stracture with a stock pixmap displayed.
static UIInfo
toggleItem(String label, String tooltip, ButtonListener listener)
Creates a toggle-item (a checkbox) in a menu with no icon.
static UIInfo
toggleItem(String label, String tooltip, ButtonListener listener, byte[] xpmData)
Creates a toggle-item (a checkbox) in a menu, this includes an xpm graphic.
static UIInfo
toggleItem(String label, String tooltip, MenuItemListener listener)
Creates a toggle-item (a checkbox) in a menu with no icon.
static UIInfo
toggleItem(String label, String tooltip, MenuItemListener listener, byte[] xpmData)
Creates a toggle-item (a checkbox) in a menu, this includes an xpm graphic.
static UIInfo
toggleItemStock(String label, String tooltip, ButtonListener listener, GtkStockItem stock)
Creates a toggle-item (a checkbox) in a menu, this includes an stock icon.
static UIInfo
toggleItemStock(String label, String tooltip, MenuItemListener listener, GtkStockItem stock)
Creates a toggle-item (a checkbox) in a menu, this includes an stock icon.
protected static Handle
uiinfo_new(int type, String label, String hint, int pixmapType, int acceleratorKey, int acMods)
static UIInfo
undoItem(ButtonListener listener)
static UIInfo
undoItem(MenuItemListener listener)
static UIInfo
undoMoveItem(ButtonListener listener)
static UIInfo
undoMoveItem(MenuItemListener listener)

Constructor Details

UIInfo

protected UIInfo(Handle hndl)


UIInfo

protected UIInfo(String helpNode)
This constructor should be used when the UIInfo type is a help item. The moreInfo argument is a string that specifies the help node to load.


UIInfo

protected UIInfo(UIInfoType type,
                 String label,
                 String hint,
                 ButtonListener listener,
                 UIPixmapType pixmapType,
                 String name,
                 int acceleratorKey,
                 ModifierType acMods)
This constructor should be used when the UIInfoType is item, toggleitem, or radioitem and the UIPixmapType is file or stock. The name name argument holds the filename or stock name of the pixmap.


UIInfo

protected UIInfo(UIInfoType type,
                 String label,
                 String hint,
                 ButtonListener listener,
                 UIPixmapType pixmapType,
                 data[] ,
                 int acceleratorKey,
                 ModifierType acMods)
This constructor should be used when the UIInfoType is item, toggleitem, or radioitem and the UIPixmapType is data. The data argument is an inline xpm.


UIInfo

protected UIInfo(UIInfoType type,
                 String label,
                 String hint,
                 MenuItemListener listener,
                 UIPixmapType pixmapType,
                 String name,
                 int acceleratorKey,
                 ModifierType acMods)
This constructor should be used when the UIInfoType is item, toggleitem, or radioitem and the UIPixmapType is file or stock. The name name argument holds the filename or stock name of the pixmap.


UIInfo

protected UIInfo(UIInfoType type,
                 String label,
                 String hint,
                 MenuItemListener listener,
                 UIPixmapType pixmapType,
                 data[] ,
                 int acceleratorKey,
                 ModifierType acMods)
This constructor should be used when the UIInfoType is item, toggleitem, or radioitem and the UIPixmapType is data. The data argument is an inline xpm.


UIInfo

protected UIInfo(UIInfoType type,
                 String label,
                 String hint,
                 UIInfo moreInfo,
                 UIPixmapType pixmapType,
                 String name,
                 int acceleratorKey,
                 ModifierType acMods)
This constructor should be used when the UIInfo type is a subtree or a radioitem lead entry and the UIPixmapType is stock or a filename. The moreInfo argument is an array of subitems that are under the subtree or radioitem and the name argument is the name of the stock icon or the name of the file.


UIInfo

protected UIInfo(UIInfoType type,
                 String label,
                 String hint,
                 UIInfo moreInfo,
                 UIPixmapType pixmapType,
                 data[] ,
                 int acceleratorKey,
                 ModifierType acMods)
This constructor should be used when the UIInfo type is a subtree or a radioitem lead entry and the UIPixmapType is data. The moreInfo argument is an array of subitems that are under the subtree or radioitem and the name argument is inline xpm data.

Method Details

aboutItem

public static UIInfo aboutItem(ButtonListener listener)


aboutItem

public static UIInfo aboutItem(MenuItemListener listener)


clearItem

public static UIInfo clearItem(ButtonListener listener)


clearItem

public static UIInfo clearItem(MenuItemListener listener)


closeItem

public static UIInfo closeItem(ButtonListener listener)


closeItem

public static UIInfo closeItem(MenuItemListener listener)


closeWindowItem

public static UIInfo closeWindowItem(ButtonListener listener)


closeWindowItem

public static UIInfo closeWindowItem(MenuItemListener listener)


copyItem

public static UIInfo copyItem(ButtonListener listener)


copyItem

public static UIInfo copyItem(MenuItemListener listener)


createDefault

protected static UIInfo createDefault(ButtonListener listener,
                                      int type)


createDefault

protected static UIInfo createDefault(MenuItemListener listener,
                                      int type)


cutItem

public static UIInfo cutItem(ButtonListener listener)


cutItem

public static UIInfo cutItem(MenuItemListener listener)


end

public static UIInfo end()
Use this method to end an array.

Returns:
A UIInfo that should be used to terminate an array of UIInfo objects.


endGameItem

public static UIInfo endGameItem(ButtonListener listener)


endGameItem

public static UIInfo endGameItem(MenuItemListener listener)


findAgainItem

public static UIInfo findAgainItem(ButtonListener listener)


findAgainItem

public static UIInfo findAgainItem(MenuItemListener listener)


findItem

public static UIInfo findItem(ButtonListener listener)


findItem

public static UIInfo findItem(MenuItemListener listener)


getAcMods

protected static final int getAcMods(Handle cptr)


getAcceleratorKey

protected static final int getAcceleratorKey(Handle cptr)


getHint

protected static final String getHint(Handle cptr)


getLabel

protected static final String getLabel(Handle cptr)


getMoreinfo

protected static final int getMoreinfo(Handle cptr)


getPixmapInfo

protected static final int getPixmapInfo(Handle cptr)


getPixmapType

protected static final int getPixmapType(Handle cptr)


getType

public int getType()


getType

protected static final int getType(Handle cptr)


getUserData

protected static final int getUserData(Handle cptr)


getWidget

public Widget getWidget()


getWidget

protected static final Handle getWidget(Handle cptr)


handleButtonEvent

protected void handleButtonEvent()


handleMenuEvent

protected void handleMenuEvent()


help

public static UIInfo help(String helpNode)


hintItem

public static UIInfo hintItem(ButtonListener listener)


hintItem

public static UIInfo hintItem(MenuItemListener listener)


item

public static UIInfo item(String label,
                          String tooltip,
                          ButtonListener listener)
Use this method to add an item to the menu that has no pixmap associated with it.


item

public static UIInfo item(String label,
                          String tooltip,
                          ButtonListener listener,
                          byte[] xpmData)
Generic menu or toolbar item which includes a label, a tooltip and an optional pixmap (in xpm format) to be displayed next to the entry.


item

public static UIInfo item(String label,
                          String tooltip,
                          MenuItemListener listener)
Use this method to add an item to the menu that has no pixmap associated with it.


item

public static UIInfo item(String label,
                          String tooltip,
                          MenuItemListener listener,
                          byte[] xpmData)
Generic menu or toolbar item which includes a label, a tooltip and an optional pixmap (in xpm format) to be displayed next to the entry.


itemStock

public static UIInfo itemStock(String label,
                               String tooltip,
                               ButtonListener listener,
                               GtkStockItem stockID)
Use this method to include an item in your menu that includes a GNOME-stock image.


itemStock

public static UIInfo itemStock(String label,
                               String tooltip,
                               MenuItemListener listener,
                               GtkStockItem stockID)
Use this method to include an item in your menu that includes a GNOME-stock image.


newGameItem

public static UIInfo newGameItem(ButtonListener listener)


newGameItem

public static UIInfo newGameItem(MenuItemListener listener)


newItem

public static UIInfo newItem(String label,
                             String tip,
                             MenuItemListener listener)


newSubtree

public static UIInfo newSubtree(UIInfo tree)


newWindowItem

public static UIInfo newWindowItem(ButtonListener listener)


newWindowItem

public static UIInfo newWindowItem(MenuItemListener listener)


openItem

public static UIInfo openItem(ButtonListener listener)


openItem

public static UIInfo openItem(MenuItemListener listener)


pasteItem

public static UIInfo pasteItem(ButtonListener listener)


pasteItem

public static UIInfo pasteItem(MenuItemListener listener)


pauseGameItem

public static UIInfo pauseGameItem(ButtonListener listener)


pauseGameItem

public static UIInfo pauseGameItem(MenuItemListener listener)


preferencesItem

public static UIInfo preferencesItem(ButtonListener listener)


preferencesItem

public static UIInfo preferencesItem(MenuItemListener listener)


printItem

public static UIInfo printItem(ButtonListener listener)


printItem

public static UIInfo printItem(MenuItemListener listener)


printSetupItem

public static UIInfo printSetupItem(ButtonListener listener)


printSetupItem

public static UIInfo printSetupItem(MenuItemListener listener)


propertiesItem

public static UIInfo propertiesItem(ButtonListener listener)


propertiesItem

public static UIInfo propertiesItem(MenuItemListener listener)


quitItem

public static UIInfo quitItem(ButtonListener listener)


quitItem

public static UIInfo quitItem(MenuItemListener listener)


radioItem

public static UIInfo radioItem(String label,
                               String tooltip,
                               ButtonListener listener)


radioItem

public static UIInfo radioItem(String label,
                               String tooltip,
                               ButtonListener listener,
                               byte[] xpmData)


radioItem

public static UIInfo radioItem(String label,
                               String tooltip,
                               MenuItemListener listener)


radioItem

public static UIInfo radioItem(String label,
                               String tooltip,
                               MenuItemListener listener,
                               byte[] xpmData)


radioItemStock

public static UIInfo radioItemStock(String label,
                                    String tooltip,
                                    ButtonListener listener,
                                    GtkStockItem stock)


radioItemStock

public static UIInfo radioItemStock(String label,
                                    String tooltip,
                                    MenuItemListener listener,
                                    GtkStockItem stock)


radioList

public static UIInfo radioList(list[] )
Creates a structure to insert a list of radio items.


redoItem

public static UIInfo redoItem(ButtonListener listener)


redoItem

public static UIInfo redoItem(MenuItemListener listener)


redoMoveItem

public static UIInfo redoMoveItem(ButtonListener listener)


redoMoveItem

public static UIInfo redoMoveItem(MenuItemListener listener)


replaceItem

public static UIInfo replaceItem(ButtonListener listener)


replaceItem

public static UIInfo replaceItem(MenuItemListener listener)


restartGameItem

public static UIInfo restartGameItem(ButtonListener listener)


restartGameItem

public static UIInfo restartGameItem(MenuItemListener listener)


revertItem

public static UIInfo revertItem(ButtonListener listener)


revertItem

public static UIInfo revertItem(MenuItemListener listener)


saveAsItem

public static UIInfo saveAsItem(ButtonListener listener)


saveAsItem

public static UIInfo saveAsItem(MenuItemListener listener)


saveItem

public static UIInfo saveItem(ButtonListener listener)


saveItem

public static UIInfo saveItem(MenuItemListener listener)


scoresItem

public static UIInfo scoresItem(ButtonListener listener)


scoresItem

public static UIInfo scoresItem(MenuItemListener listener)


selectAllItem

public static UIInfo selectAllItem(ButtonListener listener)


selectAllItem

public static UIInfo selectAllItem(MenuItemListener listener)


separator

public static UIInfo separator()
Use this method to include a separator in your menu or toolbar

Returns:
A UIInfo that represents a separator.


setCallbackInfo

protected static final void setCallbackInfo(Handle handle,
                                            String callbackFunc,
                                            Object callbackObj)


setMoreInfo

protected static final void setMoreInfo(Handle handle,
                                        String moreInfo)


setPixmapInfo

protected static final void setPixmapInfo(Handle handle,
                                          String name)


setPixmapInfo

protected static final void setPixmapInfo(Handle handle,
                                          byte[] data)


setSubmenuInfo

protected static final void setSubmenuInfo(Handle handle,
                                           Handle[] moreInfo)


subtree

public static UIInfo subtree(String label,
                             tree[] )
Creates a submenu or a sub-tree in the menu stracture.


subtree

public static UIInfo subtree(String label,
                             tree[] ,
                             String stockID)
Creates a submenu or a sub-tree in the menu stracture with a stock pixmap displayed.


toggleItem

public static UIInfo toggleItem(String label,
                                String tooltip,
                                ButtonListener listener)
Creates a toggle-item (a checkbox) in a menu with no icon.


toggleItem

public static UIInfo toggleItem(String label,
                                String tooltip,
                                ButtonListener listener,
                                byte[] xpmData)
Creates a toggle-item (a checkbox) in a menu, this includes an xpm graphic.


toggleItem

public static UIInfo toggleItem(String label,
                                String tooltip,
                                MenuItemListener listener)
Creates a toggle-item (a checkbox) in a menu with no icon.


toggleItem

public static UIInfo toggleItem(String label,
                                String tooltip,
                                MenuItemListener listener,
                                byte[] xpmData)
Creates a toggle-item (a checkbox) in a menu, this includes an xpm graphic.


toggleItemStock

public static UIInfo toggleItemStock(String label,
                                     String tooltip,
                                     ButtonListener listener,
                                     GtkStockItem stock)
Creates a toggle-item (a checkbox) in a menu, this includes an stock icon.


toggleItemStock

public static UIInfo toggleItemStock(String label,
                                     String tooltip,
                                     MenuItemListener listener,
                                     GtkStockItem stock)
Creates a toggle-item (a checkbox) in a menu, this includes an stock icon.


uiinfo_new

protected static final Handle uiinfo_new(int type,
                                         String label,
                                         String hint,
                                         int pixmapType,
                                         int acceleratorKey,
                                         int acMods)


undoItem

public static UIInfo undoItem(ButtonListener listener)


undoItem

public static UIInfo undoItem(MenuItemListener listener)


undoMoveItem

public static UIInfo undoMoveItem(ButtonListener listener)


undoMoveItem

public static UIInfo undoMoveItem(MenuItemListener listener)