Project: stp

com.ibm.rational.stp.client.samples
Class ViewRecord.Viewer

Object
  extended by 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.


Field Summary
protected  CqProvider m_provider
           
 
Constructor Summary
ViewRecord.Viewer(CqProvider provider)
           
 
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
 

Field Detail

m_provider

protected CqProvider m_provider
Constructor Detail

ViewRecord.Viewer

ViewRecord.Viewer(CqProvider provider)
Method Detail

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 table
record - 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

Generated Thu 13-Feb-2014 03:19 AM

Copyright © IBM 2014. All rights reserved.