net.officefloor.eclipse.common.dialog.input.csv
Class ListInput<C extends org.eclipse.swt.widgets.Control>

java.lang.Object
  extended by net.officefloor.eclipse.common.dialog.input.csv.ListInput<C>
All Implemented Interfaces:
Input<org.eclipse.swt.widgets.Composite>

public class ListInput<C extends org.eclipse.swt.widgets.Control>
extends Object
implements Input<org.eclipse.swt.widgets.Composite>

Provides a listing of Input instances.

Author:
Daniel Sagenschneider

Constructor Summary
ListInput(Class<?> componentType, org.eclipse.swt.widgets.Composite refreshLayoutComposite, InputFactory<C> factory)
          Initiate.
 
Method Summary
 org.eclipse.swt.widgets.Composite buildControl(InputContext context)
          Builds the Control.
 Object getValue(org.eclipse.swt.widgets.Composite 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

ListInput

public ListInput(Class<?> componentType,
                 org.eclipse.swt.widgets.Composite refreshLayoutComposite,
                 InputFactory<C> factory)
Initiate.

Parameters:
componentType - Component type for the array.
refreshLayoutComposite - Composite to use to refresh the layout.
factory - InputFactory.
Method Detail

buildControl

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

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

getValue

public Object getValue(org.eclipse.swt.widgets.Composite 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.Composite>
Parameters:
control - Control.
context - InputContext.
Returns:
Value.


Copyright © 2005-2013. All Rights Reserved.