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, setFormInput
public 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()
AbstractFormPart
setFocus
in interface IFormPart
setFocus
in class AbstractFormPart
Copyright (c) 2000, 2015 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.