|
TPTP 4.4.0 Monitoring Tools Project Internal API Specification |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.eclipse.tptp.wsdm.tooling.editor.mrt.internal.GridFormGenerator
Base class for form-generators. Rather than subclassing ScrolledForm in JFace we subclass this. ScrolledForm is not designed for extension. Note: to use FormToolkit, org.eclipse.ui.forms must be an explicit plug-in dependency.
See http://dev.eclipse.org/viewcvs/index.cgi/~checkout~/pde-ui-home/working/EclipseForms/EclipseForms.html for info on writing forms.
| Constructor Summary | |
|---|---|
protected |
GridFormGenerator(org.eclipse.swt.widgets.Composite parent,
java.lang.String name,
int widthHint)
Creates a scrolledform with 2 colums for layouting purpose. |
| Method Summary | |
|---|---|
protected org.eclipse.swt.widgets.Composite |
createSection(java.lang.String title,
java.lang.String descr)
Create an Eclipse-looking form section, with twistie rollup feature. |
protected org.eclipse.swt.widgets.Composite |
createSection(java.lang.String title,
java.lang.String descr,
int colspan,
int rowspan)
Create an Eclipse-looking form section, with twistie rollup feature. |
org.eclipse.ui.forms.widgets.ScrolledForm |
getForm()
Returns the ScrolledForm. |
java.lang.String |
getTitle()
Returns the title of the Form. |
protected org.eclipse.ui.forms.widgets.FormToolkit |
getToolkit()
Returns the toolkit of the form. |
protected boolean |
showOkDialog(java.lang.String title,
java.lang.String msg,
int dlgType)
Shows the message dialog and an OK button |
protected int |
showOkDialog(java.lang.String title,
java.lang.String msg,
int dlgType,
int numberOfButtons)
Shows the message dialog and an OK button |
protected void |
showUnimplementedDialog()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
protected GridFormGenerator(org.eclipse.swt.widgets.Composite parent,
java.lang.String name,
int widthHint)
parent - - The composite which should be used for drawing the formname - - name of the form| Method Detail |
public org.eclipse.ui.forms.widgets.ScrolledForm getForm()
public java.lang.String getTitle()
protected org.eclipse.ui.forms.widgets.FormToolkit getToolkit()
protected org.eclipse.swt.widgets.Composite createSection(java.lang.String title,
java.lang.String descr)
title - - String that provides the title of the sectiondescr - - String that provides the description of the section
protected org.eclipse.swt.widgets.Composite createSection(java.lang.String title,
java.lang.String descr,
int colspan,
int rowspan)
title - - String that provides the title of the sectiondescr - - String that provides the description of the sectioncolspan - - int that gives the column span valuerowspan - - int value to specify the row span valueprotected void showUnimplementedDialog()
protected boolean showOkDialog(java.lang.String title,
java.lang.String msg,
int dlgType)
title - - Title of the dialogmsg - - Message to be displayeddlgType - - Whether info/warning/error, etc.
protected int showOkDialog(java.lang.String title,
java.lang.String msg,
int dlgType,
int numberOfButtons)
title - - Title of the dialogmsg - - Message to be displayeddlgType - - Whether info/warning/error, etc.numberOfButtons - - Number of buttons - 1:OK, 2:OK,Cancel
|
TPTP 4.4.0 Monitoring Tools Project Internal API Specification |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||