TPTP 4.5.0 Testing Tools Project
Internal API Specification

org.eclipse.hyades.test.ui.internal.editor.form.base
Class AbstractSectionForm

java.lang.Object
  extended by org.eclipse.hyades.test.ui.internal.editor.form.base.AbstractForm
      extended by org.eclipse.hyades.test.ui.internal.editor.form.base.AbstractSectionForm
All Implemented Interfaces:
java.util.EventListener, IForm, org.eclipse.jface.util.IPropertyChangeListener
Direct Known Subclasses:
SectionForm

public abstract class AbstractSectionForm
extends AbstractForm

This form class understands form sections. It assumes that they are part of the form and it offers life cycle handling of sections once they are registered.


Field Summary
static int H_SCROLL_INCREMENT
           
protected  java.util.Vector sections
           
static int V_SCROLL_INCREMENT
           
 
Fields inherited from class org.eclipse.hyades.test.ui.internal.editor.form.base.AbstractForm
factory, headingBackground, headingForeground, headingImage, headingText, headingVisible, titleFont
 
Constructor Summary
AbstractSectionForm()
           
 
Method Summary
 boolean canPaste(org.eclipse.swt.dnd.Clipboard clipboard)
           
 void commitChanges(boolean onSave)
           
 void dispose()
           
 boolean doGlobalAction(java.lang.String actionId)
           
static void ensureVisible(org.eclipse.swt.custom.ScrolledComposite scomp, org.eclipse.swt.widgets.Control control)
           
static void ensureVisible(org.eclipse.swt.custom.ScrolledComposite scomp, org.eclipse.swt.graphics.Point controlOrigin, org.eclipse.swt.graphics.Point controlSize)
           
static org.eclipse.swt.graphics.Point getControlLocation(org.eclipse.swt.custom.ScrolledComposite scomp, org.eclipse.swt.widgets.Control control)
           
protected  org.eclipse.swt.widgets.Control getFocusControl()
           
 void initialize(java.lang.Object model)
           
 void registerSection(FormSection section)
           
static void scrollHorizontal(org.eclipse.swt.custom.ScrolledComposite scomp, boolean left)
           
static void scrollPage(org.eclipse.swt.custom.ScrolledComposite scomp, boolean up)
           
static void scrollVertical(org.eclipse.swt.custom.ScrolledComposite scomp, boolean up)
           
 void setFocus()
           
 void unregisterSection(FormSection section)
           
 void update()
           
static void updatePageIncrement(org.eclipse.swt.custom.ScrolledComposite scomp)
           
 
Methods inherited from class org.eclipse.hyades.test.ui.internal.editor.form.base.AbstractForm
canPerformDirectly, createControl, expandTo, getControl, getFactory, getHeadingBackground, getHeadingForeground, getHeadingImage, getHeadingText, isHeadingVisible, setHeadingBackground, setHeadingForeground, setHeadingImage, setHeadingText, setHeadingVisible, updateHyperlinkColors
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.eclipse.jface.util.IPropertyChangeListener
propertyChange
 

Field Detail

H_SCROLL_INCREMENT

public static final int H_SCROLL_INCREMENT
See Also:
Constant Field Values

V_SCROLL_INCREMENT

public static final int V_SCROLL_INCREMENT
See Also:
Constant Field Values

sections

protected java.util.Vector sections
Constructor Detail

AbstractSectionForm

public AbstractSectionForm()
Method Detail

registerSection

public void registerSection(FormSection section)
Specified by:
registerSection in interface IForm
Overrides:
registerSection in class AbstractForm
See Also:
IForm.registerSection(FormSection)

unregisterSection

public void unregisterSection(FormSection section)

initialize

public void initialize(java.lang.Object model)
Specified by:
initialize in interface IForm
Overrides:
initialize in class AbstractForm
See Also:
IForm.initialize(Object)

setFocus

public void setFocus()
Specified by:
setFocus in interface IForm
Overrides:
setFocus in class AbstractForm
See Also:
IForm.setFocus()

update

public void update()
Specified by:
update in interface IForm
Overrides:
update in class AbstractForm
See Also:
IForm.update()

commitChanges

public void commitChanges(boolean onSave)
Specified by:
commitChanges in interface IForm
Overrides:
commitChanges in class AbstractForm
See Also:
IForm.commitChanges(boolean)

doGlobalAction

public boolean doGlobalAction(java.lang.String actionId)
Specified by:
doGlobalAction in interface IForm
Overrides:
doGlobalAction in class AbstractForm
See Also:
IForm.doGlobalAction(String)

getFocusControl

protected org.eclipse.swt.widgets.Control getFocusControl()

canPaste

public boolean canPaste(org.eclipse.swt.dnd.Clipboard clipboard)

dispose

public void dispose()
Specified by:
dispose in interface IForm
Overrides:
dispose in class AbstractForm
See Also:
IForm.dispose()

ensureVisible

public static void ensureVisible(org.eclipse.swt.custom.ScrolledComposite scomp,
                                 org.eclipse.swt.widgets.Control control)

ensureVisible

public static void ensureVisible(org.eclipse.swt.custom.ScrolledComposite scomp,
                                 org.eclipse.swt.graphics.Point controlOrigin,
                                 org.eclipse.swt.graphics.Point controlSize)

getControlLocation

public static org.eclipse.swt.graphics.Point getControlLocation(org.eclipse.swt.custom.ScrolledComposite scomp,
                                                                org.eclipse.swt.widgets.Control control)

scrollVertical

public static void scrollVertical(org.eclipse.swt.custom.ScrolledComposite scomp,
                                  boolean up)

scrollHorizontal

public static void scrollHorizontal(org.eclipse.swt.custom.ScrolledComposite scomp,
                                    boolean left)

scrollPage

public static void scrollPage(org.eclipse.swt.custom.ScrolledComposite scomp,
                              boolean up)

updatePageIncrement

public static void updatePageIncrement(org.eclipse.swt.custom.ScrolledComposite scomp)

TPTP 4.5.0 Testing Tools Project
Internal API Specification