com.ibm.rational.stp.client.samples
Class ViewRecord.Viewer
Object
com.ibm.rational.stp.client.samples.ViewRecord.Viewer
- All Implemented Interfaces:
- ExecuteQuery.Viewer
- Direct Known Subclasses:
- EditRecord.Viewer
- Enclosing class:
- ViewRecord
static class ViewRecord.Viewer
- extends Object
- implements ExecuteQuery.Viewer
An instance of ExecuteQuery.Viewer that allows (read-only) viewing of a
Record resource.
Method Summary |
(package private) ViewRecord.RecordFrame |
showRecord(String title,
CqRecord record,
javax.swing.JComponent[] future)
Displays the ALL_FIELD_VALUES property of a record resource in a
table. |
void |
view(CqAttachment attachment)
Displays the content of an Attachment resource in a text window. |
javax.swing.JFrame |
view(CqRecord record)
Displays a Record resource |
Methods inherited from class Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
m_provider
protected CqProvider m_provider
ViewRecord.Viewer
ViewRecord.Viewer(CqProvider provider)
view
public javax.swing.JFrame view(CqRecord record)
- Description copied from interface:
ExecuteQuery.Viewer
- Displays a Record resource
- Specified by:
view
in interface ExecuteQuery.Viewer
- Parameters:
record
- The Record proxy for the record to be displayed.
- Returns:
- TODO
- See Also:
ExecuteQuery.Viewer.view(com.ibm.rational.wvcm.stp.cq.CqRecord)
view
public void view(CqAttachment attachment)
- Displays the content of an Attachment resource in a text window.
- Parameters:
attachment
- An Attachment proxy for the attachment to be
displayed.
showRecord
ViewRecord.RecordFrame showRecord(String title,
CqRecord record,
javax.swing.JComponent[] future)
throws javax.wvcm.WvcmException
- Displays the ALL_FIELD_VALUES property of a record resource in a
table. The columns of the table are determined by the content of the
ViewRecord.fieldMetaProperties
array. The display of most objects is
implemented by the object's own toString() method.
- Parameters:
title
- The title string for the window that contains the tablerecord
- The Record proxy for the record to be displayed. Must
define the ALL_FIELD_VALUES property and the FieldValues
in that property must define the meta-properties listed in
the ViewRecord.fieldMetaProperties
array.future
- Additional window components to be displayed along with
the property table. (Used by extensions to this example).
- Returns:
- A RecordFrame structure containing the GUI components created
by this method.
- Throws:
javax.wvcm.WvcmException
Copyright © IBM 2013. All rights reserved.