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

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

public class EmbeddedMethod
extends AbstractCompositeView
implements MethodView, MethodListener


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
EmbeddedMethod(Object substance, AbstractMethodItem method, EditorContainer parameters)
           
 
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)
           
 
Methods inherited from class org.objectweb.jac.aspects.gui.web.AbstractCompositeView
add, addHorizontalStrut, addVerticalStrut, addView, addView, close, closeAllViews, containsView, genDescription, genMessage, getView, getViews, removeAllViews, removeView, setContext
 
Methods inherited from class org.objectweb.jac.aspects.gui.web.AbstractView
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, 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, 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, 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
 

Constructor Detail

EmbeddedMethod

public EmbeddedMethod(Object substance,
                      AbstractMethodItem method,
                      EditorContainer parameters)
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)
             throws IOException
Description copied from interface: HTMLViewer
Generate the HTML code for the editor.

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

onInvoke

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

Specified by:
onInvoke in interface MethodListener