org.objectweb.jac.aspects.gui.web
Class FormatEditor
java.lang.Object
org.objectweb.jac.aspects.gui.web.AbstractView
org.objectweb.jac.aspects.gui.web.AbstractFieldEditor
org.objectweb.jac.aspects.gui.web.FormatEditor
- All Implemented Interfaces:
- FieldEditor, FieldUpdate, FieldView, HTMLEditor, HTMLViewer, View, ViewIdentity
- Direct Known Subclasses:
- DateEditor, DateHourEditor, FloatEditor, PercentEditor
- public abstract class FormatEditor
- extends AbstractFieldEditor
- implements HTMLEditor
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 |
protected Format |
format
Stores the default format of the float |
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.View |
getContext, getDescription, getFactory, getLabel, getMessage, getParentView, getRootView, getStyle, getViewBorder, isClosed, isDescendantOf, setContext, setDescription, setFactory, setFocus, setLabel, setMessage, setParentView, setSize, setStyle, setViewBorder |
format
protected Format format
- Stores the default format of the float
FormatEditor
public FormatEditor(Object substance,
FieldItem field)
initFormat
protected abstract void initFormat(FieldItem field)
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 AbstractFieldEditor
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.
doReadValue
protected boolean doReadValue(Object parameter)
- Specified by:
doReadValue
in class AbstractFieldEditor
parse
protected Object parse(String s)