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

java.lang.Object
  extended byorg.objectweb.jac.aspects.gui.web.AbstractView
      extended byorg.objectweb.jac.aspects.gui.web.AbstractFieldView
          extended byorg.objectweb.jac.aspects.gui.web.AttachmentViewer
All Implemented Interfaces:
AttachmentListener, FieldUpdate, FieldView, HTMLViewer, TableCellViewer, View, ViewIdentity

public class AttachmentViewer
extends AbstractFieldView
implements HTMLViewer, AttachmentListener, TableCellViewer


Field Summary
 
Fields inherited from class org.objectweb.jac.aspects.gui.web.AbstractFieldView
autoUpdate, field, substance
 
Fields inherited from class org.objectweb.jac.aspects.gui.web.AbstractView
column, context, description, height, isCellViewer, label, parentView, row, table, width
 
Constructor Summary
AttachmentViewer()
           
AttachmentViewer(Object value, Object substance, FieldItem field)
           
 
Method Summary
 void genHTML(PrintWriter out)
          Generate the HTML code for the editor.
 void onLoadAttachment()
          Download the attachement.
 void setValue(Object value)
          Sets the value to display
 
Methods inherited from class org.objectweb.jac.aspects.gui.web.AbstractFieldView
close, fieldUpdated, getField, getSubstance, setAutoUpdate, setField, setSubstance
 
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, 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, toString, wait, wait, wait
 
Methods inherited from interface org.objectweb.jac.aspects.gui.web.HTMLViewer
setStyleSheet
 
Methods inherited from interface org.objectweb.jac.aspects.gui.TableCellViewer
setColumn, setRow, setTable
 
Methods inherited from interface org.objectweb.jac.aspects.gui.FieldView
getField, getSubstance, setAutoUpdate, setField, setSubstance
 
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
 

Constructor Detail

AttachmentViewer

public AttachmentViewer(Object value,
                        Object substance,
                        FieldItem field)

AttachmentViewer

public AttachmentViewer()
Method Detail

setValue

public void setValue(Object value)
Description copied from interface: FieldView
Sets the value to display

Specified by:
setValue in interface FieldView
Specified by:
setValue in class AbstractFieldView

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
Parameters:
out - the writer where to write the HTML code.
Throws:
IOException

onLoadAttachment

public void onLoadAttachment()
Description copied from interface: AttachmentListener
Download the attachement.

Specified by:
onLoadAttachment in interface AttachmentListener