portal.comp.desktop
Class Window

java.lang.Object
  extended byportal.core.api.Component
      extended byportal.comp.desktop.Window
All Implemented Interfaces:
Renderable, java.io.Serializable
Direct Known Subclasses:
Dialog, Frame, RootWindow

public abstract class Window
extends Component

See Also:
Serialized Form

Nested Class Summary
 class Window.MyWindowListener
           
 
Constructor Summary
Window()
           
Window(java.lang.String name)
           
 
Method Summary
 void addWindowListener(WindowListener listener)
           
 void close()
           
 void draw(HtmlGraphics graphics)
          With this method the component can render itself using the passed HtmlGraphics object.
 Panel getContentPanel()
           
 java.lang.String getTitle()
           
 boolean hasDialog()
           
 void removeWindowListener(WindowListener listener)
           
 void setContentPanel(Panel panel)
           
 void setTitle(java.lang.String string)
           
abstract  void show()
           
 
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

Window

public Window()

Window

public Window(java.lang.String name)
Method Detail

show

public abstract void show()

close

public void close()

getTitle

public java.lang.String getTitle()

setTitle

public void setTitle(java.lang.String string)

getContentPanel

public Panel getContentPanel()

setContentPanel

public void setContentPanel(Panel panel)

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

hasDialog

public boolean hasDialog()

addWindowListener

public void addWindowListener(WindowListener listener)

removeWindowListener

public void removeWindowListener(WindowListener listener)