public class SectionPart extends AbstractEditorPart
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() |
SectionPart(int style) |
SectionPart(org.eclipse.ui.forms.widgets.Section section)
Creates a new section part based on the provided section.
|
| Modifier and Type | Method and Description |
|---|---|
void |
createContents(org.eclipse.swt.widgets.Composite parent) |
protected void |
expansionStateChanged(boolean expanded)
The section has expanded or collapsed.
|
protected void |
expansionStateChanging(boolean expanding)
The section is about to expand or collapse.
|
org.eclipse.ui.forms.widgets.Section |
getSection()
Returns the section widget used in this part.
|
protected void |
hookListeners()
Adds listeners to the underlying widget.
|
boolean |
setFocus() |
void |
setInput(Object input) |
activate, addPart, addPart, addTextBorder, asyncExec, commit, commitParts, deactivate, dispose, disposeParts, getForm, getIgnoreChanges, getParts, getShell, getWidgetFactory, initialize, initialize, isDirty, isStale, refresh, refreshParts, removePart, setDirty, setEditorInput, setIgnoreChanges, setStale, syncExecpublic SectionPart(org.eclipse.ui.forms.widgets.Section section)
section - the section to usepublic SectionPart(int style)
public SectionPart()
public void createContents(org.eclipse.swt.widgets.Composite parent)
public void setInput(Object input)
setInput in interface IEditorPartsetInput in class AbstractEditorPartprotected void hookListeners()
public org.eclipse.ui.forms.widgets.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 boolean setFocus()
setFocus in interface IEditorPartsetFocus in class AbstractEditorPartCopyright © 2022 Fraunhofer IWU. All rights reserved.