public class DefaultMasterDetailHandler extends Object implements MasterDetailHandler
MasterDetailHandler
.
If you plan to implement your own MasterDetailHandler
this is the
best point to start.
MasterDetail.setHandler(MasterDetailHandler)
,
MasterDetailComponent
Modifier and Type | Class and Description |
---|---|
protected static class |
DefaultMasterDetailHandler.MasterDetailComponentConnection
Default implementation for the connection of two
MasterDetailComponent s. |
protected static class |
DefaultMasterDetailHandler.MasterDetailInfo
Holds information of a distinct master detail connection.
|
Modifier and Type | Field and Description |
---|---|
protected static String |
DETAIL_COMPONENT |
protected static String |
MASTER_COMPONENT |
protected static String |
WORKING |
OFFLINE
Constructor and Description |
---|
DefaultMasterDetailHandler() |
Modifier and Type | Method and Description |
---|---|
void |
connect(MasterDetailComponent master,
Formular detail)
Connects a
MasterDetailComponent with a Formular , meaning the
formular (detail ) is filled with the current selected record
( VirtualTable.VirtualTableRow ) of the master . |
void |
connect(MasterDetailComponent master,
MasterDetailComponent detail)
Connects two
MasterDetailComponent s. |
protected void |
connectImpl(MasterDetailComponent master,
Formular detail)
Called from
connect(MasterDetailComponent, Formular) after
preconditions are checked successfully. |
protected void |
connectImpl(MasterDetailComponent master,
MasterDetailComponent detail)
Called from
connect(MasterDetailComponent, MasterDetailComponent) after
preconditions are checked successfully. |
protected static final String MASTER_COMPONENT
protected static final String DETAIL_COMPONENT
protected static final String WORKING
public void connect(MasterDetailComponent master, Formular detail) throws MasterDetailException
MasterDetailComponent
with a Formular
, meaning the
formular (detail
) is filled with the current selected record
( VirtualTable.VirtualTableRow
) of the master
.connect
in interface MasterDetailHandler
master
- the component which operates as masterdetail
- the Formular
which operates as detail viewMasterDetailException
- if necessary properties like the linked VirtualTable
are not set or insufficient entity relation information is
availableprotected void connectImpl(MasterDetailComponent master, Formular detail)
connect(MasterDetailComponent, Formular)
after
preconditions are checked successfully.master
- the component which operates as masterdetail
- the Formular
which operates as detail viewpublic void connect(MasterDetailComponent master, MasterDetailComponent detail) throws MasterDetailException
MasterDetailComponent
s.
The detail is filled with the appropriate records depending on the master's selection.
The maching master is selected if the detail's selection changes.
connect
in interface MasterDetailHandler
master
- the component which operates as masterdetail
- the component which operates as detail viewMasterDetailException
- if necessary properties like the linked VirtualTable
are not set or insufficient entity relation information is
availableprotected void connectImpl(MasterDetailComponent master, MasterDetailComponent detail)
connect(MasterDetailComponent, MasterDetailComponent)
after
preconditions are checked successfully.master
- the component which operates as masterdetail
- the component which operates as detail viewCopyright © 2003–2020 XDEV Software. All rights reserved.