public class ViewRecord extends Object
Modifier and Type | Class and Description |
---|---|
(package private) static class |
ViewRecord.RecordFrame
An extension of JFrame for the record field display,
exposing to clients the JTable component of the frame and
the field list that is being displayed in the table.
|
(package private) static class |
ViewRecord.Viewer
An instance of ExecuteQuery.Viewer that allows (read-only) viewing of a
Record resource.
|
Modifier and Type | Field and Description |
---|---|
(package private) static javax.wvcm.PropertyRequestItem.PropertyRequest |
ATTACHMENT_PROPERTIES
The attachment properties to be displayed in the attachment selection
list generated by
selectAttachment(java.awt.Component, com.ibm.rational.wvcm.stp.StpProperty.List<com.ibm.rational.wvcm.stp.cq.CqFieldValue<?>>, int, java.lang.String) . |
(package private) static javax.wvcm.PropertyRequestItem.NestedPropertyName[] |
fieldMetaProperties
The field meta-properties to be requested and displayed
|
private static int |
g_windowX
X offset for the next window to be displayed
|
private static int |
g_windowY
Y offset for the next window to be displayed
|
(package private) static javax.wvcm.PropertyRequestItem.PropertyRequest |
RECORD_PROPERTIES
The PropertyRequest to use when reading data from a record to be
displayed by this viewer.
|
(package private) static javax.wvcm.PropertyRequestItem.PropertyRequest |
VALUE_PROPERTIES
Properties to be requested from each record field valie, including
specific additional information for attachments
|
Constructor and Description |
---|
ViewRecord() |
Modifier and Type | Method and Description |
---|---|
(package private) static CqRecord |
getRecordReferencedAt(com.ibm.rational.wvcm.stp.StpProperty.List<CqFieldValue<?>> fields,
int row)
Examines the property value of a field and, if it references a record,
returns a proxy for the referenced record.
|
(package private) static boolean |
isAttachmentList(com.ibm.rational.wvcm.stp.StpProperty.List<CqFieldValue<?>> fields,
int row)
Whether or not the indicated field is an attachment field.
|
static void |
main(String[] args)
The main program for the ViewRecord example.
|
(package private) static CqAttachment |
selectAttachment(java.awt.Component frame,
com.ibm.rational.wvcm.stp.StpProperty.List<CqFieldValue<?>> fields,
int row,
String op)
Presents to the user a list of the attachments associated with a
specified field of a record and allows the user to select one.
|
static final javax.wvcm.PropertyRequestItem.PropertyRequest VALUE_PROPERTIES
static final javax.wvcm.PropertyRequestItem.NestedPropertyName[] fieldMetaProperties
static final javax.wvcm.PropertyRequestItem.PropertyRequest RECORD_PROPERTIES
static final javax.wvcm.PropertyRequestItem.PropertyRequest ATTACHMENT_PROPERTIES
selectAttachment(java.awt.Component, com.ibm.rational.wvcm.stp.StpProperty.List<com.ibm.rational.wvcm.stp.cq.CqFieldValue<?>>, int, java.lang.String)
.private static int g_windowX
private static int g_windowY
public ViewRecord()
static CqRecord getRecordReferencedAt(com.ibm.rational.wvcm.stp.StpProperty.List<CqFieldValue<?>> fields, int row)
fields
- The Property.List to examine.row
- The index of the element in the list to examine.static boolean isAttachmentList(com.ibm.rational.wvcm.stp.StpProperty.List<CqFieldValue<?>> fields, int row)
fields
- The Property.List to examine.row
- The index of the element in the list to examine.static CqAttachment selectAttachment(java.awt.Component frame, com.ibm.rational.wvcm.stp.StpProperty.List<CqFieldValue<?>> fields, int row, String op)
frame
- The parent frame for the dialog generated by this method.fields
- The Property.List to examine.row
- The index of the element in the list to examine.op
- A string identifying the operation that will be performed on
the selected attachment.public static void main(String[] args)
args
- not used.Copyright © IBM 2016. All rights reserved.