Class SectionPart

All Implemented Interfaces:

public class SectionPart extends AbstractFormPart
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.

See Also:
  • Constructor Details

    • SectionPart

      public SectionPart(Section section)
      Creates a new section part based on the provided section.
      section - the section to use
    • SectionPart

      public SectionPart(Composite parent, FormToolkit toolkit, int style)
      Creates a new section part inside the provided parent and using the provided toolkit. The section part will create the section widget.
      parent - the parent
      toolkit - the toolkit to use
      style - the section widget style
  • Method Details

    • hookListeners

      protected void hookListeners()
      Adds listeners to the underlying widget.
    • getSection

      public Section getSection()
      Returns the section widget used in this part.
      the section widget
    • expansionStateChanging

      protected void expansionStateChanging(boolean expanding)
      The section is about to expand or collapse.
      expanding - true for expansion, false for collapse.
    • expansionStateChanged

      protected void expansionStateChanged(boolean expanded)
      The section has expanded or collapsed.
      expanded - true for expansion, false for collapse.
    • setFocus

      public void setFocus()
      Description copied from class: AbstractFormPart
      Instructs the part to grab keyboard focus.
      Specified by:
      setFocus in interface IFormPart
      setFocus in class AbstractFormPart