|
Eclipse Platform Release 3.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.ui.forms.AbstractFormPart
org.eclipse.ui.forms.SectionPart
Section part implements IFormPart interface based on the Section widget. It can either wrap the widget or create one itself.
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 Summary | |
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. |
Method Summary | |
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()
|
void |
setFocus()
Instructs the section to grab keyboard focus. |
Methods inherited from class org.eclipse.ui.forms.AbstractFormPart |
commit, dispose, getManagedForm, initialize, isDirty, isStale, markDirty, markStale, refresh, setFormInput |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
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 styleMethod Detail |
protected 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()
setFocus
in interface IFormPart
setFocus
in class AbstractFormPart
|
Eclipse Platform Release 3.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp. and others 2000, 2004. All rights reserved.