|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.bmc.mainview.nvbapi.View
com.bmc.mainview.nvbapi.TabularView
public class TabularView
Modification log: JAN2011 Overrides the default refresh behaviour to ensure that the view definition is set for the conversation before the data-get is called, and that each form also refreshes immediately. The base implementation of TabularView only does the data-get on the base view after a refresh, leaving the forms to do the data-get when the fields are later accessed (i.e. the forms are left with their caches cleared ; the next attempt at a row access forces the data-get). The forms size (totalRows) is not cleared with the cache, so that can be incorrect until a row is accessed. If the total rows has decreased, an IllegalArgumentException is thrown. SourceForge Bug ID : 3134484
Field Summary |
---|
Fields inherited from class com.bmc.mainview.nvbapi.View |
---|
localDate, localTime |
Constructor Summary | |
---|---|
TabularView(java.lang.String name,
Conversation conversation,
boolean returnAll,
java.lang.String where)
Creates an object containing the data from a MAINVIEW tabular view |
|
TabularView(java.lang.String name,
Conversation conversation,
boolean returnAll,
java.lang.String where,
ViewListener exit)
Creates an object containing the data from a MAINVIEW tabular view |
|
TabularView(ViewDefinition def,
Conversation conversation)
Creates an object containing the data from a MAINVIEW tabular view |
|
TabularView(ViewDefinition def,
Conversation conversation,
boolean returnAll)
Creates an object containing the data from a MAINVIEW tabular view |
|
TabularView(ViewDefinition def,
Conversation conversation,
boolean returnAll,
java.lang.String where)
Creates an object containing the data from a MAINVIEW tabular view |
|
TabularView(ViewDefinition def,
Conversation conversation,
boolean returnAll,
java.lang.String where,
ViewListener exit)
Creates an object containing the data from a MAINVIEW tabular view |
|
TabularView(ViewDefinition def,
Conversation conversation,
boolean returnAll,
ViewListener exit)
Creates an object containing the data from a MAINVIEW tabular view |
Method Summary | |
---|---|
java.lang.String |
getRawValue(int row,
Field field)
Extract a field value from a row of mapped data record |
TabularView |
openForm(java.lang.String view,
boolean returnAll)
Create a tabular view to represent another form of the same data |
TabularView |
openForm(ViewDefinition def,
boolean returnAll)
Create a tabular view to represent another form of the same data |
void |
refresh()
Release previously gotten data and retrieve current values If used on a form, refreshes the base and all forms |
void |
setQwhere(java.lang.String qwhere)
Set an MVI WHERE clause to be used with this view. |
void |
setWhere(java.lang.String where)
Set an MVI WHERE clause to be used with this view. |
Methods inherited from class com.bmc.mainview.nvbapi.View |
---|
convertTime, fieldCount, getConversation, getField, getField, getQwhere, getRowMax, getValue, getValue, getWhere, setHyperlinks, setRowMax, size, toString |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public TabularView(ViewDefinition def, Conversation conversation, boolean returnAll, java.lang.String where) throws java.io.IOException
def
- The definition of the desired view. This may contain any
desired parameters or filters.conversation
- A conversation produced by HostServer.ConversationFactoryreturnAll
- True if all fields are desired, including hidden fields.where
- A MAINVIEW WHERE clause used to filter the records.
java.io.IOException
- if the rawData cannot be obtained.public TabularView(java.lang.String name, Conversation conversation, boolean returnAll, java.lang.String where) throws java.io.IOException
name
- The name of the desired viewconversation
- A conversation produced by HostServer.ConversationFactoryreturnAll
- True if all fields are desired, including hidden fields.where
- A MAINVIEW WHERE clause used to fiter the records.
java.io.IOException
- if the rawData cannot be obtained.public TabularView(java.lang.String name, Conversation conversation, boolean returnAll, java.lang.String where, ViewListener exit) throws java.io.IOException
name
- The name of the desired viewconversation
- A conversation produced by HostServer.ConversationFactoryreturnAll
- True if all fields are desired, including hidden fields.where
- A MAINVIEW WHERE clause used to filter the records.exit
- A ViewListener to be called during processing.
java.io.IOException
- if the rawData cannot be obtained.public TabularView(ViewDefinition def, Conversation conversation, boolean returnAll, java.lang.String where, ViewListener exit) throws java.io.IOException
def
- The definition of the desired viewconversation
- A conversation produced by HostServer.ConversationFactoryreturnAll
- True if all fields are desired, including hidden fields.where
- A MAINVIEW WHERE clause used to fiter the records.exit
- A ViewListener to be called during processing.
java.io.IOException
- if the rawData cannot be obtained.public TabularView(ViewDefinition def, Conversation conversation, boolean returnAll, ViewListener exit) throws java.io.IOException
def
- The definition of the desired viewconversation
- A conversation produced by HostServer.ConversationFactoryreturnAll
- True if all fields are desired, including hidden fields.exit
- A ViewListener to be called during processing.
java.io.IOException
- if the rawData cannot be obtained.public TabularView(ViewDefinition def, Conversation conversation, boolean returnAll) throws java.io.IOException
def
- The definition of the desired viewconversation
- A conversation produced by HostServer.ConversationFactoryreturnAll
- True if all fields are desired, including hidden fields.
java.io.IOException
- if the rawData cannot be obtained.public TabularView(ViewDefinition def, Conversation conversation) throws java.io.IOException
def
- The definition of the desired viewconversation
- A conversation produced by HostServer.ConversationFactory
java.io.IOException
- if the rawData cannot be obtained.Method Detail |
---|
public TabularView openForm(ViewDefinition def, boolean returnAll) throws java.io.IOException
def
- The new viewreturnAll
- true if hidden fields are needed
java.io.IOException
- NOTE: Requires BPY8796 maintenance level on the host server.public TabularView openForm(java.lang.String view, boolean returnAll) throws java.io.IOException
view
- The name of the new viewreturnAll
- true if hidden fields are needed
java.io.IOException
- NOTE: Requires BPY8796 maintenance level on the host server.public java.lang.String getRawValue(int row, Field field) throws java.io.IOException, java.lang.IllegalArgumentException
getRawValue
in class View
row
- The row number: 1 to nfield
- The field in thuis rawData
java.lang.IllegalArgumentException
- if row number out of range
java.io.IOException
public void setWhere(java.lang.String where)
setWhere
in class View
where
-
java.lang.IllegalStateException
- if data has already been retrieved.ViewListener
public void setQwhere(java.lang.String qwhere)
setQwhere
in class View
qwhere
-
java.lang.IllegalStateException
- if data has already been retrieved.ViewListener
public void refresh() throws java.io.IOException
refresh
in class View
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |