TPTP 4.4.0 Monitoring Tools Project
Internal API Specification

org.eclipse.tptp.wsdm.tooling.editor.ui.internal
Class AbstractPage

java.lang.Object
  extended byorg.eclipse.tptp.wsdm.tooling.editor.ui.internal.AbstractPage
All Implemented Interfaces:
IPage, org.eclipse.ui.IPropertyListener
Direct Known Subclasses:
AbstractSourcePage, AbstractUIPage

public abstract class AbstractPage
extends java.lang.Object
implements IPage

Abstract class to handle most of the functionality of a page.

See Also:
AbstractUIPage

Field Summary
protected  org.eclipse.swt.widgets.Display _display
           
protected  AbstractCapabilityEditor _editor
           
protected  boolean _isDirty
           
 
Constructor Summary
AbstractPage(AbstractCapabilityEditor editor)
          Creates a new object of this class.
 
Method Summary
abstract  void create()
          Creates the page.
abstract  void hookAllListeners()
          Initializes the listeners for the page.
 boolean isDirty()
          Returns true if page is dirty.
abstract  void pageChange(int newPageIndex)
          Gives the indication of page change event.
abstract  void refresh()
          Refreshes the page.
 void save()
          Save the page.
 void setDirty()
          Set the page dirty.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.eclipse.tptp.wsdm.tooling.editor.ui.internal.IPage
getControl
 
Methods inherited from interface org.eclipse.ui.IPropertyListener
propertyChanged
 

Field Detail

_editor

protected AbstractCapabilityEditor _editor

_isDirty

protected boolean _isDirty

_display

protected org.eclipse.swt.widgets.Display _display
Constructor Detail

AbstractPage

public AbstractPage(AbstractCapabilityEditor editor)
Creates a new object of this class.

Method Detail

isDirty

public boolean isDirty()
Returns true if page is dirty.

Specified by:
isDirty in interface IPage

setDirty

public void setDirty()
Set the page dirty.

Specified by:
setDirty in interface IPage

save

public void save()
Save the page.

Specified by:
save in interface IPage

create

public abstract void create()
Creates the page.

Specified by:
create in interface IPage

hookAllListeners

public abstract void hookAllListeners()
Initializes the listeners for the page.

Specified by:
hookAllListeners in interface IPage

refresh

public abstract void refresh()
Refreshes the page.

Specified by:
refresh in interface IPage

pageChange

public abstract void pageChange(int newPageIndex)
Gives the indication of page change event.

Specified by:
pageChange in interface IPage

TPTP 4.4.0 Monitoring Tools Project
Internal API Specification