public class PageContext extends Object
PageManager
.
Keeps information about the page properties and state.
Allows the user to interact with a page in an abstract way.
Keeps a list of listeners that should be notified of changes in the page state.Modifier and Type | Method and Description |
---|---|
void |
addPageListener(PageListener listener)
Adds a page listener to receive notifications of user initiated changes.
|
void |
close()
Closes this page.
|
Icon |
getIcon()
Returns the icon associated with the page.
|
Component |
getPage()
Returns the component associated with this page.
|
String |
getTitle()
Returns the name associated with the page.
|
void |
removePageListener(PageListener listener)
Remove a previously installed PageListener
|
void |
requestShow()
Requests that the associated page be shown.
|
void |
setIcon(Icon icon)
Sets the icon associated with this page.
|
void |
setTitle(String title)
Sets the title of this page.
|
String |
toString() |
String |
type()
Returns the type of this page.
|
public void addPageListener(PageListener listener)
listener
- The PageListener to installpublic void removePageListener(PageListener listener)
listener
- The PageListener to removepublic void requestShow()
public void close()
public Component getPage()
public String getTitle()
public Icon getIcon()
public void setTitle(String title)
public void setIcon(Icon icon)
public String type()
Copyright © 2000–2015 FreeHEP. All rights reserved.