org.eclipse.mylar.internal.tasks.ui.planner
Class TaskActivityWizardPage

java.lang.Object
  extended by org.eclipse.jface.dialogs.DialogPage
      extended by org.eclipse.jface.wizard.WizardPage
          extended by org.eclipse.mylar.internal.tasks.ui.planner.TaskActivityWizardPage
All Implemented Interfaces:
org.eclipse.jface.dialogs.IDialogPage, org.eclipse.jface.dialogs.IMessageProvider, org.eclipse.jface.wizard.IWizardPage

public class TaskActivityWizardPage
extends org.eclipse.jface.wizard.WizardPage

Author:
Mik Kersten, Ken Sueda (original prototype), Rob Elves (categories)

Field Summary
protected  java.lang.String[] columnNames
           
private  org.eclipse.swt.widgets.Button dateRadioButton
           
private  long DAY
           
private  org.eclipse.swt.widgets.Button daysRadioButton
           
private static int DEFAULT_DAYS
           
private static java.lang.String DESCRIPTION
           
private  org.eclipse.swt.widgets.Table filtersTable
           
private  TaskElementLabelProvider labelProvider
           
private  org.eclipse.swt.widgets.Text numDays
           
private  int numDaysToReport
           
private  java.util.Date reportStartDate
           
static java.lang.String ROOT_CATEGORY_HACK
           
private static java.lang.String TITLE
           
 
Fields inherited from interface org.eclipse.jface.dialogs.IMessageProvider
ERROR, INFORMATION, NONE, WARNING
 
Constructor Summary
TaskActivityWizardPage()
           
 
Method Summary
private  void createButtonsGroup(org.eclipse.swt.widgets.Composite parent)
          Creates the buttons for selecting all or none of the categories.
private  void createCategorySelectionGroup(org.eclipse.swt.widgets.Composite composite)
          Selection of specific category to report on in the Task Planner
 void createControl(org.eclipse.swt.widgets.Composite parent)
           
private  void createFilterTable(org.eclipse.swt.widgets.Composite composite, boolean enabled)
           
private  void createReportPeriodGroup(org.eclipse.swt.widgets.Composite parent)
           
 java.util.Date getReportStartDate()
           
 java.util.Set<ITaskListElement> getSelectedFilters()
           
private  void setChecked(boolean checked)
           
 
Methods inherited from class org.eclipse.jface.wizard.WizardPage
canFlipToNextPage, getContainer, getDialogSettings, getImage, getName, getNextPage, getPreviousPage, getShell, getWizard, isCurrentPage, isPageComplete, setDescription, setErrorMessage, setImageDescriptor, setMessage, setPageComplete, setPreviousPage, setTitle, setWizard, toString
 
Methods inherited from class org.eclipse.jface.dialogs.DialogPage
convertHeightInCharsToPixels, convertHorizontalDLUsToPixels, convertVerticalDLUsToPixels, convertWidthInCharsToPixels, dispose, getControl, getDescription, getDialogFontName, getErrorMessage, getFont, getMessage, getMessageType, getTitle, getToolTipText, initializeDialogUnits, isControlCreated, performHelp, setButtonLayoutData, setControl, setMessage, setVisible
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.eclipse.jface.dialogs.IDialogPage
dispose, getControl, getDescription, getErrorMessage, getMessage, getTitle, performHelp, setVisible
 

Field Detail

DEFAULT_DAYS

private static final int DEFAULT_DAYS
See Also:
Constant Field Values

TITLE

private static final java.lang.String TITLE
See Also:
Constant Field Values

DESCRIPTION

private static final java.lang.String DESCRIPTION
See Also:
Constant Field Values

ROOT_CATEGORY_HACK

public static final java.lang.String ROOT_CATEGORY_HACK
See Also:
Constant Field Values

DAY

private long DAY

columnNames

protected java.lang.String[] columnNames

reportStartDate

private java.util.Date reportStartDate

daysRadioButton

private org.eclipse.swt.widgets.Button daysRadioButton

dateRadioButton

private org.eclipse.swt.widgets.Button dateRadioButton

numDays

private org.eclipse.swt.widgets.Text numDays

numDaysToReport

private int numDaysToReport

filtersTable

private org.eclipse.swt.widgets.Table filtersTable

labelProvider

private TaskElementLabelProvider labelProvider
Constructor Detail

TaskActivityWizardPage

public TaskActivityWizardPage()
Method Detail

createControl

public void createControl(org.eclipse.swt.widgets.Composite parent)

createReportPeriodGroup

private void createReportPeriodGroup(org.eclipse.swt.widgets.Composite parent)

createCategorySelectionGroup

private void createCategorySelectionGroup(org.eclipse.swt.widgets.Composite composite)
Selection of specific category to report on in the Task Planner

Parameters:
composite - container to add categories combo box to

createButtonsGroup

private final void createButtonsGroup(org.eclipse.swt.widgets.Composite parent)
Creates the buttons for selecting all or none of the categories.

Parameters:
parent - parent composite

setChecked

private void setChecked(boolean checked)

createFilterTable

private void createFilterTable(org.eclipse.swt.widgets.Composite composite,
                               boolean enabled)

getSelectedFilters

public java.util.Set<ITaskListElement> getSelectedFilters()

getReportStartDate

public java.util.Date getReportStartDate()