Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

jac.aspects.gui.web
Class AbstractMenu  view AbstractMenu download AbstractMenu.java

java.lang.Object
  extended byjac.aspects.gui.web.AbstractView
      extended byjac.aspects.gui.web.AbstractMenu
All Implemented Interfaces:
HTMLViewer, MenuListener, jac.aspects.gui.MenuView, jac.aspects.gui.View
Direct Known Subclasses:
Menu, MenuBar

public abstract class AbstractMenu
extends AbstractView
implements jac.aspects.gui.MenuView, HTMLViewer, MenuListener


Field Summary
(package private)  java.util.Vector keys
           
(package private)  java.util.HashMap map
           
(package private)  java.lang.String position
           
 
Fields inherited from class jac.aspects.gui.web.AbstractView
closed, column, context, description, factory, height, isCellViewer, javascript, label, message, parameters, parentView, row, style, styleSheet, table, type, viewBorder, width
 
Constructor Summary
AbstractMenu(jac.aspects.gui.ViewFactory factory, jac.aspects.gui.DisplayContext context)
           
 
Method Summary
 void addAction(java.lang.String label, java.lang.String icon, jac.aspects.gui.Callback callback)
          Adds an action to this menu.
 void addSeparator()
          Adds a separator in this menu.
 void addSubMenu(java.lang.String label, java.lang.String icon, jac.aspects.gui.MenuView submenu)
          Adds a sub-menu in this menu.
 java.lang.String getPosition()
          Get the value of position.
 void onMenuClick(java.lang.String key)
          Called when the user clicks on an item.
 void setPosition(java.lang.String v)
          Set the value of position.
 
Methods inherited from class jac.aspects.gui.web.AbstractView
close, equals, eventURL, eventURL, genBody, genPage, getCloseBorder, getContext, getDescription, getFactory, getId, getId, getLabel, getMessage, getOpenBorder, getParameters, getParentView, getRootView, getStyle, getType, getViewBorder, iconElement, iconElement, isClosed, isInForm, 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, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface jac.aspects.gui.View
close, getParentView, getSubstance, refreshView, refreshViewItem, setFocus
 
Methods inherited from interface jac.aspects.gui.web.HTMLViewer
genHTML, setStyleSheet
 

Field Detail

map

java.util.HashMap map

keys

java.util.Vector keys

position

java.lang.String position
Constructor Detail

AbstractMenu

public AbstractMenu(jac.aspects.gui.ViewFactory factory,
                    jac.aspects.gui.DisplayContext context)
Method Detail

addSubMenu

public void addSubMenu(java.lang.String label,
                       java.lang.String icon,
                       jac.aspects.gui.MenuView submenu)
Description copied from interface: jac.aspects.gui.MenuView
Adds a sub-menu in this menu.

Specified by:
addSubMenu in interface jac.aspects.gui.MenuView

addAction

public void addAction(java.lang.String label,
                      java.lang.String icon,
                      jac.aspects.gui.Callback callback)
Description copied from interface: jac.aspects.gui.MenuView
Adds an action to this menu.

Specified by:
addAction in interface jac.aspects.gui.MenuView

addSeparator

public void addSeparator()
Description copied from interface: jac.aspects.gui.MenuView
Adds a separator in this menu.

Specified by:
addSeparator in interface jac.aspects.gui.MenuView

getPosition

public java.lang.String getPosition()
Get the value of position.

Specified by:
getPosition in interface jac.aspects.gui.MenuView

setPosition

public void setPosition(java.lang.String v)
Set the value of position.

Specified by:
setPosition in interface jac.aspects.gui.MenuView

onMenuClick

public void onMenuClick(java.lang.String key)
Description copied from interface: MenuListener
Called when the user clicks on an item.

Specified by:
onMenuClick in interface MenuListener