org.objectweb.jac.aspects.gui
Interface CompositeView

All Superinterfaces:
View, ViewIdentity
All Known Subinterfaces:
CustomizedView, PanelView, TabsView
All Known Implementing Classes:
AbstractCompositeView, AbstractCompositeView, Customized, DesktopView, Panel, SwingCustomized, SwingPanelView, SwingTabbedView, Tabs

public interface CompositeView
extends View

This view is a composite view (i.e. a view that can contains other view). View and CompositeView follow the GoF composite pattern.


Method Summary
 void addHorizontalStrut(int width)
          Adds an horizontal separator in the composite in order to insert blanks between components.
 void addVerticalStrut(int height)
          Adds a vertical separator in the composite in order to insert blanks between components.
 void addView(View component)
          Adds a component view in the composite.
 void addView(View component, Object extraInfos)
          Adds a component view in the composite.
 boolean containsView(String viewType, Object[] parameters)
          Tells wether the composite view contains a view with some given view type and paramters
 View getView(Object id)
          Gets a component view from an id object.
 Collection getViews()
          Gets all the component views in this composite.
 void removeAllViews(boolean validate)
          Removes all the views in this composite.
 void removeView(View component, boolean validate)
          Removes a component view in this composite.
 
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, setLabel, setMessage, setParentView, setSize, setStyle, setViewBorder
 
Methods inherited from interface org.objectweb.jac.aspects.gui.ViewIdentity
equalsView, equalsView, getParameters, getType, setParameters, setType
 

Method Detail

addView

public void addView(View component,
                    Object extraInfos)
Adds a component view in the composite.

Parameters:
component - the component view
extraInfos - some positionning infos on where the component should be added in the composite

addView

public void addView(View component)
Adds a component view in the composite.

Parameters:
component - the component view

addHorizontalStrut

public void addHorizontalStrut(int width)
Adds an horizontal separator in the composite in order to insert blanks between components.


addVerticalStrut

public void addVerticalStrut(int height)
Adds a vertical separator in the composite in order to insert blanks between components.


getView

public View getView(Object id)
Gets a component view from an id object.


getViews

public Collection getViews()
Gets all the component views in this composite.


containsView

public boolean containsView(String viewType,
                            Object[] parameters)
Tells wether the composite view contains a view with some given view type and paramters

Parameters:
viewType - the type of the view to look for
parameters - the parameters of the view to look for
Returns:
true if the composite contains a view with the given type and parameters

removeView

public void removeView(View component,
                       boolean validate)
Removes a component view in this composite.

Parameters:
component - the component view to remove
validate - wether to validate values in editors

removeAllViews

public void removeAllViews(boolean validate)
Removes all the views in this composite.

Parameters:
validate - wether to validate values in editors