org.objectweb.jac.aspects.gui
Interface ViewIdentity

All Known Subinterfaces:
CollectionView, CompositeView, CustomizedView, DialogView, FieldEditor, FieldView, MenuView, MethodView, PanelView, ReferenceEditor, StatusView, TableCellViewer, TabsView, View, WindowView
All Known Implementing Classes:
AbstractCollection, AbstractCollection, AbstractCompositeView, AbstractCompositeView, AbstractFieldEditor, AbstractFieldEditor, AbstractFieldView, AbstractFileEditor, AbstractMenu, AbstractPage, AbstractView, AbstractView, AttachmentViewer, AttachmentViewer, BooleanEditor, BooleanEditor, BooleanViewer, CurrencyViewer, Customized, DesktopView, Dialog, Dialog, EmbeddedMethod, EnumViewer, FileEditor, FilePathEditor, FormatEditor, FormatViewer, ImageURLEditor, ImageURLViewer, ImageViewer, IndicesSelector, Menu, Menu, MenuBar, MenuBar, Method, ObjectChooser, ObjectChooser, Panel, PasswordFieldEditor, PointEditor, PrimitiveFieldEditor, ReferenceView, ReferenceView, RefreshPage, StatusBar, StatusBar, SwingCustomized, SwingEmptyView, SwingFieldView, SwingLabel, SwingMethodView, SwingPanelView, SwingTabbedView, Tabs, TextEditor, TextViewer, ToolBar, ToolBar, Tree, Tree, URLEditor, URLEditor

public interface ViewIdentity

This interface allows views comparison. If both parameters and types are equals for the compared views, then the two view are considered as equal.


Method Summary
 boolean equalsView(String type, Object[] parameters)
           
 boolean equalsView(ViewIdentity view)
          Tells if a view is the same as another one, ie it has the same type and parameters.
 Object[] getParameters()
          The parameters that were used to compile the view.
 String getType()
          Gets the view type.
 void setParameters(Object[] parameters)
          Sets the parameters that were used to construct the view.
 void setType(String type)
          Set the view type.
 

Method Detail

setParameters

public void setParameters(Object[] parameters)
Sets the parameters that were used to construct the view.


getParameters

public Object[] getParameters()
The parameters that were used to compile the view.


getType

public String getType()
Gets the view type.

Returns:
view type string as declared in web.acc or swing.acc depending on the GUI target

setType

public void setType(String type)
Set the view type.


equalsView

public boolean equalsView(ViewIdentity view)
Tells if a view is the same as another one, ie it has the same type and parameters.


equalsView

public boolean equalsView(String type,
                          Object[] parameters)