wx
Class Menu
java.lang.Object
wx.Object
wx.EvtHandler
wx.Menu
- public class Menu
- extends EvtHandler
Constructor Summary |
Menu()
|
Menu(java.lang.String title)
|
Menu(java.lang.String title,
int style)
|
Method Summary |
MenuItem |
append(int itemid,
java.lang.String text)
|
MenuItem |
append(int itemid,
java.lang.String text,
Menu submenu)
|
MenuItem |
append(int itemid,
java.lang.String text,
Menu submenu,
java.lang.String help)
|
MenuItem |
append(int itemid,
java.lang.String text,
java.lang.String help)
|
MenuItem |
append(int itemid,
java.lang.String text,
java.lang.String help,
int kind)
|
MenuItem |
append(MenuItem item)
|
MenuItem |
appendCheckItem(int itemid,
java.lang.String text)
|
MenuItem |
appendCheckItem(int itemid,
java.lang.String text,
java.lang.String help)
|
MenuItem |
appendRadioItem(int itemid,
java.lang.String text)
|
MenuItem |
appendRadioItem(int itemid,
java.lang.String text,
java.lang.String help)
|
MenuItem |
appendSeparator()
|
void |
attach(MenuBar menubar)
|
void |
check(int itemid,
boolean check)
|
void |
delete()
|
boolean |
delete(int itemid)
|
boolean |
delete(MenuItem item)
|
boolean |
destroy(int itemid)
|
boolean |
destroy(MenuItem item)
|
void |
detach()
|
void |
doBreak()
|
void |
enable(int itemid,
boolean enable)
|
MenuItem |
findItem(int itemid)
|
int |
findItem(java.lang.String item)
|
MenuItem |
findItemByPosition(int position)
|
EvtHandler |
getEventHandler()
|
java.lang.String |
getHelpString(int itemid)
|
Window |
getInvokingWindow()
|
java.lang.String |
getLabel(int itemid)
|
MenuBar |
getMenuBar()
|
int |
getMenuItemCount()
|
MenuItem[] |
getMenuItems()
|
Menu |
getParent()
|
int |
getStyle()
|
java.lang.String |
getTitle()
|
MenuItem |
insert(int pos,
int itemid,
java.lang.String text)
|
MenuItem |
insert(int pos,
int itemid,
java.lang.String text,
Menu submenu)
|
MenuItem |
insert(int pos,
int itemid,
java.lang.String text,
Menu submenu,
java.lang.String help)
|
MenuItem |
insert(int pos,
int itemid,
java.lang.String text,
java.lang.String help)
|
MenuItem |
insert(int pos,
int itemid,
java.lang.String text,
java.lang.String help,
int kind)
|
MenuItem |
insert(int pos,
MenuItem item)
|
MenuItem |
insertCheckItem(int pos,
int itemid,
java.lang.String text)
|
MenuItem |
insertCheckItem(int pos,
int itemid,
java.lang.String text,
java.lang.String help)
|
MenuItem |
insertRadioItem(int pos,
int itemid,
java.lang.String text)
|
MenuItem |
insertRadioItem(int pos,
int itemid,
java.lang.String text,
java.lang.String help)
|
MenuItem |
insertSeparator(int pos)
|
boolean |
isAttached()
|
boolean |
isChecked(int itemid)
|
boolean |
isEnabled(int itemid)
|
MenuItem |
prepend(int itemid,
java.lang.String text)
|
MenuItem |
prepend(int itemid,
java.lang.String text,
Menu submenu)
|
MenuItem |
prepend(int itemid,
java.lang.String text,
Menu submenu,
java.lang.String help)
|
MenuItem |
prepend(int itemid,
java.lang.String text,
java.lang.String help)
|
MenuItem |
prepend(int itemid,
java.lang.String text,
java.lang.String help,
int kind)
|
MenuItem |
prepend(MenuItem item)
|
MenuItem |
prependCheckItem(int itemid,
java.lang.String text)
|
MenuItem |
prependCheckItem(int itemid,
java.lang.String text,
java.lang.String help)
|
MenuItem |
prependRadioItem(int itemid,
java.lang.String text)
|
MenuItem |
prependRadioItem(int itemid,
java.lang.String text,
java.lang.String help)
|
MenuItem |
prependSeparator()
|
MenuItem |
remove(int itemid)
|
MenuItem |
remove(MenuItem item)
|
void |
setEventHandler(EvtHandler handler)
|
void |
setHelpString(int itemid,
java.lang.String helpString)
|
void |
setInvokingWindow(Window win)
|
void |
setLabel(int itemid,
java.lang.String label)
|
void |
setParent(Menu parent)
|
void |
setTitle(java.lang.String title)
|
void |
updateUI()
|
void |
updateUI(EvtHandler source)
|
Methods inherited from class wx.EvtHandler |
addPendingEvent, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, getEvtHandlerEnabled, getNextHandler, getPreviousHandler, postEvent, processEvent, processPendingEvents, setEvtHandlerEnabled, setNextHandler, setPreviousHandler, swigReleaseOwnership, swigTakeOwnership |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MENU_TEAROFF
public static final int MENU_TEAROFF
- See Also:
- Constant Field Values
Menu
public Menu(java.lang.String title,
int style)
Menu
public Menu(java.lang.String title)
Menu
public Menu()
delete
public void delete()
- Overrides:
delete
in class EvtHandler
getMenuItems
public MenuItem[] getMenuItems()
append
public MenuItem append(int itemid,
java.lang.String text,
java.lang.String help,
int kind)
append
public MenuItem append(int itemid,
java.lang.String text,
java.lang.String help)
append
public MenuItem append(int itemid,
java.lang.String text)
appendSeparator
public MenuItem appendSeparator()
appendCheckItem
public MenuItem appendCheckItem(int itemid,
java.lang.String text,
java.lang.String help)
appendCheckItem
public MenuItem appendCheckItem(int itemid,
java.lang.String text)
appendRadioItem
public MenuItem appendRadioItem(int itemid,
java.lang.String text,
java.lang.String help)
appendRadioItem
public MenuItem appendRadioItem(int itemid,
java.lang.String text)
append
public MenuItem append(int itemid,
java.lang.String text,
Menu submenu,
java.lang.String help)
append
public MenuItem append(int itemid,
java.lang.String text,
Menu submenu)
append
public MenuItem append(MenuItem item)
doBreak
public void doBreak()
insert
public MenuItem insert(int pos,
MenuItem item)
insert
public MenuItem insert(int pos,
int itemid,
java.lang.String text,
java.lang.String help,
int kind)
insert
public MenuItem insert(int pos,
int itemid,
java.lang.String text,
java.lang.String help)
insert
public MenuItem insert(int pos,
int itemid,
java.lang.String text)
insertSeparator
public MenuItem insertSeparator(int pos)
insertCheckItem
public MenuItem insertCheckItem(int pos,
int itemid,
java.lang.String text,
java.lang.String help)
insertCheckItem
public MenuItem insertCheckItem(int pos,
int itemid,
java.lang.String text)
insertRadioItem
public MenuItem insertRadioItem(int pos,
int itemid,
java.lang.String text,
java.lang.String help)
insertRadioItem
public MenuItem insertRadioItem(int pos,
int itemid,
java.lang.String text)
insert
public MenuItem insert(int pos,
int itemid,
java.lang.String text,
Menu submenu,
java.lang.String help)
insert
public MenuItem insert(int pos,
int itemid,
java.lang.String text,
Menu submenu)
prepend
public MenuItem prepend(MenuItem item)
prepend
public MenuItem prepend(int itemid,
java.lang.String text,
java.lang.String help,
int kind)
prepend
public MenuItem prepend(int itemid,
java.lang.String text,
java.lang.String help)
prepend
public MenuItem prepend(int itemid,
java.lang.String text)
prependSeparator
public MenuItem prependSeparator()
prependCheckItem
public MenuItem prependCheckItem(int itemid,
java.lang.String text,
java.lang.String help)
prependCheckItem
public MenuItem prependCheckItem(int itemid,
java.lang.String text)
prependRadioItem
public MenuItem prependRadioItem(int itemid,
java.lang.String text,
java.lang.String help)
prependRadioItem
public MenuItem prependRadioItem(int itemid,
java.lang.String text)
prepend
public MenuItem prepend(int itemid,
java.lang.String text,
Menu submenu,
java.lang.String help)
prepend
public MenuItem prepend(int itemid,
java.lang.String text,
Menu submenu)
remove
public MenuItem remove(int itemid)
remove
public MenuItem remove(MenuItem item)
delete
public boolean delete(int itemid)
delete
public boolean delete(MenuItem item)
destroy
public boolean destroy(int itemid)
destroy
public boolean destroy(MenuItem item)
getMenuItemCount
public int getMenuItemCount()
findItem
public int findItem(java.lang.String item)
findItem
public MenuItem findItem(int itemid)
findItemByPosition
public MenuItem findItemByPosition(int position)
enable
public void enable(int itemid,
boolean enable)
isEnabled
public boolean isEnabled(int itemid)
check
public void check(int itemid,
boolean check)
isChecked
public boolean isChecked(int itemid)
setLabel
public void setLabel(int itemid,
java.lang.String label)
getLabel
public java.lang.String getLabel(int itemid)
setHelpString
public void setHelpString(int itemid,
java.lang.String helpString)
getHelpString
public java.lang.String getHelpString(int itemid)
setTitle
public void setTitle(java.lang.String title)
getTitle
public java.lang.String getTitle()
setEventHandler
public void setEventHandler(EvtHandler handler)
getEventHandler
public EvtHandler getEventHandler()
setInvokingWindow
public void setInvokingWindow(Window win)
getInvokingWindow
public Window getInvokingWindow()
getStyle
public int getStyle()
updateUI
public void updateUI(EvtHandler source)
updateUI
public void updateUI()
getMenuBar
public MenuBar getMenuBar()
attach
public void attach(MenuBar menubar)
detach
public void detach()
isAttached
public boolean isAttached()
setParent
public void setParent(Menu parent)
getParent
public Menu getParent()
© 2006 Amit G Mendapara.