public class SectionPart extends AbstractFormPart
Subclasses should extend SectionPart and implement life cycle
methods like refresh, commit,
setFocus etc. Note that most of these methods are not empty -
calling super is required.
Section| Constructor and Description |
|---|
SectionPart(Composite parent,
FormToolkit toolkit,
int style)
Creates a new section part inside the provided parent and using the
provided toolkit.
|
SectionPart(Section section)
Creates a new section part based on the provided section.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
expansionStateChanged(boolean expanded)
The section has expanded or collapsed.
|
protected void |
expansionStateChanging(boolean expanding)
The section is about to expand or collapse.
|
Section |
getSection()
Returns the section widget used in this part.
|
protected void |
hookListeners()
Adds listeners to the underlying widget.
|
void |
setFocus()
Instructs the part to grab keyboard focus.
|
commit, dispose, getManagedForm, initialize, isDirty, isStale, markDirty, markStale, refresh, setFormInputpublic SectionPart(Section section)
section - the section to usepublic SectionPart(Composite parent, FormToolkit toolkit, int style)
parent - the parenttoolkit - the toolkit to usestyle - the section widget styleprotected void hookListeners()
public Section getSection()
protected void expansionStateChanging(boolean expanding)
expanding - true for expansion, false for
collapse.protected void expansionStateChanged(boolean expanded)
expanded - true for expansion, false for
collapse.public void setFocus()
AbstractFormPartsetFocus in interface IFormPartsetFocus in class AbstractFormPartGuidelines for using Eclipse APIs. Copyright (c) IBM Corp. and others 2000, 2006. All rights reserved.