JAC project
AOPSYS
CEDRIC & LIP6 labs

org.objectweb.jac.aspects.gui
Interface CollectionView

All Superinterfaces:
FieldView, View, ViewIdentity
All Known Implementing Classes:
AbstractCollection, AbstractCollection

public interface CollectionView
extends FieldView

This interface implements common methods for view of collections.


Method Summary
 CollectionModel getCollectionModel()
          Gets the associated collection model.
 boolean isEditor()
          Tells wether the view allows to edit the collection (i.e it has add/remove buttons)
 void setEditor(boolean isEditor)
          Set the "editability" of the view.
 void setSelected(int index)
          Sets the selected index of the collection view.
 void updateModel(Object substance)
          Updates the collection model
 
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
 

Method Detail

setSelected

public void setSelected(int index)
Sets the selected index of the collection view.

Parameters:
index - the new selected index

getCollectionModel

public CollectionModel getCollectionModel()
Gets the associated collection model.


updateModel

public void updateModel(Object substance)
Updates the collection model


isEditor

public boolean isEditor()
Tells wether the view allows to edit the collection (i.e it has add/remove buttons)

See Also:
setEditor(boolean)

setEditor

public void setEditor(boolean isEditor)
Set the "editability" of the view. If the view is editable, it has add/remove buttons)

See Also:
isEditor()

Contact JAC development team:
Renaud Pawlak
Lionel Seinturier
Laurent Martelli