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

java.lang.Object
  extended by net.officefloor.eclipse.common.dialog.input.impl.ManagedObjectScopeInput
All Implemented Interfaces:
Input<org.eclipse.swt.widgets.List>, ValueTranslator

public class ManagedObjectScopeInput
extends Object
implements Input<org.eclipse.swt.widgets.List>, ValueTranslator

Input to select a ManagedObjectScope.

Author:
Daniel Sagenschneider

Constructor Summary
ManagedObjectScopeInput()
           
 
Method Summary
 org.eclipse.swt.widgets.List buildControl(InputContext context)
          Builds the Control.
 Object getValue(org.eclipse.swt.widgets.List control, InputContext context)
           Obtains the value from the input Control.
 Object translate(Object inputValue)
          Translates the Input value to the value for use.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ManagedObjectScopeInput

public ManagedObjectScopeInput()
Method Detail

buildControl

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

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

getValue

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

translate

public Object translate(Object inputValue)
                 throws InvalidValueException
Description copied from interface: ValueTranslator
Translates the Input value to the value for use.

Specified by:
translate in interface ValueTranslator
Returns:
Translated value.
Throws:
InvalidValueException - If Input value is invalid and can not be converted to the value for use.


Copyright © 2005-2013. All Rights Reserved.