Package org.eclipse.ui.forms
Class SectionPart
java.lang.Object
org.eclipse.ui.forms.AbstractFormPart
org.eclipse.ui.forms.SectionPart
- All Implemented Interfaces:
- IFormPart
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.
- Since:
- 3.0
- See Also:
- 
Constructor SummaryConstructorsConstructorDescriptionSectionPart(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 SummaryModifier and TypeMethodDescriptionprotected voidexpansionStateChanged(boolean expanded) The section has expanded or collapsed.protected voidexpansionStateChanging(boolean expanding) The section is about to expand or collapse.Returns the section widget used in this part.protected voidAdds listeners to the underlying widget.voidsetFocus()Instructs the part to grab keyboard focus.Methods inherited from class org.eclipse.ui.forms.AbstractFormPartcommit, dispose, getManagedForm, initialize, isDirty, isStale, markDirty, markStale, refresh, setFormInput
- 
Constructor Details- 
SectionPartCreates a new section part based on the provided section.- Parameters:
- section- the section to use
 
- 
SectionPartCreates a new section part inside the provided parent and using the provided toolkit. The section part will create the section widget.- Parameters:
- parent- the parent
- toolkit- the toolkit to use
- style- the section widget style
 
 
- 
- 
Method Details- 
hookListenersprotected void hookListeners()Adds listeners to the underlying widget.
- 
getSectionReturns the section widget used in this part.- Returns:
- the section widget
 
- 
expansionStateChangingprotected void expansionStateChanging(boolean expanding) The section is about to expand or collapse.- Parameters:
- expanding-- truefor expansion,- falsefor collapse.
 
- 
expansionStateChangedprotected void expansionStateChanged(boolean expanded) The section has expanded or collapsed.- Parameters:
- expanded-- truefor expansion,- falsefor collapse.
 
- 
setFocuspublic void setFocus()Description copied from class:AbstractFormPartInstructs the part to grab keyboard focus.- Specified by:
- setFocusin interface- IFormPart
- Overrides:
- setFocusin class- AbstractFormPart
 
 
-