JAC project
AOPSYS
CEDRIC & LIP6 labs

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

java.lang.Object
  |
  +--org.objectweb.jac.aspects.gui.web.AbstractView
        |
        +--org.objectweb.jac.aspects.gui.web.AbstractFieldView
              |
              +--org.objectweb.jac.aspects.gui.web.FloatViewer
All Implemented Interfaces:
FieldUpdate, FieldView, HTMLViewer, View, ViewIdentity

public class FloatViewer
extends AbstractFieldView
implements HTMLViewer


Field Summary
protected  DecimalFormat format
          Stores the default format of the float
 
Fields inherited from class org.objectweb.jac.aspects.gui.web.AbstractFieldView
autoUpdate
 
Fields inherited from class org.objectweb.jac.aspects.gui.web.AbstractView
column, context, description, height, isCellViewer, label, parentView, row, table, width
 
Constructor Summary
FloatViewer()
           
FloatViewer(Object value, Object substance, FieldItem field)
           
 
Method Summary
 void genHTML(PrintWriter out)
          Generate the HTML code for the editor.
protected  void initFormat()
           
 void setField(FieldItem field)
          Sets the field being displayed
 void setValue(Object value)
          Sets the value to display
 
Methods inherited from class org.objectweb.jac.aspects.gui.web.AbstractFieldView
close, fieldUpdated, getField, setAutoUpdate, setSubstance
 
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, 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, 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.View
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
 

Field Detail

format

protected DecimalFormat format
Stores the default format of the float

Constructor Detail

FloatViewer

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

FloatViewer

public FloatViewer()
Method Detail

initFormat

protected void initFormat()

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
Parameters:
value - the value

setField

public void setField(FieldItem field)
Description copied from interface: FieldView
Sets the field being displayed

Specified by:
setField in interface FieldView
Overrides:
setField in class AbstractFieldView
Parameters:
field - the field

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.

Contact JAC development team:
Renaud Pawlak
Lionel Seinturier
Laurent Martelli