com.opnworks.timesheet.client.views
Class TimesheetView

java.lang.Object
  extended byorg.eclipse.ui.part.WorkbenchPart
      extended byorg.eclipse.ui.part.ViewPart
          extended bycom.opnworks.timesheet.client.views.TimesheetView
All Implemented Interfaces:
org.eclipse.core.runtime.IAdaptable, org.eclipse.core.runtime.IExecutableExtension, org.eclipse.ui.IViewPart, org.eclipse.ui.IWorkbenchPart, org.eclipse.ui.IWorkbenchPart2

public class TimesheetView
extends org.eclipse.ui.part.ViewPart

Author:
Mirasol OpnWorks

Field Summary
static java.lang.String ID
          Description of the Field
 
Fields inherited from interface org.eclipse.ui.IWorkbenchPart
PROP_TITLE
 
Constructor Summary
TimesheetView()
          The constructor.
 
Method Summary
 void addWidgets(org.eclipse.swt.widgets.Composite composite)
          This is a callback that will allow us to create the viewer and initialize it.
 void createPartControl(org.eclipse.swt.widgets.Composite parent)
          This is a callback that will allow us to create the viewer and initialize it.
 java.lang.String[] getChoices(java.lang.String property)
           
 java.util.List getColumnNames()
           
static TimesheetView getInstance()
          Gets the Instance attribute of the TimesheetView class
 org.eclipse.jface.viewers.TableViewer getTableViewer()
           
 Timesheet getTimesheet()
           
 void setFocus()
          Passing the focus request to the viewer's control.
 void setTimesheet(Timesheet newTimesheet)
           
 
Methods inherited from class org.eclipse.ui.part.ViewPart
getViewSite, init, init, saveState, setInitializationData
 
Methods inherited from class org.eclipse.ui.part.WorkbenchPart
addPropertyListener, dispose, getAdapter, getContentDescription, getPartName, getSite, getTitle, getTitleImage, getTitleToolTip, removePropertyListener, showBusy
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.eclipse.ui.IWorkbenchPart
addPropertyListener, dispose, getSite, getTitle, getTitleImage, getTitleToolTip, removePropertyListener
 
Methods inherited from interface org.eclipse.core.runtime.IAdaptable
getAdapter
 

Field Detail

ID

public static java.lang.String ID
Description of the Field

Constructor Detail

TimesheetView

public TimesheetView()
The constructor.

Method Detail

setFocus

public void setFocus()
Passing the focus request to the viewer's control.


setTimesheet

public void setTimesheet(Timesheet newTimesheet)
Parameters:
newTimesheet - The new Timesheet value

getTimesheet

public Timesheet getTimesheet()
Returns:

getColumnNames

public java.util.List getColumnNames()
Returns:
The ColumnNames value

getChoices

public java.lang.String[] getChoices(java.lang.String property)
Parameters:
property -
Returns:

getTableViewer

public org.eclipse.jface.viewers.TableViewer getTableViewer()
Returns:

createPartControl

public void createPartControl(org.eclipse.swt.widgets.Composite parent)
This is a callback that will allow us to create the viewer and initialize it.

Parameters:
parent - Description of Parameter

addWidgets

public void addWidgets(org.eclipse.swt.widgets.Composite composite)
This is a callback that will allow us to create the viewer and initialize it.

Parameters:
composite - The feature to be added to the Widgets attribute

getInstance

public static TimesheetView getInstance()
Gets the Instance attribute of the TimesheetView class

Returns:
The Instance value