static class EditRecord.Viewer extends ViewRecord.Viewer
m_provider| Constructor and Description |
|---|
EditRecord.Viewer(CqProvider provider) |
| Modifier and Type | Method and Description |
|---|---|
void |
edit(CqRecord selected,
CqAction action)
Constructs a new change context in which the given record can be
edited, initiates the editing using the given action, and then
displays the editable record in a new window for editing.
|
(package private) javax.swing.JFrame |
editRecord(String title,
CqRecord record,
CqRecord selected)
Displays the fields of a record and allows the user to modify those
fields (as permitted by the schema) until the changes are either
committed back to the database or abandoned altogether by the user.
|
javax.swing.JFrame |
view(CqRecord selected)
Reads the legal actions for the current state of a given record
then displays the fields of the record
(using
ViewRecord.Viewer.showRecord(java.lang.String, com.ibm.rational.wvcm.stp.cq.CqRecord, javax.swing.JComponent[])) with a drop-down
containing the actions and buttons the user can use to initiate an
edit or add or remove an attachment. |
showRecord, viewEditRecord.Viewer(CqProvider provider)
public javax.swing.JFrame view(CqRecord selected)
ViewRecord.Viewer.showRecord(java.lang.String, com.ibm.rational.wvcm.stp.cq.CqRecord, javax.swing.JComponent[])) with a drop-down
containing the actions and buttons the user can use to initiate an
edit or add or remove an attachment.view in interface ExecuteQuery.Viewerview in class ViewRecord.Viewerselected - The Record proxy for the record to be displayed.ExecuteQuery.Viewer.view(com.ibm.rational.wvcm.stp.cq.CqRecord)public void edit(CqRecord selected, CqAction action)
selected - A Record proxy for the record to be edited. Must not
be null but needs no properties defined.action - An Action proxy for the action to be used for editing.
Must not be null.javax.swing.JFrame editRecord(String title, CqRecord record, CqRecord selected) throws javax.wvcm.WvcmException
title - The title string for the window in which the record is
displayed.record - The Record proxy for the editable version of the record.selected - The Record proxy for the original version of the
record. Used to redisplay the record (in its original change context)
after the editable version has either been committed or abandoned.javax.wvcm.WvcmException - If the properties required for the editable
record are not defined by the editable record proxy.Copyright © IBM 2016. All rights reserved.