JAC project
AOPSYS
CEDRIC & LIP6 labs

org.objectweb.jac.aspects.gui.web
Class Customized

java.lang.Object
  |
  +--org.objectweb.jac.aspects.gui.web.AbstractView
        |
        +--org.objectweb.jac.aspects.gui.web.AbstractCompositeView
              |
              +--org.objectweb.jac.aspects.gui.web.Customized
All Implemented Interfaces:
CompositeView, CustomizedView, HTMLViewer, View, ViewIdentity

public class Customized
extends AbstractCompositeView
implements CustomizedView, HTMLViewer


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()
          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.
 MenuView getLeftMenuBar()
           
 PanelView getPanelView()
          Returns the content pane of the customized, i.e.
 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 removeAllViews()
          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, genDescription, genMessage, removeView
 
Methods inherited from class org.objectweb.jac.aspects.gui.web.AbstractView
equals, eventURL, eventURL, genPage, genStyleSheets, getCloseBorder, getContext, getDescription, getFactory, getId, getId, getLabel, getMessage, getOpenBorder, getParameters, getParentView, getRootView, getStyle, getType, getViewBorder, hashCode, iconElement, iconElement, isClosed, isDescendantOf, isInForm, printAttributes, setAttribute, setColumn, setDescription, setFactory, setFocus, setHeight, setLabel, setMessage, setParameters, setParentView, setRow, setStyle, setStyleSheet, setTable, setType, setViewBorder, setWidth, validate
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.objectweb.jac.aspects.gui.CompositeView
addHorizontalStrut, addVerticalStrut, 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, setHeight, setLabel, setMessage, setParentView, setStyle, setViewBorder, setWidth, validate
 
Methods inherited from interface org.objectweb.jac.aspects.gui.ViewIdentity
getParameters, getType, setParameters, setType
 
Methods inherited from interface org.objectweb.jac.aspects.gui.web.HTMLViewer
setStyleSheet
 

Constructor Detail

Customized

public Customized(ViewFactory factory,
                  DisplayContext context,
                  CustomizedGUI customized,
                  Map panels)
Builds a customized view.

Parameters:
factory - the view factory
context - the display context
customized - the customized GUI to build a view of
panels - if not null, overrides the content of the view (panelID -> PanelContent)
Method Detail

close

public void close()
Description copied from interface: View
Close this view. This should be upcalled when the view is closed in order to free resources or close other dependant views.

Specified by:
close in interface View
Overrides:
close in class AbstractCompositeView

setContext

public void setContext(DisplayContext context)
Description copied from interface: View
Sets the display context for this view.

The display context contains the factory that is used for this view.

Specified by:
setContext in interface View
Overrides:
setContext in class AbstractCompositeView

addView

public void addView(View view,
                    Object extraInfos)
Description copied from interface: CompositeView
Adds a component view in the composite.

Specified by:
addView in interface CompositeView
Overrides:
addView in class AbstractCompositeView
Parameters:
view - the component view
extraInfos - some positionning infos on where the component should be added in the composite

addView

public void addView(View view)
Description copied from interface: CompositeView
Adds a component view in the composite.

Specified by:
addView in interface CompositeView
Overrides:
addView in class AbstractCompositeView
Parameters:
view - the component view

getViews

public Collection getViews()
Description copied from interface: CompositeView
Gets all the component views in this composite.

Specified by:
getViews in interface CompositeView
Overrides:
getViews in class AbstractCompositeView

getView

public View getView(Object id)
Description copied from interface: CompositeView
Gets a component view from an id object.

Specified by:
getView in interface CompositeView
Overrides:
getView in class AbstractCompositeView

removeAllViews

public void removeAllViews()
Description copied from interface: CompositeView
Removes all the views in this composite.

Specified by:
removeAllViews in interface CompositeView
Overrides:
removeAllViews in class AbstractCompositeView

getCustomizedGUI

public CustomizedGUI getCustomizedGUI()
Description copied from interface: CustomizedView
Returns the customized GUI, i.e. the object that contains all the parametrization of this view as built by the GUI aspect.

Specified by:
getCustomizedGUI in interface CustomizedView
Returns:
an implementation-independant object

setMenuBar

public void setMenuBar(MenuView menuBar,
                       String position)
Description copied from interface: CustomizedView
Set a menu bar to the customized.

Specified by:
setMenuBar in interface CustomizedView
Parameters:
position - (TOP||BOTTOM)

getTopMenuBar

public MenuView getTopMenuBar()

getBottomMenuBar

public MenuView getBottomMenuBar()

getLeftMenuBar

public MenuView getLeftMenuBar()

getRightMenuBar

public MenuView getRightMenuBar()

setToolBar

public void setToolBar(MenuView toolBar)
Description copied from interface: CustomizedView
Set a tool bar to the customized.

Specified by:
setToolBar in interface CustomizedView

setStatusBar

public void setStatusBar(StatusView statusBar,
                         String position)
Description copied from interface: CustomizedView
Set a status bar to the customized.

Specified by:
setStatusBar in interface CustomizedView
Parameters:
statusBar - the abstract status bar
position - (TOP||BOTTOM)

showStatus

public void showStatus(String message)
Description copied from interface: CustomizedView
Show a message on the customized's status bar.

Specified by:
showStatus in interface CustomizedView
Parameters:
message - the message to show

getPanelView

public PanelView getPanelView()
Description copied from interface: CustomizedView
Returns the content pane of the customized, i.e. a panel containing some sub-panels.

Specified by:
getPanelView in interface CustomizedView
Returns:
the view of subpanes

requestFocus

public void requestFocus()
Specified by:
requestFocus in interface CustomizedView

genHTML

public void genHTML(PrintWriter out)
             throws IOException
Description copied from interface: HTMLViewer
Generate the HTML code for the editor.

Specified by:
genHTML in interface HTMLViewer
Overrides:
genHTML in class AbstractCompositeView
Parameters:
out - the writer where to write the HTML code.
IOException

genBody

protected void genBody(PrintWriter out)
                throws IOException
Description copied from class: AbstractView
Override this method to generate the body of an HTML page.

Overrides:
genBody in class AbstractView
IOException
See Also:
AbstractView.genPage(PrintWriter)

Contact JAC development team:
Renaud Pawlak
Lionel Seinturier
Laurent Martelli