public class IlvResourceQuantityProperty extends IlvFormattedNumberProperty
IlvResourceQuantityProperty
is an adapter that allows the quantity of an
IlvResource
to be accessed via the generic IlvStringProperty
interface._formatter
Constructor and Description |
---|
IlvResourceQuantityProperty()
Constructs a new
IlvResourceQuantityProperty with a
default NumberFormat . |
IlvResourceQuantityProperty(NumberFormat formatter)
Constructs a new
IlvResoureQuantityProperty with the
specified number formatter. |
IlvResourceQuantityProperty(String pattern)
Constructs a new
IlvResourceQuantityProperty with
a DecimalFormat which uses the specified formatting
string in the default locale. |
Modifier and Type | Method and Description |
---|---|
Class |
getEventClass()
Returns the class of events that are triggered by
resources when their quantity changes value.
|
protected Object |
getValueImpl(Object resource)
Returns the specified
IlvResource 's quantity. |
protected void |
setValueImpl(Object resource,
Object x)
Sets the specified
IlvResource 's quantity. |
setFormat
changedRowsIterator, getFormat, getValue, isPropertyChangedEvent, setFormat, setValue
public IlvResourceQuantityProperty()
IlvResourceQuantityProperty
with a
default NumberFormat
.public IlvResourceQuantityProperty(NumberFormat formatter)
IlvResoureQuantityProperty
with the
specified number formatter.formatter
- The number formatter.public IlvResourceQuantityProperty(String pattern)
IlvResourceQuantityProperty
with
a DecimalFormat
which uses the specified formatting
string in the default locale.protected Object getValueImpl(Object resource)
IlvResource
's quantity.getValueImpl
in class IlvAbstractStringProperty
resource
- The resource.IlvAbstractStringProperty.getValue(java.lang.Object)
protected void setValueImpl(Object resource, Object x)
IlvResource
's quantity.setValueImpl
in class IlvAbstractStringProperty
resource
- The resource.x
- The new quantity for the resource.IlvAbstractStringProperty.setValue(java.lang.Object, java.lang.String)
public Class getEventClass()
© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.