TPTP 4.3.0 Monitoring Tools Project
Internal API Specification

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

java.lang.Object
  extended byorg.eclipse.tptp.wsdm.tooling.editor.ui.internal.AbstractPageSection
All Implemented Interfaces:
IPageSection
Direct Known Subclasses:
CardinalitySection, DetailsSection, DetailsSection, DetailsSection, DetailsSection, ExceptionSection, ListSection, ListSection, ListSection, MetricsSection, MutabilitySection, ParamSection

public abstract class AbstractPageSection
extends java.lang.Object
implements IPageSection

Abstract class to handle most of the functionality of a Page Section.

See Also:
org.eclipse.tptp.wsdm.tooling.editor.capability.internal.pages.overview.DetailsSection, org.eclipse.tptp.wsdm.tooling.editor.capability.internal.pages.property.CardinalitySection, org.eclipse.tptp.wsdm.tooling.editor.capability.internal.pages.operation.ParamSection, org.eclipse.tptp.wsdm.tooling.editor.capability.internal.pages.topic.ListSection

Field Summary
protected  CapabilityEditor _editor
           
protected  IUIPage _page
           
protected  int LAYOUT_HORIZONTAL_SPACING
           
protected  int LAYOUT_MARGIN_WIDTH
           
protected  int LAYOUT_VERTICAL_SPACING
           
 
Constructor Summary
AbstractPageSection(CapabilityEditor editor, IUIPage page, org.eclipse.ui.forms.widgets.ScrolledForm form, org.eclipse.ui.forms.widgets.FormToolkit toolkit)
          Creates a new object of this class.
 
Method Summary
abstract  void create()
          Creates the section.
protected  org.eclipse.swt.widgets.Button createPushButton(org.eclipse.swt.widgets.Composite panel, org.eclipse.ui.forms.widgets.FormToolkit toolkit, java.lang.String msg, org.eclipse.swt.widgets.Listener listener)
          Creats a new push button.
 org.eclipse.swt.widgets.Composite createSection(java.lang.String title, java.lang.String descr)
          Creates the section.
 org.eclipse.swt.widgets.Composite createSection(java.lang.String title, java.lang.String descr, int colspan, int rowspan)
          Creates the section.
 org.eclipse.ui.forms.widgets.ScrolledForm getForm()
          Returns the ScrolledForm.
 IUIPage getPage()
          Returns the UI page of this section.
 java.lang.String getTitle()
          Returns the title of the form.
 org.eclipse.ui.forms.widgets.FormToolkit getToolkit()
          Returns the FormToolkit.
 void pageChange(int newPageIndex)
          Gives the indication of page change event.
abstract  void refresh()
          Refreshes the section.
 
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.IPageSection
enable, hookAllListeners, selectionChanged, setSelectedObject
 

Field Detail

LAYOUT_MARGIN_WIDTH

protected final int LAYOUT_MARGIN_WIDTH
See Also:
Constant Field Values

LAYOUT_VERTICAL_SPACING

protected final int LAYOUT_VERTICAL_SPACING
See Also:
Constant Field Values

LAYOUT_HORIZONTAL_SPACING

protected final int LAYOUT_HORIZONTAL_SPACING
See Also:
Constant Field Values

_editor

protected CapabilityEditor _editor

_page

protected IUIPage _page
Constructor Detail

AbstractPageSection

public AbstractPageSection(CapabilityEditor editor,
                           IUIPage page,
                           org.eclipse.ui.forms.widgets.ScrolledForm form,
                           org.eclipse.ui.forms.widgets.FormToolkit toolkit)
Creates a new object of this class.

Method Detail

getForm

public org.eclipse.ui.forms.widgets.ScrolledForm getForm()
Returns the ScrolledForm.

Specified by:
getForm in interface IPageSection

getTitle

public java.lang.String getTitle()
Returns the title of the form.

Specified by:
getTitle in interface IPageSection

getToolkit

public org.eclipse.ui.forms.widgets.FormToolkit getToolkit()
Returns the FormToolkit.

Specified by:
getToolkit in interface IPageSection

getPage

public IUIPage getPage()
Returns the UI page of this section.

Specified by:
getPage in interface IPageSection

createSection

public org.eclipse.swt.widgets.Composite createSection(java.lang.String title,
                                                       java.lang.String descr)
Creates the section.

Specified by:
createSection in interface IPageSection

createSection

public org.eclipse.swt.widgets.Composite createSection(java.lang.String title,
                                                       java.lang.String descr,
                                                       int colspan,
                                                       int rowspan)
Creates the section.

Specified by:
createSection in interface IPageSection

createPushButton

protected org.eclipse.swt.widgets.Button createPushButton(org.eclipse.swt.widgets.Composite panel,
                                                          org.eclipse.ui.forms.widgets.FormToolkit toolkit,
                                                          java.lang.String msg,
                                                          org.eclipse.swt.widgets.Listener listener)
Creats a new push button.


create

public abstract void create()
Creates the section.

Specified by:
create in interface IPageSection

refresh

public abstract void refresh()
Refreshes the section.

Specified by:
refresh in interface IPageSection

pageChange

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

Specified by:
pageChange in interface IPageSection

TPTP 4.3.0 Monitoring Tools Project
Internal API Specification