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

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

public class PropertyListInput
extends Object
implements Input<org.eclipse.swt.widgets.Table>

PropertyList Input.

Author:
Daniel Sagenschneider

Constructor Summary
PropertyListInput(PropertyList propertyList)
          Initiate.
 
Method Summary
 org.eclipse.swt.widgets.Table buildControl(InputContext context)
          Builds the Control.
 Object getValue(org.eclipse.swt.widgets.Table control, InputContext context)
           Obtains the value from the input Control.
 void hideProperty(String propertyName)
          Hides the Property from being displayed.
 void refreshProperties()
          Refreshes for all Property instances in the PropertyList.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PropertyListInput

public PropertyListInput(PropertyList propertyList)
Initiate.

Parameters:
propertyList - PropertyList.
Method Detail

hideProperty

public void hideProperty(String propertyName)
Hides the Property from being displayed.

Parameters:
propertyName - Name of Property to no display.

refreshProperties

public void refreshProperties()
Refreshes for all Property instances in the PropertyList.


buildControl

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

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

getValue

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


Copyright © 2005-2013. All Rights Reserved.