|
JAC project AOPSYS CEDRIC & LIP6 labs |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.objectweb.jac.aspects.gui.web.AbstractView | +--org.objectweb.jac.aspects.gui.web.ToolBar
Field Summary |
Fields inherited from class org.objectweb.jac.aspects.gui.web.AbstractView |
column, context, description, height, isCellViewer, label, parentView, row, table, width |
Constructor Summary | |
ToolBar(ViewFactory factory,
DisplayContext context)
|
Method Summary | |
void |
addAction(String label,
String icon,
Callback callback)
Adds an action to this menu. |
void |
addSeparator()
Adds a separator in this menu. |
void |
addSubMenu(String label,
String icon,
MenuView submenu)
Adds a sub-menu in this menu. |
void |
genHTML(PrintWriter out)
Generate the HTML code for the editor. |
String |
getPosition()
Get the value of position. |
void |
onMenuClick(String key)
Called when the user clicks on an item. |
void |
setPosition(String v)
Set the value of position. |
Methods inherited from class org.objectweb.jac.aspects.gui.web.AbstractView |
close, equals, eventURL, eventURL, genBody, genPage, genStyleSheets, getCloseBorder, getContext, getDescription, getFactory, getId, getId, getLabel, getMessage, getOpenBorder, getParameters, getParentView, getRootView, getStyle, getType, getViewBorder, hashCode, iconElement, iconElement, isClosed, isDescendantOf, isInForm, printAttributes, setAttribute, setColumn, setContext, setDescription, setFactory, setFocus, setHeight, setLabel, setMessage, setParameters, setParentView, setRow, setStyle, setStyleSheet, setTable, setType, setViewBorder, setWidth, validate |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.objectweb.jac.aspects.gui.View |
close, getContext, getDescription, getFactory, getLabel, getMessage, getParentView, getRootView, getStyle, getViewBorder, isClosed, isDescendantOf, setContext, setDescription, setFactory, setFocus, setHeight, setLabel, setMessage, setParentView, setStyle, setViewBorder, setWidth, validate |
Methods inherited from interface org.objectweb.jac.aspects.gui.ViewIdentity |
getParameters, getType, setParameters, setType |
Methods inherited from interface org.objectweb.jac.aspects.gui.web.HTMLViewer |
setStyleSheet |
Constructor Detail |
public ToolBar(ViewFactory factory, DisplayContext context)
Method Detail |
public void addSubMenu(String label, String icon, MenuView submenu)
MenuView
addSubMenu
in interface MenuView
label
- the sub-menu's labelicon
- the sub-menu's iconsubmenu
- the submenupublic void addAction(String label, String icon, Callback callback)
MenuView
addAction
in interface MenuView
label
- the sub-menu's labelicon
- the sub-menu's iconcallback
- the actual actionpublic void addSeparator()
MenuView
addSeparator
in interface MenuView
public String getPosition()
getPosition
in interface MenuView
Menu
public void setPosition(String v)
setPosition
in interface MenuView
v
- Value to assign to position.Menu
public void genHTML(PrintWriter out)
HTMLViewer
genHTML
in interface HTMLViewer
out
- the writer where to write the HTML code.public void onMenuClick(String key)
MenuListener
onMenuClick
in interface MenuListener
key
- the item that was clicked on
|
Contact JAC development team: Renaud Pawlak Lionel Seinturier Laurent Martelli |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |