|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.jac.aspects.gui.web.AbstractView
org.objectweb.jac.aspects.gui.web.AbstractCompositeView
org.objectweb.jac.aspects.gui.web.Customized
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 | |
Customized(ViewFactory factory,
DisplayContext context,
CustomizedGUI customized,
Map panels)
Builds a customized view. |
Method Summary | |
void |
addView(View view)
Adds a component view in the composite. |
void |
addView(View view,
Object extraInfos)
Adds a component view in the composite. |
void |
close(boolean validate)
Close this view. |
protected void |
genBody(PrintWriter out)
Override this method to generate the body of an HTML page. |
void |
genHTML(PrintWriter out)
Generate the HTML code for the editor. |
MenuView |
getBottomMenuBar()
|
CustomizedGUI |
getCustomizedGUI()
Returns the customized GUI, i.e. the object that contains all the parametrization of this view as built by the GUI aspect. |
MenuView |
getLeftMenuBar()
|
PanelView |
getPanelView()
Returns the content pane of the customized, i.e. a panel containing some sub-panels. |
MenuView |
getRightMenuBar()
|
MenuView |
getTopMenuBar()
|
View |
getView(Object id)
Gets a component view from an id object. |
Collection |
getViews()
Gets all the component views in this composite. |
void |
onCancel()
Called when the Cancel button was pressed by the user. |
void |
onOK(JacRequest request)
Called when the OK button was pressed by the user. |
void |
onRefresh(JacRequest request)
Called when the Refresh button was pressed by the user. |
void |
onValidate(JacRequest request)
Validates inputs, but creates no HTML. |
void |
removeAllViews(boolean validate)
Removes all the views in this composite. |
void |
requestFocus()
|
void |
setContext(DisplayContext context)
Sets the display context for this view. |
void |
setMenuBar(MenuView menuBar,
String position)
Set a menu bar to the customized. |
void |
setStatusBar(StatusView statusBar,
String position)
Set a status bar to the customized. |
void |
setToolBar(MenuView toolBar)
Set a tool bar to the customized. |
void |
showStatus(String message)
Show a message on the customized's status bar. |
Methods inherited from class org.objectweb.jac.aspects.gui.web.AbstractCompositeView |
add, addHorizontalStrut, addVerticalStrut, closeAllViews, containsView, genDescription, genMessage, removeView |
Methods inherited from class org.objectweb.jac.aspects.gui.web.AbstractView |
closeForm, equalsView, equalsView, eventURL, eventURL, 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, setLabel, setMessage, setParameters, setParentView, setRow, setSize, setStyle, setStyleSheet, setTable, setType, setViewBorder, 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.CompositeView |
addHorizontalStrut, addVerticalStrut, containsView, removeView |
Methods inherited from interface org.objectweb.jac.aspects.gui.View |
getContext, getDescription, getFactory, getLabel, getMessage, getParentView, getRootView, getStyle, getViewBorder, isClosed, isDescendantOf, 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 |
Methods inherited from interface org.objectweb.jac.aspects.gui.web.HTMLViewer |
setStyleSheet |
Constructor Detail |
public Customized(ViewFactory factory, DisplayContext context, CustomizedGUI customized, Map panels)
factory
- the view factorycontext
- the display contextcustomized
- the customized GUI to build a view ofpanels
- if not null, overrides the content of the view
(panelID -> PanelContent)Method Detail |
public void close(boolean validate)
View
close
in interface View
close
in class AbstractCompositeView
public void setContext(DisplayContext context)
View
The display context contains the factory that is used for this view.
setContext
in interface View
setContext
in class AbstractCompositeView
public void addView(View view, Object extraInfos)
CompositeView
addView
in interface CompositeView
addView
in class AbstractCompositeView
public void addView(View view)
CompositeView
addView
in interface CompositeView
addView
in class AbstractCompositeView
public Collection getViews()
CompositeView
getViews
in interface CompositeView
getViews
in class AbstractCompositeView
public View getView(Object id)
CompositeView
getView
in interface CompositeView
getView
in class AbstractCompositeView
public void removeAllViews(boolean validate)
CompositeView
removeAllViews
in interface CompositeView
removeAllViews
in class AbstractCompositeView
public CustomizedGUI getCustomizedGUI()
CustomizedView
getCustomizedGUI
in interface CustomizedView
public void setMenuBar(MenuView menuBar, String position)
CustomizedView
setMenuBar
in interface CustomizedView
menuBar
- the abstract menu barposition
- (TOP||BOTTOM)public MenuView getTopMenuBar()
public MenuView getBottomMenuBar()
public MenuView getLeftMenuBar()
public MenuView getRightMenuBar()
public void setToolBar(MenuView toolBar)
CustomizedView
setToolBar
in interface CustomizedView
toolBar
- the abstract tool barpublic void setStatusBar(StatusView statusBar, String position)
CustomizedView
setStatusBar
in interface CustomizedView
statusBar
- the abstract status barposition
- (TOP||BOTTOM)public void showStatus(String message)
CustomizedView
showStatus
in interface CustomizedView
message
- the message to showpublic PanelView getPanelView()
CustomizedView
getPanelView
in interface CustomizedView
public void requestFocus()
requestFocus
in interface CustomizedView
public void genHTML(PrintWriter out) throws IOException
HTMLViewer
genHTML
in interface HTMLViewer
genHTML
in class AbstractCompositeView
IOException
protected void genBody(PrintWriter out) throws IOException
AbstractView
genBody
in class AbstractView
IOException
AbstractView.genPage(PrintWriter)
public void onOK(JacRequest request)
WindowListener
onOK
in interface WindowListener
request
- the servlet requestpublic void onRefresh(JacRequest request)
WindowListener
onRefresh
in interface WindowListener
request
- the servlet requestpublic void onCancel()
WindowListener
onCancel
in interface WindowListener
public void onValidate(JacRequest request)
WindowListener
onValidate
in interface WindowListener
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |