public interface ListblockLine
| Modifier and Type | Method and Description |
|---|---|
void |
addDomainObject(Object domainObject)
Adds a domain object to this listblock.
|
boolean |
contains(Object domainObject)
Returns
true if this line contains the specified instance. |
void |
displayInEditField()
Displays the domain objects contained in this list block line in the edit
fields of the listblock.
|
void |
editField(Object type,
String fieldName)
Deprecated.
Use editFieldOS insted.
|
void |
editFieldOS(Object type,
String fieldName)
Edits cell in the given listblock line, where the object is 'type' (the
related object node) and column is 'fieldName' (named in g9).
|
Collection |
getDomainObjects()
Deprecated.
(missing javadoc)
|
int |
getLineNumber()
Internal use!
|
Listblock |
getListblock()
Returns the listblock that this line is part of
|
Object |
getObject(String roleName)
Deprecated.
|
Object |
getObject(String roleName,
boolean createIfNull)
Returns the roleName object held by this line.
|
boolean |
hasPreviousState()
Returns true if there is a previous state stored in the dialog
|
void |
insertObject(String roleName,
Object obj)
Inserts the @@RoleName@@ object into the listblock line.
|
boolean |
isChanged()
Returns
true if this line is changed. |
boolean |
isSelected()
Returns the selected state of this line.
|
ListblockLine |
obtain()
Obtains all the displayed roles.
|
Object |
obtain(String identifier)
Obtains the value specified by
identifier. |
void |
previousState()
Copies data from the old set of data (the last reset) to the new
"current" set of data.
|
void |
refresh()
Updates the UI after modifying a given listblock line.
|
void |
reset()
Reset status, and copies values from the new set to the old set of data
for this listblock line.
|
void |
setDisabledField(Object owner,
String field,
boolean setting)
Deprecated.
Use setDisabledFieldOS.
|
void |
setDisabledFieldOS(Object owner,
String field,
boolean setting)
Disables/enables a given field in the listblock line represented by the
object selection node object owner.
|
void |
setSelected(boolean select)
Selects or unselects this line, depending on the
select
value. |
void editFieldOS(Object type, String fieldName)
type - The object selection node to use.fieldName - The fieldname to use.@Deprecated void editField(Object type, String fieldName)
type - The object selection to usefieldName - The field name to use.boolean hasPreviousState()
void previousState()
hasPreviousState()void refresh()
void reset()
@Deprecated void setDisabledField(Object owner, String field, boolean setting)
owner - The object to disable.field - The field to disable.setting - True if the field should be disabled, false if not.void setDisabledFieldOS(Object owner, String field, boolean setting)
owner - The object selection to usefield - The field namesetting - True if the field should be disabled, false if not.void addDomainObject(Object domainObject)
domainObject - (missing javadoc)@Deprecated Collection getDomainObjects()
Collection of the objects contained in this line.Collection of the objects contained in this line.void displayInEditField()
Listblock getListblock()
int getLineNumber()
void insertObject(String roleName, Object obj)
roleName - the role name of the objectobj - the object to insert.@Deprecated Object getObject(String roleName)
getObject(String, boolean)roleName - the role name of the object to returnObject getObject(String roleName, boolean createIfNull)
true and the line does not hold a reference to
the object, a new instance is created using the default constructor.roleName - the role name of the objectcreateIfNull - flag indicating if missing object should be createdboolean contains(Object domainObject)
true if this line contains the specified instance.domainObject - the domain object possibly present in this linetrue if this line contains the object.void setSelected(boolean select)
select
value.
If select is true this line is selected, and
displayed in the edit fields.
If select is false, the line is unselected. If
no other line is selected, the edit fields are cleared, otherwise, the
first selected line (starting from the top of the listblock) is displayed
in the edit fields.
Note that invoking this method does not fire a selected event, nor does it issue a warning if the edit fields are changed prior to selection.
select - if true selects this line, otherwise unselects
this line.boolean isSelected()
true if the line is selected.boolean isChanged()
true if this line is changed. Only applies to
listblocks with inline editing.true if this line is changed.Object obtain(String identifier)
identifier. If it is an
attribute name (e.g. "foo.bar") the displayed value from the
corresponding column is returned. Otherwise, if it is a role name, the
domain object (corresponding to the role) is updated with the displayed
values, and then returned.identifier - the name of the role or field nameListblockLine obtain()
Copyright © 2006–2020 Esito AS. All rights reserved.