|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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 |
public void addView(View component, Object extraInfos)
component
- the component viewextraInfos
- some positionning infos on where the component
should be added in the compositepublic void addView(View component)
component
- the component viewpublic void addHorizontalStrut(int width)
public void addVerticalStrut(int height)
public View getView(Object id)
public Collection getViews()
public boolean containsView(String viewType, Object[] parameters)
viewType
- the type of the view to look forparameters
- the parameters of the view to look for
public void removeView(View component, boolean validate)
component
- the component view to removevalidate
- wether to validate values in editorspublic void removeAllViews(boolean validate)
validate
- wether to validate values in editors
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |