Class IntegerEditorProvider<T extends Number & Comparable<T>>
java.lang.Object
docking.widgets.table.constraint.provider.IntegerEditorProvider<T>
- Type Parameters:
T- the number type of the column (Byte, Short, Integer, or Long)
- All Implemented Interfaces:
EditorProvider<T>
- Direct Known Subclasses:
IntegerRangeEditorProvider,LongEditorProvider
public class IntegerEditorProvider<T extends Number & Comparable<T>>
extends Object
implements EditorProvider<T>
Base class for providing single value numeric editors.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiongetEditor(ColumnConstraint<T> columnConstraint, ColumnData<T> columnDataSource) Returns an editor initialized to the given columnConstraint.parseValue(String value, Object dataSource) Parses the given string into a T object.Converts the T value into a string that can be parsed back by theEditorProvider.parseValue(String, Object)method.
-
Field Details
-
converter
-
-
Method Details
-
getEditor
public ColumnConstraintEditor<T> getEditor(ColumnConstraint<T> columnConstraint, ColumnData<T> columnDataSource) Description copied from interface:EditorProviderReturns an editor initialized to the given columnConstraint.- Specified by:
getEditorin interfaceEditorProvider<T extends Number & Comparable<T>>- Parameters:
columnConstraint- the constraint whose value is to be edited.columnDataSource- the context of the data in the table.- Returns:
- an editor initialized to the given columnConstraint.
-
parseValue
Description copied from interface:EditorProviderParses the given string into a T object.- Specified by:
parseValuein interfaceEditorProvider<T extends Number & Comparable<T>>- Parameters:
value- the value to parse.dataSource- the table's context object.- Returns:
- a new T object created by parsing the given string.
-
toString
Description copied from interface:EditorProviderConverts the T value into a string that can be parsed back by theEditorProvider.parseValue(String, Object)method.- Specified by:
toStringin interfaceEditorProvider<T extends Number & Comparable<T>>- Parameters:
value- the value to convert to a parsable string.- Returns:
- The parsable string fromthe T value.
-