JAC project
AOPSYS
CEDRIC & LIP6 labs

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

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

public class PrimitiveFieldEditor
extends AbstractFieldEditor
implements HTMLEditor

HTML editor for primitive types (int, long, float, double, short) and String


Field Summary
 
Fields inherited from class org.objectweb.jac.aspects.gui.web.AbstractFieldEditor
field, isEmbedded, setter, substance, value
 
Fields inherited from class org.objectweb.jac.aspects.gui.web.AbstractView
column, context, description, height, isCellViewer, label, parentView, row, table, width
 
Constructor Summary
PrimitiveFieldEditor(Object substance, FieldItem field, Class type, boolean password)
           
 
Method Summary
protected  String displayedValue()
           
protected  boolean doReadValue(Object parameter)
           
 void genHTML(PrintWriter out)
          Generate the HTML code for the editor.
 
Methods inherited from class org.objectweb.jac.aspects.gui.web.AbstractFieldEditor
close, commit, fieldUpdated, getField, getValue, isEnabled, onSetFocus, readValue, setAutoUpdate, setEmbedded, setEnabled, setField, setSubstance, setValue
 
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.HTMLEditor
commit, readValue, setAttribute
 
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
 

Constructor Detail

PrimitiveFieldEditor

public PrimitiveFieldEditor(Object substance,
                            FieldItem field,
                            Class type,
                            boolean password)
Method Detail

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.

displayedValue

protected String displayedValue()

doReadValue

protected boolean doReadValue(Object parameter)
Specified by:
doReadValue in class AbstractFieldEditor

Contact JAC development team:
Renaud Pawlak
Lionel Seinturier
Laurent Martelli