|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.officefloor.eclipse.common.dialog.input.InputHandler<T>
public class InputHandler<T>
Handle for the Input.
| Constructor Summary | |
|---|---|
InputHandler(org.eclipse.swt.widgets.Composite parent,
Input<? extends org.eclipse.swt.widgets.Control> input)
Convenience constructor. |
|
InputHandler(org.eclipse.swt.widgets.Composite parent,
Input<? extends org.eclipse.swt.widgets.Control> input,
InputListener listener)
Convenience constructor. |
|
InputHandler(org.eclipse.swt.widgets.Composite parent,
Input<? extends org.eclipse.swt.widgets.Control> input,
Object initialValue)
Convenience constructor. |
|
InputHandler(org.eclipse.swt.widgets.Composite parent,
Input<? extends org.eclipse.swt.widgets.Control> input,
Object initialValue,
InputListener listener)
Convenience constructor. |
|
InputHandler(org.eclipse.swt.widgets.Composite parent,
Input<? extends org.eclipse.swt.widgets.Control> input,
Object initialValue,
ValueTranslator translator)
Initiate. |
|
| Method Summary | |
|---|---|
Object |
getAttribute(String name)
Obtains the attribute for the name. |
org.eclipse.swt.widgets.Control |
getControl()
Obtains the Control. |
Object |
getInitialValue()
Obtains the initial value. |
Input<? extends org.eclipse.swt.widgets.Control> |
getInput()
Obtains the Input. |
org.eclipse.swt.widgets.Composite |
getParent()
Obtains the Composite. |
T |
getTrySafeValue()
Obtains the value defaulting to null if failure obtaining. |
T |
getValue()
Obtains the value. |
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. |
void |
setInputListener(InputListener listener)
Specifies the InputListener. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public InputHandler(org.eclipse.swt.widgets.Composite parent,
Input<? extends org.eclipse.swt.widgets.Control> input)
parent - Parent Composite.input - Input being handled.
public InputHandler(org.eclipse.swt.widgets.Composite parent,
Input<? extends org.eclipse.swt.widgets.Control> input,
Object initialValue)
parent - Parent Composite.input - Input being handled.initialValue - Initial value.
public InputHandler(org.eclipse.swt.widgets.Composite parent,
Input<? extends org.eclipse.swt.widgets.Control> input,
InputListener listener)
parent - Parent Composite.input - Input being handled.listener - InputListener.
public InputHandler(org.eclipse.swt.widgets.Composite parent,
Input<? extends org.eclipse.swt.widgets.Control> input,
Object initialValue,
InputListener listener)
parent - Parent Composite.input - Input being handled.initialValue - Initial value.listener - InputListener.
public InputHandler(org.eclipse.swt.widgets.Composite parent,
Input<? extends org.eclipse.swt.widgets.Control> input,
Object initialValue,
ValueTranslator translator)
parent - Parent Composite.input - Input being handled.initialValue - Initial value.translator - ValueTranslator.| Method Detail |
|---|
public org.eclipse.swt.widgets.Control getControl()
Control.
Control.public Input<? extends org.eclipse.swt.widgets.Control> getInput()
Input.
Input.
public T getValue()
throws InvalidValueException
InvalidValueException - If value is invalid.public T getTrySafeValue()
null if failure obtaining.
null.public void setInputListener(InputListener listener)
InputListener.
listener - InputListener.public org.eclipse.swt.widgets.Composite getParent()
InputContextComposite.
getParent in interface InputContextComposite.public Object getInitialValue()
InputContext
getInitialValue in interface InputContextpublic Object getAttribute(String name)
InputContext
getAttribute in interface InputContextname - Name of the attribute.
null if not specified.
public void setAttribute(String name,
Object value)
InputContext
setAttribute in interface InputContextname - Name of the attribute.value - Value of the attribute.public void notifyValueChanged(Object value)
InputContext
Invoked by the Input on the value changing.
This allows for validation of the value to determine if value is valid.
notifyValueChanged in interface InputContextvalue - New value.public void notifyValueInvalid(String message)
InputContextInput to indicate invalid.
notifyValueInvalid in interface InputContextmessage - Reason invalid.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||