|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--org.objectweb.jac.aspects.gui.web.AbstractView
|
+--org.objectweb.jac.aspects.gui.web.AbstractCompositeView
Base class for composite views
| Field Summary |
| Fields inherited from class org.objectweb.jac.aspects.gui.web.AbstractView |
column, context, description, height, isCellViewer, label, parentView, row, table, width |
| Constructor Summary | |
AbstractCompositeView()
|
|
| Method Summary | |
protected void |
add(View component)
|
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 view)
Adds a component view in the composite. |
void |
addView(View view,
Object extraInfo)
Adds a component view in the composite. |
void |
close(boolean validate)
Close this view. |
protected void |
closeAllViews(boolean validate)
|
boolean |
containsView(String viewType,
Object[] parameters)
Tells wether the composite view contains a view with some given view type and paramters |
void |
genDescription(PrintWriter out)
|
void |
genHTML(PrintWriter out)
Generate the HTML code for the editor. |
void |
genMessage(PrintWriter out)
|
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. |
void |
setContext(DisplayContext context)
Sets the display context for this view. |
| Methods inherited from class org.objectweb.jac.aspects.gui.web.AbstractView |
closeForm, equalsView, equalsView, eventURL, eventURL, genBody, genEventAndActionButton, genPage, genStyleSheets, getBaseURL, getCloseBorder, getContext, getDescription, getFactory, getId, getId, getLabel, getMessage, getOpenBorder, getParameters, getParentView, getRootView, getStyle, getType, getViewBorder, iconElement, iconElement, isClosed, isDescendantOf, isInForm, openForm, printAttributes, setAttribute, setColumn, setDescription, setFactory, setFocus, setHeight, setLabel, setMessage, setParameters, setParentView, setRow, setStyle, setStyleSheet, setTable, setType, setViewBorder, setWidth, showButton, showFormButtons, showFormButtons |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.objectweb.jac.aspects.gui.View |
getContext, getDescription, getFactory, getLabel, getMessage, getParentView, getRootView, getStyle, getViewBorder, isClosed, isDescendantOf, setDescription, setFactory, setFocus, setHeight, setLabel, setMessage, setParentView, setStyle, setViewBorder, setWidth |
| Methods inherited from interface org.objectweb.jac.aspects.gui.ViewIdentity |
equalsView, equalsView, getParameters, getType, setParameters, setType |
| Methods inherited from interface org.objectweb.jac.aspects.gui.web.HTMLViewer |
setStyleSheet |
| Constructor Detail |
public AbstractCompositeView()
| Method Detail |
public void setContext(DisplayContext context)
ViewThe display context contains the factory that is used for this view.
setContext in interface ViewsetContext in class AbstractViewpublic void addHorizontalStrut(int width)
CompositeView
addHorizontalStrut in interface CompositeViewpublic void addVerticalStrut(int height)
CompositeView
addVerticalStrut in interface CompositeView
public void addView(View view,
Object extraInfo)
CompositeView
addView in interface CompositeViewview - the component viewextraInfo - some positionning infos on where the component
should be added in the compositepublic void addView(View view)
CompositeView
addView in interface CompositeViewview - the component viewpublic Collection getViews()
CompositeView
getViews in interface CompositeViewpublic View getView(Object id)
CompositeView
getView in interface CompositeView
public boolean containsView(String viewType,
Object[] parameters)
CompositeView
containsView in interface CompositeViewviewType - the type of the view to look forparameters - the parameters of the view to look for
public void removeView(View component,
boolean validate)
CompositeView
removeView in interface CompositeViewcomponent - the component view to removevalidate - wether to validate values in editorspublic void removeAllViews(boolean validate)
CompositeView
removeAllViews in interface CompositeViewvalidate - wether to validate values in editorspublic void close(boolean validate)
View
close in interface Viewclose in class AbstractViewprotected void closeAllViews(boolean validate)
protected void add(View component)
public void genDescription(PrintWriter out)
public void genMessage(PrintWriter out)
public void genHTML(PrintWriter out)
throws IOException
HTMLViewer
genHTML in interface HTMLViewerout - the writer where to write the HTML code.
IOException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||