|
JAC project AOPSYS CEDRIC & LIP6 labs |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.objectweb.jac.aspects.gui.web.AbstractView | +--org.objectweb.jac.aspects.gui.web.AbstractCollection | +--org.objectweb.jac.aspects.gui.web.IndicesSelector
A collection editor that uses the value of an index field to select objects.
Field Summary |
Fields inherited from class org.objectweb.jac.aspects.gui.web.AbstractCollection |
autoUpdate, collection, isEditor, itemView, model, substance |
Fields inherited from class org.objectweb.jac.aspects.gui.web.AbstractView |
column, context, description, height, isCellViewer, label, parentView, row, table, width |
Constructor Summary | |
IndicesSelector(ViewFactory factory,
DisplayContext context,
CollectionItem collection,
Object substance,
CollectionModel model,
CollectionItemView itemView)
|
Method Summary | |
void |
commit()
Commits the changes in this editor. |
void |
genHTML(PrintWriter out)
Generate the HTML code for the editor. |
Object |
getValue()
Gets the value of the edited object. |
String |
objectsToString()
|
void |
onSetFocus(Object param)
Called when the focus is given to the editor |
boolean |
readValue(Object parameter)
Convert a parameter value (String or FileParameter) of an HTTP request parameter to an object. |
void |
setEmbedded(boolean embedded)
Sets wether the editor is embedded in a view. |
void |
sort()
Sorts the collection with the column index stored in the context if any. |
void |
updateModel(Object substance)
Updates the collection model |
Methods inherited from class org.objectweb.jac.aspects.gui.web.AbstractCollection |
genAdderAndRemover, getCollectionModel, getField, isEditor, isEnabled, onAddExistingToCollection, onAddToCollection, onFirst, onLast, onNext, onPrevious, onRemove, onRemoveFromCollection, onTableInvoke, onView, onView, onViewObject, removeLink, setAutoUpdate, setEditor, setEnabled, setField, setSelected, setSubstance, setValue, sortLink, viewLink |
Methods inherited from class org.objectweb.jac.aspects.gui.web.AbstractView |
close, 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.FieldEditor |
isEnabled, setEnabled |
Methods inherited from interface org.objectweb.jac.aspects.gui.FieldView |
getField, setAutoUpdate, setField, setSubstance, setValue |
Methods inherited from interface org.objectweb.jac.aspects.gui.View |
close, 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 |
Methods inherited from interface org.objectweb.jac.aspects.gui.web.HTMLEditor |
setAttribute |
Methods inherited from interface org.objectweb.jac.aspects.gui.web.HTMLViewer |
setStyleSheet |
Constructor Detail |
public IndicesSelector(ViewFactory factory, DisplayContext context, CollectionItem collection, Object substance, CollectionModel model, CollectionItemView itemView)
Method Detail |
public void sort()
AbstractCollection
sort
in class AbstractCollection
public void updateModel(Object substance)
CollectionView
updateModel
in interface CollectionView
updateModel
in class AbstractCollection
public void commit()
FieldEditor
commit
in interface FieldEditor
public Object getValue()
FieldEditor
getValue
in interface FieldEditor
public void setEmbedded(boolean embedded)
FieldEditor
setEmbedded
in interface FieldEditor
public void onSetFocus(Object param)
FieldEditor
onSetFocus
in interface FieldEditor
param
- an optional parameterpublic String objectsToString()
public void genHTML(PrintWriter out)
HTMLViewer
genHTML
in interface HTMLViewer
out
- the writer where to write the HTML code.public boolean readValue(Object parameter)
HTMLEditor
readValue
in interface HTMLEditor
|
Contact JAC development team: Renaud Pawlak Lionel Seinturier Laurent Martelli |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |