Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 


Eclipse Platform
Release 3.5

org.eclipse.ui.forms
Class SectionPart

java.lang.Object
  extended by 

org.eclipse.ui.forms.AbstractFormPart
      extended by 
org.eclipse.ui.forms.SectionPart
All Implemented Interfaces:
IFormPart

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.

Since:
3.0
See Also:
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 ()
          Adds listeners to the underlying widget.
 void setFocus ()
          Instructs the part 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

SectionPart

public SectionPart(
Section section)
Creates a new section part based on the provided section.

Parameters:
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.

Parameters:
parent - the parent
toolkit - the toolkit to use
style - the section widget style
Method Detail

hookListeners

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


getSection

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

Returns:
the section widget

expansionStateChanging

protected void expansionStateChanging(boolean expanding)
The section is about to expand or collapse.

Parameters:
expanding - true for expansion, false for collapse.

expansionStateChanged

protected void expansionStateChanged(boolean expanded)
The section has expanded or collapsed.

Parameters:
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
Overrides:
setFocus in class AbstractFormPart

Eclipse Platform
Release 3.5

Guidelines for using Eclipse APIs.

Copyright (c) Eclipse contributors and others 2000, 2008. All rights reserved.


 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire