|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.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, filter, isEditor, itemView, model, rowsPerPageChooser, sorter, substance, viewableItems |
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 |
setEditedType(ClassItem type)
Sets the type of the edited value |
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 |
checkRange, genHeader, genHeader, getCollectionModel, getField, getObject, getSubstance, init, isEditor, isEnabled, onAddExistingToCollection, onAddToCollection, onFirst, onLast, onNext, onPrevious, onRefreshCollection, onRemove, onRemoveFromCollection, onTableInvoke, onView, onView, onViewObject, removeLink, setAutoUpdate, setEditor, setEnabled, setField, setRowsPerPage, setSelected, setSubstance, setValue, showRefreshButton, sortLink, viewLink |
Methods inherited from class org.objectweb.jac.aspects.gui.web.AbstractView |
close, 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.FieldEditor |
isEnabled, setEnabled |
Methods inherited from interface org.objectweb.jac.aspects.gui.FieldView |
getField, getSubstance, 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, setLabel, setMessage, setParentView, setSize, setStyle, setViewBorder |
Methods inherited from interface org.objectweb.jac.aspects.gui.ViewIdentity |
equalsView, equalsView, 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 setEditedType(ClassItem type)
FieldEditor
setEditedType
in interface FieldEditor
type
- the type of the edited valuepublic 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
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |