g-Eclipse
Release 1.0.0

eu.geclipse.ui.views.jobdetails
Class JobDetailsSection

java.lang.Object
  extended by eu.geclipse.ui.views.jobdetails.JobDetailsSection
All Implemented Interfaces:
IJobDetailsSection

public class JobDetailsSection
extends java.lang.Object
implements IJobDetailsSection


Constructor Summary
JobDetailsSection(java.lang.String name, int order, IViewConfiguration viewConfiguration, boolean lazy)
           
 
Method Summary
 void addDetail(IJobDetail detail)
          Puts detail to section
 void dispose()
          Disposes widgets created in section
 java.util.List<IJobDetail> getDetails()
           
 IGridJob getInputJob()
           
 int getOrder()
           
 IViewConfiguration getViewConfiguration()
           
 void refresh(IGridJob gridJob, Composite parent)
          Refresh all items in section using gridJob.
 void removeDetail(IJobDetail detail)
          Removes detail from section
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JobDetailsSection

public JobDetailsSection(java.lang.String name,
                         int order,
                         IViewConfiguration viewConfiguration,
                         boolean lazy)
Parameters:
name - section name
order - value used to sort sections before creation
viewConfiguration - the configuration of view
lazy - true if section should be collapsed after creation, and refresh for details will be called after expansion by user
Method Detail

getOrder

public int getOrder()
Specified by:
getOrder in interface IJobDetailsSection
Returns:
position, on which section will be visibled in JobDetailsView

refresh

public void refresh(IGridJob gridJob,
                    Composite parent)
Description copied from interface: IJobDetailsSection
Refresh all items in section using gridJob. Also creates section widgets if haven't created yet.

Specified by:
refresh in interface IJobDetailsSection
Parameters:
gridJob - refreshed job
parent - parent, on which widgets should be created

addDetail

public void addDetail(IJobDetail detail)
Description copied from interface: IJobDetailsSection
Puts detail to section

Specified by:
addDetail in interface IJobDetailsSection

removeDetail

public void removeDetail(IJobDetail detail)
Description copied from interface: IJobDetailsSection
Removes detail from section

Specified by:
removeDetail in interface IJobDetailsSection

dispose

public void dispose()
Description copied from interface: IJobDetailsSection
Disposes widgets created in section

Specified by:
dispose in interface IJobDetailsSection

getDetails

public java.util.List<IJobDetail> getDetails()
Specified by:
getDetails in interface IJobDetailsSection
Returns:
details currently shown in section

getInputJob

public IGridJob getInputJob()
Specified by:
getInputJob in interface IJobDetailsSection
Returns:
the job currently shown in view

getViewConfiguration

public IViewConfiguration getViewConfiguration()
Specified by:
getViewConfiguration in interface IJobDetailsSection
Returns:
current configuration of Job Details View

g-Eclipse
Release 1.0.0