net.officefloor.eclipse.common.dialog.input
Interface InputContext

All Known Implementing Classes:
InputHandler

public interface InputContext

Context for the Input.

Author:
Daniel Sagenschneider

Method Summary
 Object getAttribute(String name)
          Obtains the attribute for the name.
 Object getInitialValue()
          Obtains the initial value.
 org.eclipse.swt.widgets.Composite getParent()
          Obtains the Composite.
 void notifyValueChanged(Object value)
           Invoked by the Input on the value changing.
 void notifyValueInvalid(String message)
          Invoked by the Input to indicate invalid.
 void setAttribute(String name, Object value)
          Adds an attribute to the context of the property.
 

Method Detail

getParent

org.eclipse.swt.widgets.Composite getParent()
Obtains the Composite.

Returns:
Composite.

getInitialValue

Object getInitialValue()
Obtains the initial value.

Returns:
Initial value.

getAttribute

Object getAttribute(String name)
Obtains the attribute for the name.

Parameters:
name - Name of the attribute.
Returns:
Attribute by name, or null if not specified.

setAttribute

void setAttribute(String name,
                  Object value)
Adds an attribute to the context of the property.

Parameters:
name - Name of the attribute.
value - Value of the attribute.

notifyValueChanged

void notifyValueChanged(Object value)

Invoked by the Input on the value changing.

This allows for validation of the value to determine if value is valid.

Parameters:
value - New value.

notifyValueInvalid

void notifyValueInvalid(String message)
Invoked by the Input to indicate invalid.

Parameters:
message - Reason invalid.


Copyright © 2005-2013. All Rights Reserved.