C
- The implementor's typepublic interface MasterDetailComponent<C extends JComponent> extends FormularComponent<C>, VirtualTableOwner
FormularComponent
which is used to display the detail
records for a specific master record, or to display master records and
control another MasterDetailComponent which displays the details.
A MasterDetailComponent can be connected to a Formular
:
MasterDetail.connect(MasterDetailComponent, Formular)
or to another MasterDetailComponent:
MasterDetail.connect(MasterDetailComponent, MasterDetailComponent)
MasterDetail
,
MasterDetailHandler
Modifier and Type | Interface and Description |
---|---|
static interface |
MasterDetailComponent.DetailHandler
Handles the detail view of a
MasterDetailComponent which is used
as detail of another MasterDetailComponent which is the master. |
FormularComponent.ValueChangeListener
DATA_FIELD_SEPARATOR
Modifier and Type | Method and Description |
---|---|
void |
clearModel()
Clears the underlying data model, mostly a
VirtualTable , and the
view. |
VirtualTable.VirtualTableRow |
getSelectedVirtualTableRow()
Returns the selected
VirtualTable.VirtualTableRow of this component, or
null if nothing is selected. |
void |
refresh()
Reloads the data from the underlying data source with the last executed
resp.
|
void |
setDetailHandler(MasterDetailComponent.DetailHandler detailHandler)
Sets the handler which controls the corporation of two
MasterDetailComponent s. |
void |
setMasterValue(VirtualTable vt,
Map<String,Object> record)
Sets the value of this component (master), taking the value(s) of the
record.
|
addValidator, addValueChangeListener, getClientProperty, getDataField, getFilterOperator, getFormularName, getFormularValue, getValidators, hasStateChanged, isEnabled, isMultiSelect, isReadOnly, isVisible, putClientProperty, removeValidator, restoreState, saveState, setDataField, setFilterOperator, setFormularValue, setFormularValue, setReadOnly, validateState, validateState, verify
getVirtualTable, setVirtualTable, updateModel
VirtualTable.VirtualTableRow getSelectedVirtualTableRow()
VirtualTable.VirtualTableRow
of this component, or
null
if nothing is selected.VirtualTable.VirtualTableRow
of this componentvoid refresh()
void clearModel()
VirtualTable
, and the
view.void setMasterValue(VirtualTable vt, Map<String,Object> record)
Called by the MasterDetailHandler
if the client's value has
changed.
vt
- the underlying virtual tablerecord
- the data <column,value>void setDetailHandler(MasterDetailComponent.DetailHandler detailHandler)
MasterDetailComponent
s.detailHandler
- the new MasterDetailComponent.DetailHandler
Copyright © 2003–2021 XDEV Software. All rights reserved.