FreeHEP API
Version current

org.freehep.application.mdi
Class PageContext

java.lang.Object
  extended byorg.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,v 1.4 2002/08/29 01:33:16 tonyj Exp $
Author:
Tony Johnson (tonyj@slac.stanford.edu)
Source Code:
PageContext.java

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()
           
 
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()

FreeHEP API
Version current

Copyright © 2000-2004 FreeHEP, All Rights Reserved.