|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.awt.Component | +--java.awt.Container | +--javax.swing.JComponent | +--javax.swing.JPanel | +--org.objectweb.jac.aspects.gui.swing.AbstractView | +--org.objectweb.jac.aspects.gui.swing.CollectionItemView
Field Summary |
Fields inherited from class org.objectweb.jac.aspects.gui.swing.AbstractView |
closed, height, width |
Fields inherited from class javax.swing.JComponent |
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
CollectionItemView(View view,
CollectionPosition coll,
String viewType,
String[] viewParams,
View hiddenView)
|
Method Summary | |
void |
actionPerformed(ActionEvent evt)
|
void |
close(boolean validate)
Close this view. |
protected void |
draw()
|
protected CompositeView |
findPanel()
|
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()
Displays the collection instead of the current item |
void |
onNextInCollection()
Displays next object in collection |
void |
onPreviousInCollection()
Displays previous object in collection |
void |
onRemoveInCollection()
Remove current object from 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.swing.AbstractView |
equalsView, equalsView, getContext, getDescription, getFactory, getLabel, getMessage, getParameters, getParentView, getRootView, getStyle, getType, getViewBorder, invokeInContext, isClosed, isDescendantOf, setContext, setDescription, setFactory, setFocus, setLabel, setMessage, setParameters, setParentView, setSize, setStyle, setType, setViewBorder, toString |
Methods inherited from class javax.swing.JPanel |
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public CollectionItemView(View view, CollectionPosition coll, String viewType, String[] viewParams, View hiddenView)
Method Detail |
public View getView()
getView
in interface AbstractCollectionItemView
public void close(boolean validate)
View
close
in interface View
close
in class AbstractView
validate
- wether to validate any value contained in editors.protected void draw()
public void onNextInCollection()
AbstractCollectionItemView
onNextInCollection
in interface AbstractCollectionItemView
public void onPreviousInCollection()
AbstractCollectionItemView
onPreviousInCollection
in interface AbstractCollectionItemView
public void onRemoveInCollection()
AbstractCollectionItemView
onRemoveInCollection
in interface AbstractCollectionItemView
protected CompositeView findPanel()
public void onBackToCollection()
AbstractCollectionItemView
onBackToCollection
in interface AbstractCollectionItemView
public void actionPerformed(ActionEvent evt)
actionPerformed
in interface ActionListener
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
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |