public class LookupNumberControl<T extends Number> extends BaseAbstractLookupControlImpl<String>
ILookupControlInstance.AppendCriteriaResult| Modifier and Type | Field and Description |
|---|---|
static Set<QOperation> |
BINARY_OPS |
static Set<QOperation> |
UNARY_OPS |
| Constructor and Description |
|---|
LookupNumberControl(Class<T> valueType,
Text<String> node,
String propertyName,
Number minValue,
Number maxValue,
boolean monetary,
boolean allowLike,
int scale) |
LookupNumberControl(Class<T> valueType,
Text<String> node,
String propertyName,
Number minValue,
Number maxValue,
boolean monetary,
int scale) |
| Modifier and Type | Method and Description |
|---|---|
ILookupControlInstance.AppendCriteriaResult |
appendCriteria(QCriteria<?> crit)
Evaluate the contents of the input for this lookup line; if the user has
added data there then add the values to the query.
|
protected ILookupControlInstance.AppendCriteriaResult |
appendCriteria(QCriteria<?> crit,
QOperation op,
T val) |
protected void |
checkNumber(T value) |
String |
getValue()
Return the value entered into this control.
|
boolean |
isMonetary()
T if this control handles a monetary amount.
|
protected T |
parseNumber(String in)
This delivers a number of the same type as the property by scanning the input string.
|
protected QOperation |
scanOperation()
Checks the current position for a supported operation.
|
void |
setValue(String value)
Sets the value in the control
|
clearInput, getInputControls, getLabelControl, setDisabledpublic static final Set<QOperation> UNARY_OPS
public static final Set<QOperation> BINARY_OPS
public LookupNumberControl(Class<T> valueType, Text<String> node, String propertyName, Number minValue, Number maxValue, boolean monetary, int scale)
public final boolean isMonetary()
protected ILookupControlInstance.AppendCriteriaResult appendCriteria(QCriteria<?> crit, QOperation op, T val) throws Exception
Exceptionprotected void checkNumber(T value)
@Nonnull public ILookupControlInstance.AppendCriteriaResult appendCriteria(@Nonnull QCriteria<?> crit) throws Exception
ILookupControlInstanceappendCriteria in interface ILookupControlInstance<String>appendCriteria in class BaseAbstractLookupControlImpl<String>ILookupControlInstance.AppendCriteriaResultExceptionprotected QOperation scanOperation()
protected T parseNumber(String in)
in - public String getValue()
ILookupControlInstancepublic void setValue(String value)
ILookupControlInstanceCopyright © 2017 etc.to. All rights reserved.