|
|||||||||||
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.CollectionItemView
Component used to display elements of a collection, with "prev" and "next" buttons to go to the previous or next element of the collection easily. Can be useful.
Field Summary |
Fields inherited from class org.objectweb.jac.aspects.gui.web.AbstractView |
column, context, description, height, isCellViewer, label, parentView, row, table, width |
Constructor Summary | |
CollectionItemView(View view,
CollectionPosition coll,
String viewType,
String[] viewParams,
View hiddenView)
|
Method Summary | |
void |
close(boolean validate)
Close this view. |
protected CompositeView |
findPanel()
|
void |
genHTML(PrintWriter out)
Generate the HTML code for the editor. |
CollectionItem |
getCollection()
Gets the collection item associated with the view |
int |
getCurrent()
Gets the position in the collection of the current item |
View |
getView()
|
void |
onBackToCollection()
Called when the user wants to go back to the view of the collection |
void |
onNextInCollection()
Called when the user wants to go to the next element in the collection |
void |
onPreviousInCollection()
Called when the user wants to go to the previous element in the collection |
void |
onRemoveInCollection()
Called when the user wants to remove the selected item from the collection |
void |
setCollection(CollectionItem coll)
Sets the collection item associated with the view |
void |
setCurrent(int index)
Sets the position in the collection of the current item |
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.HTMLViewer |
setStyleSheet |
Constructor Detail |
public CollectionItemView(View view, CollectionPosition coll, String viewType, String[] viewParams, View hiddenView)
view
- the initial embedded viewcoll
- the initial position in the collectionviewType
- the type of the viewhiddenView
- the hidden viewMethod Detail |
public View getView()
getView
in interface AbstractCollectionItemView
public void close(boolean validate)
View
close
in interface View
close
in class AbstractView
public void setCollection(CollectionItem coll)
AbstractCollectionItemView
setCollection
in interface AbstractCollectionItemView
coll
- a collection itempublic CollectionItem getCollection()
AbstractCollectionItemView
getCollection
in interface AbstractCollectionItemView
public void setCurrent(int index)
AbstractCollectionItemView
setCurrent
in interface AbstractCollectionItemView
index
- position in collection (from 0 to collection size-1)public int getCurrent()
AbstractCollectionItemView
getCurrent
in interface AbstractCollectionItemView
public void genHTML(PrintWriter out) throws IOException
HTMLViewer
genHTML
in interface HTMLViewer
out
- the writer where to write the HTML code.
IOException
public void onNextInCollection()
CollectionItemViewListener
onNextInCollection
in interface CollectionItemViewListener
public void onPreviousInCollection()
CollectionItemViewListener
onPreviousInCollection
in interface CollectionItemViewListener
protected CompositeView findPanel()
public void onBackToCollection()
CollectionItemViewListener
onBackToCollection
in interface CollectionItemViewListener
public void onRemoveInCollection()
CollectionItemViewListener
onRemoveInCollection
in interface CollectionItemViewListener
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |