portal.comp.desktop
Class Desktop

java.lang.Object
  extended byportal.core.api.Component
      extended byportal.comp.desktop.Desktop
All Implemented Interfaces:
Renderable, java.io.Serializable

public class Desktop
extends Component

See Also:
Serialized Form

Nested Class Summary
 class Desktop.MyWindowListener
           
 
Constructor Summary
Desktop()
           
Desktop(FrameRenderer frameRenderer)
           
Desktop(java.lang.String name)
           
Desktop(java.lang.String name, FrameRenderer frameRenderer)
           
 
Method Summary
 void addDesktopListener(DesktopListener listener)
           
 void addFrame(Frame frame)
           
 void draw(HtmlGraphics graphics)
          With this method the component can render itself using the passed HtmlGraphics object.
 boolean hasFrames()
           
 void removeDesktopListener(DesktopListener listener)
           
 void setActiveFrame(Frame frame)
           
 void setFrameRenderer(FrameRenderer frameRenderer)
           
 void setRootFrame(Frame frame)
           
 
Methods inherited from class portal.core.api.Component
afterRender, beforeRender, createDefaultModel, getLayout, getModel, getParent, isEnabled, isVisible, render, setEnabled, setLayout, setModel, setParent, setVisible, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Desktop

public Desktop()

Desktop

public Desktop(java.lang.String name)

Desktop

public Desktop(FrameRenderer frameRenderer)

Desktop

public Desktop(java.lang.String name,
               FrameRenderer frameRenderer)
Method Detail

setFrameRenderer

public void setFrameRenderer(FrameRenderer frameRenderer)

setRootFrame

public void setRootFrame(Frame frame)

addFrame

public void addFrame(Frame frame)

setActiveFrame

public void setActiveFrame(Frame frame)

hasFrames

public boolean hasFrames()

draw

public final void draw(HtmlGraphics graphics)
                throws RenderException
Description copied from class: Component

With this method the component can render itself using the passed HtmlGraphics object. This method is not called when a layout manager is set since the existence of a layout manager takes precedence above the draw() method.

Overrides:
draw in class Component
Parameters:
graphics - the html graphics instance to use for drawing this component
Throws:
RenderException - when the rendering process could not proceed or encountered an error

addDesktopListener

public void addDesktopListener(DesktopListener listener)

removeDesktopListener

public void removeDesktopListener(DesktopListener listener)