JAC project
AOPSYS
CEDRIC & LIP6 labs

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.
 View getView(Object id)
          Gets a component view from an id object.
 Collection getViews()
          Gets all the component views in this composite.
 void removeAllViews()
          Removes all the views in this composite.
 void removeView(View component)
          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, setHeight, setLabel, setMessage, setParentView, setStyle, setViewBorder, setWidth, validate
 
Methods inherited from interface org.objectweb.jac.aspects.gui.ViewIdentity
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.


removeView

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

Parameters:
component - the component view to remove

removeAllViews

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


Contact JAC development team:
Renaud Pawlak
Lionel Seinturier
Laurent Martelli