JAC project
AOPSYS
CEDRIC & LIP6 labs

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.
 
Methods inherited from class org.objectweb.jac.aspects.gui.web.AbstractCompositeView
add, addHorizontalStrut, addVerticalStrut, addView, addView, close, genDescription, genMessage, getView, getViews, removeAllViews, removeView, setContext
 
Methods inherited from class org.objectweb.jac.aspects.gui.web.AbstractView
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, 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

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

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

Contact JAC development team:
Renaud Pawlak
Lionel Seinturier
Laurent Martelli