g-Eclipse
Release 1.0.0

eu.geclipse.ui.views.jobdetails
Class JobDetailSectionsManager

java.lang.Object
  extended by eu.geclipse.ui.views.jobdetails.JobDetailSectionsManager

public class JobDetailSectionsManager
extends java.lang.Object

Manager of IJobDetailsSections


Nested Class Summary
static class JobDetailSectionsManager.SectionOrder
          Enum specifying order in which sections appears in view
 
Constructor Summary
JobDetailSectionsManager(Composite parent, IViewConfiguration viewConfiguration)
           
 
Method Summary
 java.lang.Integer createSection(java.lang.String name, int order)
           
 java.lang.Integer createSection(java.lang.String name, int order, boolean lazy)
           
 IJobDetailsSection getSection(java.lang.Integer sectionId)
          Return already created section.
 IJobDetailsSection getSectionApplication()
           
 IJobDetailsSection getSectionGeneral()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JobDetailSectionsManager

public JobDetailSectionsManager(Composite parent,
                                IViewConfiguration viewConfiguration)
Parameters:
parent - on which IJobDetailsSections should be created
viewConfiguration - the configuration of view, to which manager is connected
Method Detail

getSection

public IJobDetailsSection getSection(java.lang.Integer sectionId)
Return already created section. If section with given id wasn't created yet (returned null), then please call createSection(String, int)

Parameters:
sectionId - identifier returned from createSection(String, int)
Returns:
section, or null if section wasn't created yet.

createSection

public java.lang.Integer createSection(java.lang.String name,
                                       int order,
                                       boolean lazy)
Parameters:
name - name for section
order -
lazy - true if section should be collapsed after creation, and refresh for details will be called after expansion by user
Returns:
created section ID

createSection

public java.lang.Integer createSection(java.lang.String name,
                                       int order)
Parameters:
name - name for section
order -
Returns:
created section ID

getSectionGeneral

public IJobDetailsSection getSectionGeneral()
Returns:
general section

getSectionApplication

public IJobDetailsSection getSectionApplication()
Returns:
section

g-Eclipse
Release 1.0.0