public class IlvResourceUserDefinedProperty extends IlvAbstractUserDefinedProperty
IlvResourceUserDefinedProperty
is an adapter that allows
a user-defined property of an IlvGeneralResource
to be accessed
via the generic IlvStringProperty
interface._formatter
Constructor and Description |
---|
IlvResourceUserDefinedProperty(String userPropertyName)
Constructs a new
IlvResourceUserDefinedProperty for the
given user-property, assuming the property is a String . |
IlvResourceUserDefinedProperty(String userPropertyName,
Class userPropertyClass)
Constructs a new
IlvResourceUserDefinedProperty for the
given user-property and its class. |
Modifier and Type | Method and Description |
---|---|
Class |
getEventClass()
Returns the class of events that are triggered by an
IlvGeneralResource when its user-defined property
changes value. |
boolean |
isPropertyChangedEvent(EventObject event)
Returns whether the specified event is a changed event for
this property.
|
getPropertyClass, getPropertyName, getValueImpl, setValueImpl
changedRowsIterator, getFormat, getValue, setFormat, setValue
public IlvResourceUserDefinedProperty(String userPropertyName)
IlvResourceUserDefinedProperty
for the
given user-property, assuming the property is a String
.userPropertyName
- the name of the property in the model.public IlvResourceUserDefinedProperty(String userPropertyName, Class userPropertyClass)
IlvResourceUserDefinedProperty
for the
given user-property and its class.userPropertyName
- the name of the property in the model.userPropertyClass
- the class of the property.public Class getEventClass()
IlvGeneralResource
when its user-defined property
changes value.public boolean isPropertyChangedEvent(EventObject event)
true
if and only if event
is the same or a subclass of
getEventClass()
, is also an
IlvPropertyEvent
,
and ((IlvPropertyEvent)event).isChangedEvent()
returns
true
. This implementation is suitable for a property that
fires a specific IlvPropertyEvent
subclass when its value
changes. Subclasses should override this method as necessary.isPropertyChangedEvent
in interface IlvProperty
isPropertyChangedEvent
in class IlvAbstractStringProperty
© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.