JAC project
AOPSYS
CEDRIC & LIP6 labs

org.objectweb.jac.aspects.gui.web
Class CompactList

java.lang.Object
  |
  +--org.objectweb.jac.aspects.gui.web.AbstractView
        |
        +--org.objectweb.jac.aspects.gui.web.AbstractCollection
              |
              +--org.objectweb.jac.aspects.gui.web.CompactList
All Implemented Interfaces:
CollectionListener, CollectionView, FieldView, HTMLViewer, View, ViewIdentity

public class CompactList
extends AbstractCollection
implements HTMLViewer, CollectionListener


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
CompactList()
           
CompactList(ViewFactory factory, DisplayContext context, CollectionItem collection, Object substance, CollectionModel model, CollectionItemView itemView)
           
 
Method Summary
 void genHTML(PrintWriter out)
          Generate the HTML code for the editor.
 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.web.HTMLViewer
setStyleSheet
 
Methods inherited from interface org.objectweb.jac.aspects.gui.web.CollectionListener
onAddExistingToCollection, onAddToCollection, onFirst, onLast, onNext, onPrevious, onRemove, onRemoveFromCollection, onTableInvoke, onView, onViewObject
 
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
 

Constructor Detail

CompactList

public CompactList(ViewFactory factory,
                   DisplayContext context,
                   CollectionItem collection,
                   Object substance,
                   CollectionModel model,
                   CollectionItemView itemView)

CompactList

public CompactList()
Method Detail

sort

public void sort()
Description copied from class: AbstractCollection
Sorts the collection with the column index stored in the context if any.

Specified by:
sort in class AbstractCollection

updateModel

public void updateModel(Object substance)
Description copied from interface: CollectionView
Updates the collection model

Specified by:
updateModel in interface CollectionView
Overrides:
updateModel in class AbstractCollection

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.

Contact JAC development team:
Renaud Pawlak
Lionel Seinturier
Laurent Martelli