|
|||||||||
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.GridLookupTable
public class GridLookupTable
This is the Grid Lookup Table Contains a table of grid look up records When selected the value will get transferred to the text input extends from TableField
Field Summary |
---|
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 | |
---|---|
GridLookupTable()
Contructor GridLookupTable |
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 |
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 |
---|
public GridLookupTable()
Method Detail |
---|
protected java.lang.String getMobileAppID()
getMobileAppID
in class TableField
String
value for the mobile application IDTableField.getMobileAppID()
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
- - The text value to be display in the footerpublic void refresh()
refresh
in interface Control
refresh
in class TableField
Control.refresh()
protected boolean onSavePrompt()
public MBOModel getApplicationData()
TableField
getApplicationData
in class TableField
MBOModel
object that represents a MBOMBOModel
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 row
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |