public abstract class ListRow extends Observable implements PropertyManager
| Constructor and Description |
|---|
ListRow(int dialogInstanceNumber,
boolean selected)
Create a new ListRow with the given selected state.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clear(DialogObjectConstant dialogObject,
Property<?> property)
Clear the specified property of the specified dialog object.
|
void |
clearAll()
Clears all properties managed by this property manager.
|
void |
clearAll(DialogObjectConstant dialogConstant)
Clear all properties belonging to the specified dialog object.
|
protected String |
createBeanRef(String beanName)
Creates a bean reference that is a concatenation of the
beanName and the dialogIntanceNumber. |
int |
getDialogInstanceNumber() |
abstract Collection<DialogObjectConstant> |
getFields() |
<T> T |
getProperty(DialogObjectConstant dialogObject,
Property<T> property)
Get the specified property value.
|
Boolean |
getSelected()
Get the selected state for this row.
|
Object |
getValue(DialogObjectConstant field)
Get the value for the given field.
|
boolean |
isPropertySet(DialogObjectConstant dialogObject,
Property<?> property)
Test if a property is set.
|
boolean |
isRowSelected() |
String |
listProperties()
List all properties managed by this property manager.
|
String |
listProperties(DialogObjectConstant dialogObject)
List all managed properties for the specified dialog object.
|
<T> void |
setProperty(DialogObjectConstant dialogObject,
Property<T> property,
T value)
Set the specified property.
|
void |
setSelected(Boolean selected)
Set the selected state for this row.
|
void |
setValue(DialogObjectConstant field,
Object value)
Set the value for the given field.
|
String |
toString() |
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChangedpublic ListRow(int dialogInstanceNumber,
boolean selected)
dialogInstanceNumber - the instance number for the ownerselected - the selected state for the rowpublic int getDialogInstanceNumber()
public boolean isRowSelected()
public Boolean getSelected()
public void setSelected(Boolean selected)
selected - the new selected state.public Object getValue(DialogObjectConstant field)
field - the field to get.public void setValue(DialogObjectConstant field, Object value)
field - the field to set.value - the new field value.public abstract Collection<DialogObjectConstant> getFields()
public final void clear(DialogObjectConstant dialogObject, Property<?> property)
PropertyManagerclear in interface PropertyManagerdialogObject - the dialog object whose property to clear.property - the property to clear.public final void clearAll()
PropertyManagerclearAll in interface PropertyManagerpublic final void clearAll(DialogObjectConstant dialogConstant)
PropertyManagerclearAll in interface PropertyManagerdialogConstant - the dialog object whose properties to clear.public final <T> T getProperty(DialogObjectConstant dialogObject, Property<T> property)
PropertyManagerPropertyManager.isPropertySet(DialogObjectConstant, Property) to
test if a property is set.getProperty in interface PropertyManagerT - the property value type.dialogObject - the dialog object whose property to get.property - the property to get.public final String listProperties()
PropertyManagerlistProperties in interface PropertyManagerpublic final String listProperties(DialogObjectConstant dialogObject)
PropertyManagerlistProperties in interface PropertyManagerdialogObject - the dialog object whose properties to get.public final <T> void setProperty(DialogObjectConstant dialogObject, Property<T> property, T value)
PropertyManagersetProperty in interface PropertyManagerT - the property value typedialogObject - the dialog object whose property to set.property - the property to set.value - the property value.public boolean isPropertySet(DialogObjectConstant dialogObject, Property<?> property)
PropertyManagerisPropertySet in interface PropertyManagerdialogObject - the dialog object that possibly has the property set.property - the propertytrue if the property is set, otherwise
false.Copyright © 2006–2017 Esito AS. All rights reserved.