Class ExtendedValueBoxEditor<T>
- java.lang.Object
-
- de.knightsoftnet.validators.client.editor.TakesValueEditor<T>
-
- de.knightsoftnet.validators.client.editor.ValueBoxEditor<T>
-
- de.knightsoftnet.validators.client.decorators.ExtendedValueBoxEditor<T>
-
- All Implemented Interfaces:
org.gwtproject.editor.client.Editor<T>,org.gwtproject.editor.client.HasEditorDelegate<T>,org.gwtproject.editor.client.LeafValueEditor<T>
public class ExtendedValueBoxEditor<T> extends ValueBoxEditor<T>
-
-
Constructor Summary
Constructors Constructor Description ExtendedValueBoxEditor(org.gwtproject.editor.client.TakesValue<T> ptakesValues, AbstractDecorator<T> pdecorator)constructor uses widget as base.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AbstractDecorator<T>getDecorator()getter for the decorator.org.gwtproject.editor.client.EditorDelegate<T>getDelegate()Returns theEditorDelegatefor this instance.org.gwtproject.editor.client.TakesValue<T>getTakesValues()getter for the widget which takes the values.TgetValue()voidsetDelegate(org.gwtproject.editor.client.EditorDelegate<T> pdelegate)Sets theEditorDelegatefor this instance.voidsetValue(T pvalue)-
Methods inherited from class de.knightsoftnet.validators.client.editor.ValueBoxEditor
of
-
Methods inherited from class de.knightsoftnet.validators.client.editor.TakesValueEditor
of
-
-
-
-
Constructor Detail
-
ExtendedValueBoxEditor
public ExtendedValueBoxEditor(org.gwtproject.editor.client.TakesValue<T> ptakesValues, AbstractDecorator<T> pdecorator)
constructor uses widget as base.- Parameters:
ptakesValues- widget which is able to set and get value from/topdecorator- corresponding decorator
-
-
Method Detail
-
getDelegate
public org.gwtproject.editor.client.EditorDelegate<T> getDelegate()
Description copied from class:ValueBoxEditorReturns theEditorDelegatefor this instance.- Overrides:
getDelegatein classValueBoxEditor<T>- Returns:
- an
EditorDelegate, ornull - See Also:
ValueBoxEditor.setDelegate(EditorDelegate)
-
getValue
public T getValue()
Description copied from class:ValueBoxEditorCallsValueBoxBase.getValueOrThrow(). If aParseExceptionis thrown, it will be available throughEditorError.getUserData().- Specified by:
getValuein interfaceorg.gwtproject.editor.client.LeafValueEditor<T>- Overrides:
getValuein classValueBoxEditor<T>- Returns:
- a value of type T
- See Also:
ValueBoxEditor.setValue(Object)
-
setDelegate
public void setDelegate(org.gwtproject.editor.client.EditorDelegate<T> pdelegate)
Description copied from class:ValueBoxEditorSets theEditorDelegatefor this instance. This method is only called by the driver.- Specified by:
setDelegatein interfaceorg.gwtproject.editor.client.HasEditorDelegate<T>- Overrides:
setDelegatein classValueBoxEditor<T>- Parameters:
pdelegate- anEditorDelegate, ornull- See Also:
ValueBoxEditor.getDelegate()
-
setValue
public void setValue(T pvalue)
- Specified by:
setValuein interfaceorg.gwtproject.editor.client.LeafValueEditor<T>- Overrides:
setValuein classValueBoxEditor<T>
-
getDecorator
public final AbstractDecorator<T> getDecorator()
getter for the decorator.- Returns:
- the decorator
-
getTakesValues
public final org.gwtproject.editor.client.TakesValue<T> getTakesValues()
getter for the widget which takes the values.- Returns:
- the takesValues
-
-