org.objectweb.jac.aspects.gui.web
Class IndexSelector
java.lang.Object
|
+--org.objectweb.jac.aspects.gui.web.AbstractView
|
+--org.objectweb.jac.aspects.gui.web.AbstractFieldEditor
|
+--org.objectweb.jac.aspects.gui.web.IndexSelector
- All Implemented Interfaces:
- FieldEditor, FieldUpdate, FieldView, HTMLEditor, HTMLViewer, View, ViewIdentity
- public class IndexSelector
- extends AbstractFieldEditor
- implements HTMLEditor
A reference editor that uses the value of an index field to select
objects.
Methods inherited from class org.objectweb.jac.aspects.gui.web.AbstractFieldEditor |
close, commit, fieldUpdated, getField, getValue, isEnabled, onSetFocus, readValue, setAutoUpdate, setEmbedded, setEnabled, setField, 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 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 |
IndexSelector
public IndexSelector(Object substance,
FieldItem field,
CollectionItem index,
Object repository,
boolean allowCreation,
MethodItem indexNotFoundHandler)
setValue
public void setValue(Object value)
- Description copied from interface:
FieldView
- Sets the value to display
- Specified by:
setValue
in interface FieldView
- Overrides:
setValue
in class AbstractFieldEditor
- Parameters:
value
- the value
updateKey
protected void updateKey()
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