org.objectweb.jac.aspects.gui.web
Class Method

java.lang.Object
  |
  +--org.objectweb.jac.aspects.gui.web.AbstractView
        |
        +--org.objectweb.jac.aspects.gui.web.Method
All Implemented Interfaces:
HTMLViewer, MethodListener, MethodView, View, ViewIdentity

public class Method
extends AbstractView
implements MethodView, HTMLViewer, MethodListener


Field Summary
protected  String icon
           
protected  AbstractMethodItem method
           
protected  boolean onlyIcon
           
protected  Object substance
           
 
Fields inherited from class org.objectweb.jac.aspects.gui.web.AbstractView
column, context, description, height, isCellViewer, label, parentView, row, table, width
 
Constructor Summary
Method(Object substance, AbstractMethodItem method)
           
 
Method Summary
 void genHTML(PrintWriter out)
          Generate the HTML code for the editor.
protected  String getText()
          Returns the text of the button
 void onInvoke()
          Called when a method is invoked.
 void setIcon(String icon)
          Sets the icon.
 void setMethod(AbstractMethodItem method)
          Sets the substance method.
 void setOnlyIcon(boolean onlyIcon)
           
 String toString()
           
 
Methods inherited from class org.objectweb.jac.aspects.gui.web.AbstractView
close, closeForm, equalsView, equalsView, eventURL, eventURL, genBody, genEventAndActionButton, genPage, genStyleSheets, getBaseURL, getCloseBorder, getContext, getDescription, getFactory, getId, getId, getLabel, getMessage, getOpenBorder, getParameters, getParentView, getRootView, getStyle, getType, getViewBorder, iconElement, iconElement, isClosed, isDescendantOf, isInForm, openForm, printAttributes, setAttribute, setColumn, setContext, setDescription, setFactory, setFocus, setLabel, setMessage, setParameters, setParentView, setRow, setSize, setStyle, setStyleSheet, setTable, setType, setViewBorder, showButton, showFormButtons, showFormButtons
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, 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, setLabel, setMessage, setParentView, setSize, setStyle, setViewBorder
 
Methods inherited from interface org.objectweb.jac.aspects.gui.ViewIdentity
equalsView, equalsView, getParameters, getType, setParameters, setType
 
Methods inherited from interface org.objectweb.jac.aspects.gui.web.HTMLViewer
setStyleSheet
 

Field Detail

substance

protected Object substance

method

protected AbstractMethodItem method

icon

protected String icon

onlyIcon

protected boolean onlyIcon
Constructor Detail

Method

public Method(Object substance,
              AbstractMethodItem method)
Method Detail

setMethod

public void setMethod(AbstractMethodItem method)
Description copied from interface: MethodView
Sets the substance method.

Specified by:
setMethod in interface MethodView

setIcon

public void setIcon(String icon)
Description copied from interface: MethodView
Sets the icon.

Specified by:
setIcon in interface MethodView

setOnlyIcon

public void setOnlyIcon(boolean onlyIcon)
Specified by:
setOnlyIcon in interface MethodView

getText

protected String getText()
Returns the text of the button


genHTML

public void genHTML(PrintWriter out)
Description copied from interface: HTMLViewer
Generate the HTML code for the editor.

Specified by:
genHTML in interface HTMLViewer
Parameters:
out - the writer where to write the HTML code.

onInvoke

public void onInvoke()
Description copied from interface: MethodListener
Called when a method is invoked.

Specified by:
onInvoke in interface MethodListener

toString

public String toString()
Overrides:
toString in class Object