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

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

public class SubTypeSelectionInput
extends Object
implements Input<org.eclipse.swt.widgets.List>

List to hold sub types.

Author:
Daniel Sagenschneider

Constructor Summary
SubTypeSelectionInput(org.eclipse.core.resources.IProject project, String superClassName)
          Initiate.
 
Method Summary
 org.eclipse.swt.widgets.List buildControl(InputContext context)
          Builds the Control.
 String getValue(org.eclipse.swt.widgets.List 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

SubTypeSelectionInput

public SubTypeSelectionInput(org.eclipse.core.resources.IProject project,
                             String superClassName)
Initiate.

Parameters:
project - IProject.
superClassName - Super class name.
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 String 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.


Copyright © 2005-2013. All Rights Reserved.