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

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

public class PercentEditor
extends FormatEditor

HTML editor and viewer for percentage values. It can handle short, int, long, float, and double. In the case of short, int and long, the percentage value is considered to be between 0 and 100, while in the case of float and double it must be between 0 and 1.


Field Summary
 
Fields inherited from class org.objectweb.jac.aspects.gui.web.FormatEditor
format
 
Fields inherited from class org.objectweb.jac.aspects.gui.web.AbstractFieldEditor
field, isEmbedded, setter, substance, type, value
 
Fields inherited from class org.objectweb.jac.aspects.gui.web.AbstractView
column, context, description, height, isCellViewer, label, parentView, row, table, width
 
Constructor Summary
PercentEditor(Object substance, FieldItem field)
           
 
Method Summary
protected  void initFormat(FieldItem field)
           
 
Methods inherited from class org.objectweb.jac.aspects.gui.web.FormatEditor
doReadValue, genHTML, parse, setField
 
Methods inherited from class org.objectweb.jac.aspects.gui.web.AbstractFieldEditor
close, commit, fieldUpdated, getField, getSubstance, getValue, isEnabled, onSetFocus, readValue, setAutoUpdate, setEditedType, setEmbedded, setEnabled, setSubstance, setValue, sizeSpec
 
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.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, setLabel, setMessage, setParentView, setSize, setStyle, setViewBorder
 
Methods inherited from interface org.objectweb.jac.aspects.gui.ViewIdentity
equalsView, equalsView, getParameters, getType, setParameters, setType
 

Constructor Detail

PercentEditor

public PercentEditor(Object substance,
                     FieldItem field)
Method Detail

initFormat

protected void initFormat(FieldItem field)
Specified by:
initFormat in class FormatEditor