net.officefloor.eclipse.common.dialog.input.impl
Class OfficeSectionInput

java.lang.Object
  extended by net.officefloor.eclipse.common.dialog.input.impl.OfficeSectionInput
All Implemented Interfaces:
Input<org.eclipse.swt.widgets.Tree>

public class OfficeSectionInput
extends Object
implements Input<org.eclipse.swt.widgets.Tree>

Input to obtain an item within the OfficeSection.

Author:
Daniel Sagenschneider

Constructor Summary
OfficeSectionInput(OfficeSection officeSection, Class<?>... selectionTypes)
          Initiate.
 
Method Summary
 org.eclipse.swt.widgets.Tree buildControl(InputContext context)
          Builds the Control.
 Object getValue(org.eclipse.swt.widgets.Tree control, InputContext context)
           Obtains the value from the input Control.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OfficeSectionInput

public OfficeSectionInput(OfficeSection officeSection,
                          Class<?>... selectionTypes)
Initiate.

Parameters:
officeSection - OfficeSection.
selectionTypes - Listing of the types of objects within the OfficeSection that may be selected for returning.
Method Detail

buildControl

public org.eclipse.swt.widgets.Tree buildControl(InputContext context)
Description copied from interface: Input
Builds the Control.

Specified by:
buildControl in interface Input<org.eclipse.swt.widgets.Tree>
Parameters:
context - InputContext.
Returns:
Control to input the value.

getValue

public Object getValue(org.eclipse.swt.widgets.Tree control,
                       InputContext context)
Description copied from interface: Input

Obtains the value from the input Control.

The input Control will be the one created by Input.buildControl(InputContext).

Specified by:
getValue in interface Input<org.eclipse.swt.widgets.Tree>
Parameters:
control - Control.
context - InputContext.
Returns:
Value.


Copyright © 2005-2013. All Rights Reserved.