|
|||||||||
| Home >> All >> org >> eclipse >> ui >> [ part overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
org.eclipse.ui.part
Class Page

java.lang.Objectorg.eclipse.ui.part.Page
- All Implemented Interfaces:
- IPage, IPageBookViewPage
- Direct Known Subclasses:
- MessagePage
- public abstract class Page
- extends java.lang.Object
- implements IPageBookViewPage
- extends java.lang.Object
Abstract base superclass for pages in a pagebook view.
This class should be subclassed by clients wishing to define new types of pages for multi-page views.
Subclasses must implement the following methods:
createControl- to create the page's controlgetControl- to retrieve the page's control
Subclasses may extend or reimplement the following methods as required:
dispose- extend to provide additional cleanupsetFocus- reimplement to accept focussetActionBars- reimplement to make contributionsmakeContributions- this method exists to support previous versionssetActionBars- this method exists to support previous versionsinit- extend to provide additional setup
| Field Summary | |
private IPageSite |
site
The site which contains this page |
| Constructor Summary | |
protected |
Page()
|
| Method Summary | |
abstract void |
createControl(org.eclipse.swt.widgets.Composite parent)
Creates the SWT control for this page under the given parent control. |
void |
dispose()
The Page implementation of this IPage method
disposes of this page's control (if it has one and it has not already
been disposed). |
abstract org.eclipse.swt.widgets.Control |
getControl()
The Page implementation of this IPage method returns
null. |
IPageSite |
getSite()
Returns the site which contains this page. |
void |
init(IPageSite pageSite)
The Page implementation of this IPageBookViewPage method
stores a reference to the supplied site (the site which contains this
page). |
void |
makeContributions(org.eclipse.jface.action.IMenuManager menuManager,
org.eclipse.jface.action.IToolBarManager toolBarManager,
org.eclipse.jface.action.IStatusLineManager statusLineManager)
|
void |
setActionBars(org.eclipse.ui.IActionBars actionBars)
Allows the page to make contributions to the given action bars. |
abstract void |
setFocus()
The Page implementation of this IPage method
does nothing. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
site
private IPageSite site
- The site which contains this page
| Constructor Detail |
Page
protected Page()
| Method Detail |
createControl
public abstract void createControl(org.eclipse.swt.widgets.Composite parent)
- Description copied from interface:
IPage - Creates the SWT control for this page under the given parent
control.
Clients should not call this method (the workbench calls this method when it needs to, which may be never).
- Specified by:
createControlin interfaceIPage
dispose
public void dispose()
- The
Pageimplementation of thisIPagemethod disposes of this page's control (if it has one and it has not already been disposed). Subclasses may extend.
getControl
public abstract org.eclipse.swt.widgets.Control getControl()
- The
Pageimplementation of thisIPagemethod returnsnull. Subclasses must reimplement.- Specified by:
getControlin interfaceIPage
makeContributions
public void makeContributions(org.eclipse.jface.action.IMenuManager menuManager, org.eclipse.jface.action.IToolBarManager toolBarManager, org.eclipse.jface.action.IStatusLineManager statusLineManager)
setActionBars
public void setActionBars(org.eclipse.ui.IActionBars actionBars)
- Description copied from interface:
IPage - Allows the page to make contributions to the given action bars.
The contributions will be visible when the page is visible.
This method is automatically called shortly after
createControlis called- Specified by:
setActionBarsin interfaceIPage
init
public void init(IPageSite pageSite)
- The
Pageimplementation of thisIPageBookViewPagemethod stores a reference to the supplied site (the site which contains this page).Subclasses may extend.
- Specified by:
initin interfaceIPageBookViewPage
- Since:
- 2.0
getSite
public IPageSite getSite()
- Returns the site which contains this page.
- Specified by:
getSitein interfaceIPageBookViewPage
setFocus
public abstract void setFocus()
- The
Pageimplementation of thisIPagemethod does nothing. Subclasses must implement.
|
|||||||||
| Home >> All >> org >> eclipse >> ui >> [ part overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
org.eclipse.ui.part.Page