com.sybase.uep.bobclient.controls
Interface MobileDataControl

All Known Implementing Classes:
BaseMobileDataControl, CellTable, MobileAppTable, SelectBox, TwoColumnLayout

public interface MobileDataControl

This is the Mobile Data Control interface All controls that requires data contents to be populated needs to implement this control

Author:
tdang

Method Summary
 void clearQuery()
          Clear the cached query
 MBOModel getApplicationData()
          Get the application currently set for this data control
 MBOAttribute[] getColumnAttributes()
          Get the column attributes defined for this control
 int getCurrentRecordIndex()
          Gets the index of current selected row
 java.lang.Object getCurrentRow()
          Get current selected row
 IMobileApplicationDataHandler getDataHandler()
          Gets the data handler
 Query getDataProperties()
          Get the data properties
 java.lang.String getMobileAppID()
          Get the Mobile Application ID
 java.lang.String getMobileApplicationName()
          Get the application data name
 PagingObject getPagingObject()
          Get a new paging object
 java.lang.String getParentAssociationName()
          Get the parent association name
 IBOBScreen getParentScreen()
          Gets the screen that owns this control
 java.lang.Object getParentSelectedRow()
          Get parent selected row
 MBOModel getRelationshipParentAppData()
          Get relationship parent application data
 boolean hasRelationshipAppData()
          Check is this mobile data control contains relationship data
 void initMobileApplicationData()
          Initialize the Mobile Application data Check to see if there are data already synced to the device
 void refreshData()
          Refresh mobile data
 void setApplicationData(MBOModel applicationData)
          Set the application data
 void setCurrentRecordIndex(int currentRecordIndex)
          Sets the index of current selected row
 void setDataProperties(Query dataProps)
          Set the data properties filtering
 void setDynamicNamedQuery(java.lang.String namedQuery)
          Set the dynamic named query
 void setDynamicNamedQueryParameters(java.util.Hashtable parameters)
          Set the dynamic named query parameters hash table
 void setNamedQuery(java.lang.String namedQuery)
          Set the named query
 void setNamedQueryParameters(java.util.Hashtable parameters)
          Set the named query parameters hash table
 void setNamedQuerySubmitElements(java.util.Vector parameters)
          Set the named query submit elements
 void setRelationshipAppData(MBOModel parentAppData, java.lang.Object selectedRow, java.lang.String assoicationName)
          Set relationship application data
 void setupMobileDataControlContextVariables()
          Save current selected row of this mobile data control
 

Method Detail

initMobileApplicationData

void initMobileApplicationData()
Initialize the Mobile Application data Check to see if there are data already synced to the device


getMobileAppID

java.lang.String getMobileAppID()
Get the Mobile Application ID

Returns:
string value of the ID

getMobileApplicationName

java.lang.String getMobileApplicationName()
Get the application data name

Returns:
name of the application data

getApplicationData

MBOModel getApplicationData()
Get the application currently set for this data control

Returns:
MBOModel object

setApplicationData

void setApplicationData(MBOModel applicationData)
Set the application data

Parameters:
applicationData - - relationship application data

getDataProperties

Query getDataProperties()
Get the data properties

Returns:
Query object

setDataProperties

void setDataProperties(Query dataProps)
Set the data properties filtering

Parameters:
dataProps - - DataProperties object

setupMobileDataControlContextVariables

void setupMobileDataControlContextVariables()
Save current selected row of this mobile data control


setRelationshipAppData

void setRelationshipAppData(MBOModel parentAppData,
                            java.lang.Object selectedRow,
                            java.lang.String assoicationName)
Set relationship application data

Parameters:
parentAppData - - parent relationship application data object
selectedRow - - parent relationship selected row object
relationshipData - - relationship data from parent screen
assoicationName - - parent relationship association name

setNamedQuery

void setNamedQuery(java.lang.String namedQuery)
Set the named query

Parameters:
namedQuery - String value for the named query name

setNamedQuerySubmitElements

void setNamedQuerySubmitElements(java.util.Vector parameters)
Set the named query submit elements

Parameters:
parameters - Vector list of SubmitElement objects

setNamedQueryParameters

void setNamedQueryParameters(java.util.Hashtable parameters)
Set the named query parameters hash table

Parameters:
parameters - Hashtable map of name value pair

setDynamicNamedQuery

void setDynamicNamedQuery(java.lang.String namedQuery)
Set the dynamic named query

Parameters:
namedQuery - String value for the dynamic named query name

setDynamicNamedQueryParameters

void setDynamicNamedQueryParameters(java.util.Hashtable parameters)
Set the dynamic named query parameters hash table

Parameters:
parameters - Hashtable map of name value pair

hasRelationshipAppData

boolean hasRelationshipAppData()
Check is this mobile data control contains relationship data

Returns:
true if there are relationship data

getRelationshipParentAppData

MBOModel getRelationshipParentAppData()
Get relationship parent application data

Returns:
Application data object

getParentSelectedRow

java.lang.Object getParentSelectedRow()
Get parent selected row

Returns:
Row object

getCurrentRow

java.lang.Object getCurrentRow()
Get current selected row

Returns:
Row object

getColumnAttributes

MBOAttribute[] getColumnAttributes()
Get the column attributes defined for this control

Returns:
list of MBOAttribute objects

getPagingObject

PagingObject getPagingObject()
Get a new paging object

Returns:
PagingObject

getParentAssociationName

java.lang.String getParentAssociationName()
Get the parent association name

Returns:
association name

getParentScreen

IBOBScreen getParentScreen()
Gets the screen that owns this control

Returns:

getCurrentRecordIndex

int getCurrentRecordIndex()
Gets the index of current selected row

Returns:

getDataHandler

IMobileApplicationDataHandler getDataHandler()
Gets the data handler

Returns:

refreshData

void refreshData()
Refresh mobile data


clearQuery

void clearQuery()
Clear the cached query


setCurrentRecordIndex

void setCurrentRecordIndex(int currentRecordIndex)
Sets the index of current selected row