|
Project: stp | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Objectcom.ibm.rational.stp.client.samples.ViewRecord
public class ViewRecord
View the current state of a record
Nested Class Summary | |
---|---|
(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. |
Field Summary | |
---|---|
(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 . |
(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 Summary | |
---|---|
ViewRecord()
|
Method Summary | |
---|---|
(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. |
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
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>, int, java.lang.String)
.
private static int g_windowX
private static int g_windowY
Constructor Detail |
---|
public ViewRecord()
Method Detail |
---|
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.
|
Generated Mon 14-Nov-2011 10:27 PM | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |