org.freehep.application.mdi
Class PageContext

java.lang.Object
  extended by org.freehep.application.mdi.PageContext

public class PageContext
extends Object

Allows the user to interact with a Page in an abstract way

Version:
$Id: PageContext.java 8584 2006-08-10 23:06:37Z duns $
Author:
Tony Johnson (tonyj@slac.stanford.edu)

Method Summary
 void addPageListener(PageListener listener)
          Add a page listener to receive notifications of user initiated changes
 void close()
          Closes the associated window
 Icon getIcon()
          Get the icon associated with the page
 Component getPage()
          Get the component associated with this page
 String getTitle()
          Get the name associated with the page
 void removePageListener(PageListener listener)
          Remove a previously installed PageListener
 void requestShow()
          Requests that the associated page be shown If the page is iconized it is deiconized, and bought to the top
 void setIcon(Icon icon)
          Set the icon associated with the window
 void setTitle(String title)
          Set the title of the window
 String toString()
           
 String type()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

addPageListener

public void addPageListener(PageListener listener)
Add a page listener to receive notifications of user initiated changes

Parameters:
listener - The PageListener to install

removePageListener

public void removePageListener(PageListener listener)
Remove a previously installed PageListener

Parameters:
listener - The PageListener to remove

requestShow

public void requestShow()
Requests that the associated page be shown If the page is iconized it is deiconized, and bought to the top


close

public void close()
Closes the associated window


getPage

public Component getPage()
Get the component associated with this page


getTitle

public String getTitle()
Get the name associated with the page


getIcon

public Icon getIcon()
Get the icon associated with the page


setTitle

public void setTitle(String title)
Set the title of the window


setIcon

public void setIcon(Icon icon)
Set the icon associated with the window


toString

public String toString()
Overrides:
toString in class Object

type

public String type()


Copyright © 2000-2006 FreeHEP. All Rights Reserved.