|
|||||||||||
| 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.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, setHeight, setLabel, setMessage, setParameters, setParentView, setRow, setStyle, setStyleSheet, setTable, setType, setViewBorder, setWidth, 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 view| Method Detail |
public View getView()
getView in interface AbstractCollectionItemViewpublic void close(boolean validate)
View
close in interface Viewclose in class AbstractViewpublic void setCollection(CollectionItem coll)
AbstractCollectionItemView
setCollection in interface AbstractCollectionItemViewcoll - a collection itempublic CollectionItem getCollection()
AbstractCollectionItemView
getCollection in interface AbstractCollectionItemViewpublic void setCurrent(int index)
AbstractCollectionItemView
setCurrent in interface AbstractCollectionItemViewindex - 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 HTMLViewerout - the writer where to write the HTML code.
IOExceptionpublic void onNextInCollection()
CollectionItemViewListener
onNextInCollection in interface CollectionItemViewListenerpublic void onPreviousInCollection()
CollectionItemViewListener
onPreviousInCollection in interface CollectionItemViewListenerprotected CompositeView findPanel()
public void onBackToCollection()
CollectionItemViewListener
onBackToCollection in interface CollectionItemViewListenerpublic void onRemoveInCollection()
CollectionItemViewListener
onRemoveInCollection in interface CollectionItemViewListener
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||