|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.rim.device.api.ui.Field
com.sybase.uep.bobclient.controls.TableField
com.sybase.uep.bobclient.controls.MobileAppTable
public class MobileAppTable
This is the Mobile Application Table control It extends from the TableField which draws the table
Field Summary | |
---|---|
static java.lang.String |
DEFAULT_SORT_MENU_LABEL
|
Fields inherited from class com.sybase.uep.bobclient.controls.TableField |
---|
_controlID, _controller, _customEventsHandler, _orientation, DEFAULT_BORDER_COLOR, KEY |
Fields inherited from class net.rim.device.api.ui.Field |
---|
ACTION_INVOKE, EDITABLE, EDITABLE_MASK, FIELD_BOTTOM, FIELD_HALIGN_MASK, FIELD_HCENTER, FIELD_LEADING, FIELD_LEFT, FIELD_RIGHT, FIELD_TOP, FIELD_TRAILING, FIELD_VALIGN_MASK, FIELD_VCENTER, FOCUSABLE, FOCUSABLE_MASK, HIGHLIGHT_FOCUS, HIGHLIGHT_SELECT, NON_FOCUSABLE, NON_SPELLCHECKABLE, READONLY, SPELLCHECKABLE, SPELLCHECKABLE_MASK, STATUS_MOVE_FOCUS_HORIZONTALLY, STATUS_MOVE_FOCUS_VERTICALLY, USE_ALL_HEIGHT, USE_ALL_WIDTH, VISUAL_STATE_ACTIVE, VISUAL_STATE_DISABLED, VISUAL_STATE_DISABLED_FOCUS, VISUAL_STATE_FOCUS, VISUAL_STATE_NORMAL |
Fields inherited from interface net.rim.device.api.ui.DrawStyle |
---|
BASELINE, BOTTOM, ELLIPSIS, HALIGN_MASK, HCENTER, HDEFAULT, HFULL, LEADING, LEFT, RIGHT, TOP, TRAILING, TRUNCATE_BEGINNING, VALIGN_MASK, VCENTER, VDEFAULT, VFULL |
Constructor Summary | |
---|---|
MobileAppTable()
Constructor to create a table control |
Method Summary | |
---|---|
void |
clearQuery()
Clear the cached query |
protected ImageScreen |
createImageScreen(int rowIndex,
int columnIndex)
Extract the image content from the table cell and create a image screen to show it. |
MBOModel |
getApplicationData()
Get the Mobile Application object |
MBOAttribute[] |
getColumnAttributes()
Get the column attributes defined for this table |
protected LogicalType |
getColumnLogicalType(int columnIndex)
(non-Javadoc) |
protected java.lang.String |
getColumnSchemaType(int columnIndex)
(non-Javadoc) |
protected boolean |
getColumnValues(int rowIndex,
java.lang.Object[] columns)
(non-Javadoc) |
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 |
protected java.util.Vector |
getLogicalTypeItems()
(non-Javadoc) |
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()
(non-Javadoc) |
java.lang.Object |
getParentSelectedRow()
Get parent selected row |
MBOModel |
getRelationshipParentAppData()
Get relationship parent application dat |
java.lang.Object |
getRowByIndex(int rowIndex)
Retrieve data of a row by row index of the table |
java.lang.String |
getSortMenuLabel()
Get the sort menu label |
boolean |
hasRelationshipAppData()
Check is this mobile data control contains relationship data |
boolean |
hasSortMenus()
Override the super. |
void |
initMobileApplicationData()
Initialize the Mobile Application data Check to see if there are data already synced to the device |
void |
modelChanged(ModelChangeEvent event)
(non-Javadoc) |
void |
refresh()
Refresh the table data |
void |
refreshData()
Refresh mobile data |
protected void |
refreshFooter(java.lang.String valueToBeDisplay)
(non-Javadoc) |
boolean |
searchRelationshipAppData(Query dataProps)
Perform search on relationship application data |
void |
setApplicationData(MBOModel applicationData)
Set the application data |
void |
setBobcscreen(IBOBScreen screen)
Set screen |
void |
setColumnConfig(java.lang.String[] config)
Set column config |
void |
setColumnWidths(int[] widths)
Set column widths |
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)
(non-Javadoc) |
void |
setDynamicNamedQueryParameters(java.util.Hashtable parameters)
(non-Javadoc) |
void |
setErrorLoadingMBOMessage(int resourceID)
Set the error loading MBO message |
void |
setErrorLoadingMBOMessage(java.lang.String message)
Set the error loading MBO message |
void |
setFooterField(FooterField field)
Set footer field |
void |
setMobileAppID(java.lang.String appID)
Set mobile application id |
void |
setNamedQuery(java.lang.String namedQuery)
(non-Javadoc) |
void |
setNamedQueryParameters(java.util.Hashtable parameters)
(non-Javadoc) |
void |
setNamedQuerySubmitElements(java.util.Vector parameters)
(non-Javadoc) |
void |
setPagingObject(PagingObject pagingObject)
Set a new paging object |
void |
setProperty(int key,
java.lang.Object value)
Set the property values for the table |
void |
setRelationshipAppData(MBOModel parentAppData,
java.lang.Object selectedRow,
java.lang.String assoicationName)
Set relationship application data |
void |
setSortMenuLabel(int resourceID)
Set the sort menu label |
void |
setSortMenuLabel(java.lang.String label)
Set the sort menu label |
void |
setupMobileDataControlContextVariables()
Save current selected row of this mobile data control |
void |
setupTable()
|
Methods inherited from class net.rim.device.api.ui.Field |
---|
drawHighlightRegion, fieldChangeNotify, focusAdd, focusChangeNotify, focusRemove, getAccessibleContext, getBackground, getBackground, getBorder, getBorder, getBorder, getChangeListener, getContentHeight, getContentLeft, getContentRect, getContentRect, getContentTop, getContentWidth, getContextMenu, getContextMenu, getCookie, getExtent, getExtent, getFieldStyle, getFocusListener, getFont, getHeight, getIndex, getLeafFieldWithFocus, getLeft, getManager, getMargin, getMarginBottom, getMarginLeft, getMarginRight, getMarginTop, getOriginal, getPadding, getPaddingBottom, getPaddingLeft, getPaddingRight, getPaddingTop, getScreen, getState, getStyle, getTop, getVisualState, getWidth, invalidate, invalidateAll, invokeAction, isDataValid, isDirty, isEditable, isFocus, isFocusable, isMuddy, isPasteable, isSelectable, isSelecting, isSelectionCopyable, isSelectionCutable, isSelectionDeleteable, isSpellCheckable, isStyle, isVisible, keyControl, keyDown, keyRepeat, keyStatus, keyUp, makeContextMenu, moveFocus, onDisplay, onExposed, onMenuDismissed, onMenuDismissed, onObscured, onUndisplay, onVisibilityChange, paintBackground, paste, select, selectionCopy, selectionCut, selectionDelete, setBackground, setBackground, setBorder, setBorder, setBorder, setBorder, setBorder, setChangeListener, setCookie, setDirty, setEditable, setExtent, setFocus, setFocusListener, setFont, setFont, setMargin, setMargin, setMuddy, setNonSpellCheckable, setPadding, setPadding, setPosition, setVisualState, trackwheelClick, trackwheelUnclick, updateLayout |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String DEFAULT_SORT_MENU_LABEL
Constructor Detail |
---|
public MobileAppTable()
Method Detail |
---|
public boolean hasSortMenus()
hasSortMenus
in class TableField
true
if there are sort menus, otherwise false
public MBOModel getApplicationData()
getApplicationData
in interface MobileDataControl
getApplicationData
in class TableField
MBOModel
public java.lang.String getParentAssociationName()
MobileDataControl
getParentAssociationName
in interface MobileDataControl
public java.lang.String getMobileAppID()
getMobileAppID
in interface MobileDataControl
getMobileAppID
in class TableField
public java.lang.String getMobileApplicationName()
getMobileApplicationName
in interface MobileDataControl
public void setApplicationData(MBOModel applicationData)
setApplicationData
in interface MobileDataControl
relationshipData
- - relationship application datapublic void setRelationshipAppData(MBOModel parentAppData, java.lang.Object selectedRow, java.lang.String assoicationName)
setRelationshipAppData
in interface MobileDataControl
parentAppData
- - parent relationship application data objectselectedRow
- - parent relationship selected row objectrelationshipData
- - relationship data from parent screenassoicationName
- - parent relationship association namepublic boolean hasRelationshipAppData()
hasRelationshipAppData
in interface MobileDataControl
public MBOModel getRelationshipParentAppData()
getRelationshipParentAppData
in interface MobileDataControl
public java.lang.Object getParentSelectedRow()
getParentSelectedRow
in interface MobileDataControl
public boolean searchRelationshipAppData(Query dataProps)
dataProps
- - search data properties definition
public MBOAttribute[] getColumnAttributes()
getColumnAttributes
in interface MobileDataControl
public java.lang.Object getCurrentRow()
getCurrentRow
in interface MobileDataControl
public Query getDataProperties()
getDataProperties
in interface MobileDataControl
public void setDataProperties(Query dataProps)
setDataProperties
in interface MobileDataControl
dataProps
- - DataProperties objectpublic void initMobileApplicationData()
initMobileApplicationData
in interface MobileDataControl
public void setupTable()
public void setupMobileDataControlContextVariables()
setupMobileDataControlContextVariables
in interface MobileDataControl
protected boolean getColumnValues(int rowIndex, java.lang.Object[] columns)
getColumnValues
in class TableField
rowIndex
- int
value for the row index to retrieve the data valuescolumns
- Object
array to hold the data values
true
if the row is new or updated, otherise false
TableField.getColumnValues( int rowIndex, Object[] columns )
protected LogicalType getColumnLogicalType(int columnIndex)
getColumnLogicalType
in class TableField
columnIndex
- int
value for the column on table
LogicalType
logical type objectTableField.getColumnLogicalType( int columnIndex )
protected java.util.Vector getLogicalTypeItems()
getLogicalTypeItems
in class TableField
Vector
list of logical type itemsTableField.getLogicalTypeItems()
protected java.lang.String getColumnSchemaType(int columnIndex)
getColumnSchemaType
in class TableField
columnIndex
- int
value for the column index
String
value for the column schema type.
Can be values in MBOAttribute
schema type constants.
For example, MBOAttribute.SCHEMA_TYPE_STRING
, MBOAttribute.SCHEMA_TYPE_INT
, MBOAttribute.SCHEMA_TYPE_DATE
TableField.getColumnSchemaType( int columnIndex )
protected void refreshFooter(java.lang.String valueToBeDisplay)
refreshFooter
in class TableField
valueToBeDisplay
- String
value for the text value to be displayed in the footerTableField.refreshFooter( String valueToBeDisplay )
public void refresh()
refresh
in interface Control
refresh
in class TableField
Control.refresh()
public void setSortMenuLabel(int resourceID)
resourceID
- - localization resource IDpublic void setSortMenuLabel(java.lang.String label)
label
- - string value for labelpublic java.lang.String getSortMenuLabel()
public void setErrorLoadingMBOMessage(int resourceID)
resourceID
- - localization resource IDpublic void setErrorLoadingMBOMessage(java.lang.String message)
message
- - string value for messagepublic void setProperty(int key, java.lang.Object value)
setProperty
in class TableField
key
- - Unique key of a specific table attributevalue
- - The supplied value for this attributepublic void setMobileAppID(java.lang.String appID)
mobileAppID
- - Mobile Application IDpublic void setFooterField(FooterField field)
field
- - Footer control to show the table cell datapublic void setBobcscreen(IBOBScreen screen)
bobcscreen
- - the screen that the table will be added topublic void setColumnConfig(java.lang.String[] config)
config
- - string array of column configuration namespublic void setColumnWidths(int[] widths)
widths
- - int array of defined column width percentagepublic PagingObject getPagingObject()
getPagingObject
in interface MobileDataControl
public void setPagingObject(PagingObject pagingObject)
pagingObject
- - paging objectpublic void setNamedQuery(java.lang.String namedQuery)
setNamedQuery
in interface MobileDataControl
namedQuery
- String
value for the named query nameMobileDataControl.setNamedQuery(String)
public void setNamedQuerySubmitElements(java.util.Vector parameters)
setNamedQuerySubmitElements
in interface MobileDataControl
parameters
- Vector
list of SubmitElement objectscom.sybase.uep.bobclient.controls.MobileDataControl#setNamedQuerySubmitElements(String)
public void setNamedQueryParameters(java.util.Hashtable parameters)
setNamedQueryParameters
in interface MobileDataControl
parameters
- Hashtable
map of name value pairMobileDataControl.setNamedQueryParameters(Hashtable)
public void setDynamicNamedQuery(java.lang.String namedQuery)
setDynamicNamedQuery
in interface MobileDataControl
namedQuery
- String
value for the dynamic named query nameMobileDataControl.setDynamicNamedQuery(String)
public void setDynamicNamedQueryParameters(java.util.Hashtable parameters)
setDynamicNamedQueryParameters
in interface MobileDataControl
parameters
- Hashtable
map of name value pairMobileDataControl.setDynamicNamedQueryParameters(Hashtable)
protected ImageScreen createImageScreen(int rowIndex, int columnIndex)
createImageScreen
in class TableField
rowIndex
- row index of the table cellcolumnIndex
- column index of the table cell
ImageScreen
image screen objectImageScreen
public IBOBScreen getParentScreen()
getParentScreen
in interface MobileDataControl
MobileDataControl.getParentScreen()
public void modelChanged(ModelChangeEvent event)
modelChanged
in interface IModelChangeListener
event
- ModelChangeEvent
model change eventIModelChangeListener.modelChanged(com.sybase.uep.bobclient.data.ModelChangeEvent)
public int getCurrentRecordIndex()
MobileDataControl
getCurrentRecordIndex
in interface MobileDataControl
public void setCurrentRecordIndex(int currentRecordIndex)
MobileDataControl
setCurrentRecordIndex
in interface MobileDataControl
public IMobileApplicationDataHandler getDataHandler()
MobileDataControl
getDataHandler
in interface MobileDataControl
public void refreshData()
MobileDataControl
refreshData
in interface MobileDataControl
public java.lang.Object getRowByIndex(int rowIndex)
TableField
getRowByIndex
in class TableField
rowIndex
- int
value for the row index that starts from 0
OBject
that represents data of a table rowpublic void clearQuery()
MobileDataControl
clearQuery
in interface MobileDataControl
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |