com.sybase.uep.bobclient.controls
Class PushLogsTable

java.lang.Object
  extended by net.rim.device.api.ui.Field
      extended by com.sybase.uep.bobclient.controls.TableField
          extended by com.sybase.uep.bobclient.controls.PushLogsTable
All Implemented Interfaces:
Control, net.rim.device.api.ui.DrawStyle

public class PushLogsTable
extends TableField

This is the Push Logs Table Contains all the push logs extends from TableField

Author:
tdang

Field Summary
 
Fields inherited from class com.sybase.uep.bobclient.controls.TableField
_controlID, _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
PushLogsTable(BaseBOBScreen screen)
          Constructor PushLogsTable to create push logs screen
 
Method Summary
 MBOModel getApplicationData()
          Retrieve the MBO that is set to the 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)
protected  java.util.Vector getLogicalTypeItems()
          (non-Javadoc)
protected  java.lang.String getMobileAppID()
          (non-Javadoc)
 java.lang.Object getRowByIndex(int rowIndex)
          Retrieve data of a row by row index of the table
protected  boolean onSavePrompt()
          This is called when the user click the escape We will then want to ask if the user want to save the form
 void refresh()
          Refresh the table data
protected  void refreshFooter(java.lang.String valueToBeDisplay)
          Refresh the footer field from the screen that contains this table
 void setSynchronizationGroup(SynchronizationGroup syncGroup)
          Set synchronization group
 
Methods inherited from class com.sybase.uep.bobclient.controls.TableField
addMenuItem, addMenuSeperator, clearMenuItems, createImageScreen, drawFocus, getColSpan, getControlID, getCustomEventsDelegate, getDataRecordCount, getEvenRowFontStyle, getFocusFontStyle, getFocusRect, getHeaderFontStyle, getHeaderHeight, getHorizontalAlignment, getName, getOddRowFontStyle, getPendingFontStyle, getPreferredHeight, getPreferredWidth, getRowCount, getRowFont, getRowHeight, getRowSpan, getSelectedColumn, getSelectedRow, getValue, getVerticalAlignment, getVisiableRows, hasSearchMenus, hasSortMenus, invalidate, keyChar, layout, makeContextMenu, moveFocus, moveToBottom, moveToTop, navigationClick, navigationMovement, navigationUnclick, onFocus, onRecordChange, onUnfocus, pageDown, pageUp, paint, populateEmptyTable, resizeColumns, setBackgroundColor, setBanding, setBorder, setBorderColor, setColSpan, setColumnClickThru, setColumnLabel, setColumns, setColumnWidth, setControlID, setCustomEventsDelegate, setDataRecordCount, setDefaultAction, setEvenRowFontStyle, setFocusFontStyle, setHasAltRow, setHasBorder, setHasSearchMenus, setHasSortMenus, setHeaderFontStyle, setHrefTextValue, setImageTextValue, setLayoutHeight, setLayoutWidth, setOddRowFontStyle, setOuterBorderColor, setPendingFontStyle, setProperty, setRowCount, setRowSpan, setSelectedRow, setTopRow, setupVisibleRows, setVisibleRows, touchEvent
 
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
 

Constructor Detail

PushLogsTable

public PushLogsTable(BaseBOBScreen screen)
Constructor PushLogsTable to create push logs screen

Method Detail

getMobileAppID

protected java.lang.String getMobileAppID()
(non-Javadoc)

Specified by:
getMobileAppID in class TableField
Returns:
String value for the mobile application ID
See Also:
TableField.getMobileAppID()

getColumnValues

protected boolean getColumnValues(int rowIndex,
                                  java.lang.Object[] columns)
(non-Javadoc)

Specified by:
getColumnValues in class TableField
Parameters:
rowIndex - int value for the row index to retrieve the data values
columns - Object array to hold the data values
Returns:
true if the row is new or updated, otherise false
See Also:
TableField.getColumnValues( int rowIndex, Object[] columns )

getColumnLogicalType

protected LogicalType getColumnLogicalType(int columnIndex)
(non-Javadoc)

Specified by:
getColumnLogicalType in class TableField
Parameters:
columnIndex - int value for the column on table
Returns:
LogicalType logical type object
See Also:
TableField.getColumnLogicalType( int columnIndex )

getLogicalTypeItems

protected java.util.Vector getLogicalTypeItems()
(non-Javadoc)

Specified by:
getLogicalTypeItems in class TableField
Returns:
Vector list of logical type items
See Also:
TableField.getLogicalTypeItems()

getColumnSchemaType

protected java.lang.String getColumnSchemaType(int columnIndex)
(non-Javadoc)

Specified by:
getColumnSchemaType in class TableField
Parameters:
columnIndex - int value for the column index
Returns:
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
See Also:
TableField.getColumnSchemaType( int columnIndex )

refreshFooter

protected void refreshFooter(java.lang.String valueToBeDisplay)
Refresh the footer field from the screen that contains this table

Specified by:
refreshFooter in class TableField
Parameters:
valueToBeDisplay - - The text value to be display in the footer

refresh

public void refresh()
Refresh the table data

Specified by:
refresh in interface Control
Overrides:
refresh in class TableField
See Also:
Control.refresh()

onSavePrompt

protected boolean onSavePrompt()
This is called when the user click the escape We will then want to ask if the user want to save the form

Returns:
True, if prompt's resulting choice is to save; false if the prompt's resulting choice is to cancel

setSynchronizationGroup

public void setSynchronizationGroup(SynchronizationGroup syncGroup)
Set synchronization group

Parameters:
syncGroup - - Synchronization Group

getApplicationData

public MBOModel getApplicationData()
Description copied from class: TableField
Retrieve the MBO that is set to the table

Specified by:
getApplicationData in class TableField
Returns:
MBOModel object that represents a MBO
See Also:
MBOModel

getRowByIndex

public java.lang.Object getRowByIndex(int rowIndex)
Description copied from class: TableField
Retrieve data of a row by row index of the table

Specified by:
getRowByIndex in class TableField
Parameters:
rowIndex - int value for the row index that starts from 0
Returns:
OBject that represents data of a table row