|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.rim.device.api.ui.Field
net.rim.device.api.ui.Manager
com.sybase.uep.bobclient.controls.LayoutManager
com.sybase.uep.bobclient.controls.TwoColumnLayout
public class TwoColumnLayout
This is the two column layout
Field Summary | |
---|---|
static int |
DEFAULT_BACKGROUND_COLOR
|
static char |
DEFAULT_NEXT_HOT_KEY
|
static java.lang.String |
DEFAULT_NEXT_MENU_LABEL
|
static char |
DEFAULT_PREVIOUS_HOT_KEY
|
static java.lang.String |
DEFAULT_PREVIOUS_MENU_LABEL
|
Fields inherited from class com.sybase.uep.bobclient.controls.LayoutManager |
---|
_columnPercentages, _controlID, _currentRowLayout, _customEventsHandler, _orientation, DEFAULT_MARGIN, DEFAULT_SPACING |
Fields inherited from class net.rim.device.api.ui.Manager |
---|
BOTTOMMOST, DOWNWARD, HORIZONTAL_SCROLL, HORIZONTAL_SCROLL_MASK, HORIZONTAL_SCROLLBAR, HORIZONTAL_SCROLLBAR_MASK, LEAVE_BLANK_SPACE, LEFTMOST, LEFTWARD, NO_HORIZONTAL_SCROLL, NO_HORIZONTAL_SCROLLBAR, NO_SCROLL_RESET, NO_VERTICAL_SCROLL, NO_VERTICAL_SCROLLBAR, QUANTA_FONT, RIGHTMOST, RIGHTWARD, TOPMOST, UPWARD, VERTICAL_SCROLL, VERTICAL_SCROLL_MASK, VERTICAL_SCROLLBAR, VERTICAL_SCROLLBAR_MASK |
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.FocusChangeListener |
---|
FOCUS_CHANGED, FOCUS_GAINED, FOCUS_LOST |
Constructor Summary | |
---|---|
TwoColumnLayout(java.lang.String mobileAppID,
int leftColumnPercentage,
int currentRecordIndex,
long leftColumnAlignment,
long rightColumnAlignment,
FontStyle displayFontStyle,
FontStyle evenRowFontStyle,
FontStyle oddRowFontStyle,
FontStyle focusFontStyle,
FontStyle pendingFontStyle,
boolean showNextPrevMenu,
java.lang.String[] columnConfig,
IBOBScreen screen)
Two Column Layout constructor |
|
TwoColumnLayout(java.lang.String mobileAppID,
int leftColumnPercentage,
int currentRecordIndex,
long leftColumnAlignment,
long rightColumnAlignment,
FooterField footerField,
FontStyle displayFontStyle,
FontStyle evenRowFontStyle,
FontStyle oddRowFontStyle,
FontStyle focusFontStyle,
FontStyle pendingFontStyle,
boolean showNextPrevMenu,
java.lang.String[] columnConfig,
IBOBScreen screen)
Two Column Layout constructor |
Method Summary | |
---|---|
void |
clearMenuItems()
Remove all the menu items |
void |
clearQuery()
Clear the cached query |
void |
focusChanged(net.rim.device.api.ui.Field field,
int eventType)
(non-Javadoc) |
MBOModel |
getApplicationData()
Retrieve the mobile application currently set for this table |
int |
getColSpan()
(non-Javadoc) |
MBOAttribute[] |
getColumnAttributes()
Retrieve the column attributes defined for this 2 column layout |
int |
getCurrentRecordIndex()
Retrieve the current record index |
java.lang.Object |
getCurrentRow()
Retrieve current selected row |
IMobileApplicationDataHandler |
getDataHandler()
Retrieve the mobile application data hander |
Query |
getDataProperties()
Retrieve the data properties |
FontStyle |
getFocusFontStyle()
Get the focus font style of the right hand controls |
long |
getHorizontalAlignment()
(non-Javadoc) |
long |
getLeftColumnAlignment()
Get the left column alignment |
java.lang.String |
getMobileAppID()
Retrieve the Mobile Application ID |
java.lang.String |
getMobileApplicationName()
Retrieve the application data name |
java.lang.String |
getName()
(non-Javadoc) |
PagingObject |
getPagingObject()
Get a new paging object |
java.lang.String |
getParentAssociationName()
Retrieve the parent assoication name |
IBOBScreen |
getParentScreen()
(non-Javadoc) |
java.lang.Object |
getParentSelectedRow()
Retrieve parent selected row |
FontStyle |
getPendingFontStyle()
Get the pending font style of the right hand controls |
int |
getPreferredHeight()
Retrieves this field's preferred height. |
int |
getPreferredWidth()
Retrieves this field's preferred width. |
MBOModel |
getRelationshipParentAppData()
Retrieve relationship parent application data |
long |
getRightColumnAlignment()
Retrieve the right column alignment |
int |
getRowSpan()
(non-Javadoc) |
boolean |
getShowNextPrevMenu()
Get if we are showing the next and previous menus |
java.lang.Object |
getValue()
(non-Javadoc) |
long |
getVerticalAlignment()
(non-Javadoc) |
boolean |
hasRelationshipAppData()
Check is this mobile data control contains relationship data |
void |
initialize()
Draw the 2 column list |
void |
initMobileApplicationData()
Initialize the Mobile Application data Check to see if there are data already synced to the device |
boolean |
isDeleted()
Check to see if current record is deleted |
boolean |
isDirty()
Check to see if current record is new or updated |
boolean |
isFocusedOn()
Check to see if this control is being focused on |
boolean |
isNew()
Check to see if current record is new |
boolean |
isUpdated()
Check to see if current record is updated |
boolean |
keyChar(char key,
int status,
int time)
(non-Javadoc) |
protected void |
makeContextMenu(net.rim.device.api.ui.ContextMenu menu)
(non-Javadoc) |
void |
modelChanged(ModelChangeEvent event)
(non-Javadoc) |
void |
nextRecord()
Go to the next record |
protected void |
onRecordChange()
This method is called when the record selection changes. |
protected void |
paint(net.rim.device.api.ui.Graphics g)
(non-Javadoc) |
protected void |
paintBackground(net.rim.device.api.ui.Graphics g)
|
void |
previousRecord()
Go to the previous record |
void |
refresh()
(non-Javadoc) |
void |
refreshData()
Refresh the data |
void |
setApplicationData(MBOModel applicationData)
Set the application data |
void |
setBackgroundColor(int bgcolor)
(non-Javadoc) |
void |
setBorderColor(int color)
Set the border color |
void |
setColSpan(int colspan)
(non-Javadoc) |
void |
setCurrentRecordIndex(int currentRecordIndex)
Set the current record index |
void |
setCurrentRowIndex(int currentRecordIndex)
Set the current row index |
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 |
setEnableHotKeys(boolean bol)
Disable or enable the next and previous hot keys |
void |
setErrorLoadingMobileAppMessage(int resourceID)
Set the error loading mobile application message |
void |
setErrorLoadingMobileAppMessage(java.lang.String message)
Set the error loading mobile application message |
void |
setFocusFontStyle(FontStyle fontStyle)
Set the focus font style for the right hand controls |
void |
setLayoutHeight(int height)
(non-Javadoc) |
void |
setLayoutWidth(int width)
(non-Javadoc) |
void |
setLeftColumnAlignment(long alignment)
Set the left column alignment |
void |
setMobileAppID(java.lang.String appId)
(non-Javadoc) |
void |
setMobileApplicationDataHandler(MobileApplicationDataHandler dataHandler)
Sets up the data handler of the list details from the table context |
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 |
setNextHotKey(char c)
Set the next hot key |
void |
setNextMenuLabel(int resourceID)
Set the next menu label |
void |
setNextMenuLabel(java.lang.String label)
Set the next menu label |
void |
setPagingObject(PagingObject pagingObject)
Set a new paging object |
void |
setPendingFontStyle(FontStyle fontStyle)
Set the Pending font style for the right hand controls |
void |
setPreviousHotKey(char c)
Set the previous hot key |
void |
setPreviousMenuLabel(int resourceID)
Set the previous menu label |
void |
setPreviousMenuLabel(java.lang.String label)
Set the previous menu label |
void |
setProperty(int key,
long alignment)
Set the property alignment |
void |
setProperty(int key,
java.lang.Object value)
Set the property values for this tab layout manager |
void |
setRelationshipAppData(MBOModel parentAppData,
java.lang.Object selectedRow,
java.lang.String assoicationName)
Set relationship application data |
void |
setRightColumnAlignment(long alignment)
Set the right column alignment |
void |
setRowSpan(int rowspan)
(non-Javadoc) |
void |
setShowNextPrevMenu(boolean showNextPrevMenu)
Set if we want to show the next and previous menus |
void |
setupMobileDataControlContextVariables()
Saves current selected row of this mobile data control |
protected boolean |
touchEvent(net.rim.device.api.ui.TouchEvent message)
|
void |
updateMobileDataControlContextVariables(boolean isAddtoContext)
Updates current selected row of this mobile data control |
Methods inherited from class net.rim.device.api.ui.Manager |
---|
add, clearCustomScrollArrows, delete, deleteRange, getAccessibleContext, getField, getFieldAtLocation, getFieldCount, getFieldWithFocusIndex, getFocusRect, getHorizontalScroll, getLeafFieldWithFocus, getPreferredHeightOfChild, getPreferredWidthOfChild, getVerticalScroll, getVirtualHeight, getVirtualWidth, getVisibleHeight, getVisibleWidth, insert, invalidate, invalidate, invalidateFieldRange, invokeAction, isDataValid, isDownArrowShown, isFocusable, isMuddy, isSelecting, isUpArrowShown, isValidLayout, keyControl, keyDown, keyRepeat, keyStatus, keyUp, layout, layoutChild, makeMenu, moveFocus, moveFocus, moveFocus, nextFocus, nextFocus, onUndisplay, paintChild, replace, setDirty, setFocus, setHorizontalQuantization, setHorizontalScroll, setNonfocusableOverride, setPositionChild, setScrollListener, setVerticalQuantization, setVerticalScroll, setVirtualExtent, subpaint, trackwheelClick, trackwheelUnclick |
Methods inherited from class net.rim.device.api.ui.Field |
---|
drawHighlightRegion, fieldChangeNotify, focusAdd, focusChangeNotify, focusRemove, getBackground, getBackground, getBorder, getBorder, getBorder, getChangeListener, getContentHeight, getContentLeft, getContentRect, getContentRect, getContentTop, getContentWidth, getContextMenu, getContextMenu, getCookie, getExtent, getExtent, getFieldStyle, getFocusListener, getFont, getHeight, getIndex, getLeft, getManager, getMargin, getMarginBottom, getMarginLeft, getMarginRight, getMarginTop, getOriginal, getPadding, getPaddingBottom, getPaddingLeft, getPaddingRight, getPaddingTop, getScreen, getState, getStyle, getTop, getVisualState, getWidth, invalidateAll, isEditable, isFocus, isPasteable, isSelectable, isSelectionCopyable, isSelectionCutable, isSelectionDeleteable, isSpellCheckable, isStyle, isVisible, makeContextMenu, onDisplay, onExposed, onMenuDismissed, onMenuDismissed, onObscured, onVisibilityChange, paste, select, selectionCopy, selectionCut, selectionDelete, setBackground, setBackground, setBorder, setBorder, setBorder, setBorder, setBorder, setChangeListener, setCookie, setEditable, setExtent, setFocus, setFocusListener, setFont, setFont, setMargin, setMargin, setMuddy, setNonSpellCheckable, setPadding, setPadding, setPosition, setVisualState, updateLayout |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int DEFAULT_BACKGROUND_COLOR
public static final java.lang.String DEFAULT_PREVIOUS_MENU_LABEL
public static final java.lang.String DEFAULT_NEXT_MENU_LABEL
public static final char DEFAULT_PREVIOUS_HOT_KEY
public static final char DEFAULT_NEXT_HOT_KEY
Constructor Detail |
---|
public TwoColumnLayout(java.lang.String mobileAppID, int leftColumnPercentage, int currentRecordIndex, long leftColumnAlignment, long rightColumnAlignment, FontStyle displayFontStyle, FontStyle evenRowFontStyle, FontStyle oddRowFontStyle, FontStyle focusFontStyle, FontStyle pendingFontStyle, boolean showNextPrevMenu, java.lang.String[] columnConfig, IBOBScreen screen)
mobileAppID
- String
value for the mobile application IDleftColumnPercentage
- int
value for the left side column percentagecurrentRecordIndex
- int
value for the current record indexleftColumnAlignment
- int
value for the left column aligment
eg. Field.FIELD_LEFT
, Field.FIELD_RIGHT
, Field.FIELD_HCENTER
, etc.rightColumnAlignment
- int
value for the right column alignment
eg. Field.FIELD_LEFT
, Field.FIELD_RIGHT
, Field.FIELD_HCENTER
, etc.displayFontStyle
- FontStyle
font style object for the displayevenRowFontStyle
- FontStyle
font style object for the even rowoddRowFontStyle
- FontStyle
font style object for the odd rowfocusFontStyle
- FontStyle
font style object for the focus textpendingFontStyle
- FontStyle
font style object for the pending recordshowNextPrevMenu
- true
if we want to show the next and previous menu, otherwise false
columnConfig
- String
array of column configuration namesscreen
- IBOBScreen
screen that contains this controlpublic TwoColumnLayout(java.lang.String mobileAppID, int leftColumnPercentage, int currentRecordIndex, long leftColumnAlignment, long rightColumnAlignment, FooterField footerField, FontStyle displayFontStyle, FontStyle evenRowFontStyle, FontStyle oddRowFontStyle, FontStyle focusFontStyle, FontStyle pendingFontStyle, boolean showNextPrevMenu, java.lang.String[] columnConfig, IBOBScreen screen)
mobileAppID
- String
value for the mobile application IDleftColumnPercentage
- int
value for the left side column percentagecurrentRecordIndex
- int
value for the current record indexleftColumnAlignment
- int
value for the left column aligment
eg. Field.FIELD_LEFT
, Field.FIELD_RIGHT
, Field.FIELD_HCENTER
, etc.rightColumnAlignment
- int
value for the right column alignment
eg. Field.FIELD_LEFT
, Field.FIELD_RIGHT
, Field.FIELD_HCENTER
, etc.footerField
- FooterField
footer object on screendisplayFontStyle
- FontStyle
font style object for the displayevenRowFontStyle
- FontStyle
font style object for the even rowoddRowFontStyle
- FontStyle
font style object for the odd rowfocusFontStyle
- FontStyle
font style object for the focus textpendingFontStyle
- FontStyle
font style object for the pending recordshowNextPrevMenu
- true
if we want to show the next and previous menu, otherwise false
columnConfig
- String
array of column configuration namesscreen
- IBOBScreen
screen that contains this controlMethod Detail |
---|
public void focusChanged(net.rim.device.api.ui.Field field, int eventType)
focusChanged
in interface net.rim.device.api.ui.FocusChangeListener
FocusChangeListener.focusChanged(Field field, int eventType)
public boolean isFocusedOn()
isFocusedOn
in interface ControlFocus
true
if this control is being focused on, otherwise false
public FontStyle getFocusFontStyle()
FontStyle
font style objectFontStyle
public void setFocusFontStyle(FontStyle fontStyle)
fontStyle
- FontStyle
font style objectFontStyle
public FontStyle getPendingFontStyle()
FontStyle
font style objectFontStyle
public void setPendingFontStyle(FontStyle fontStyle)
fontStyle
- FontStyle
font style objectFontStyle
public void setLayoutWidth(int width)
setLayoutWidth
in interface Control
width
- int
value of the available layout widthControl.setLayoutWidth(int width)
public void setLayoutHeight(int height)
setLayoutHeight
in interface Control
height
- int
value of the available layout heightControl.setLayoutHeight(int height)
public java.lang.String getName()
getName
in interface Control
String
value of the key nameControl.getName()
public java.lang.Object getValue()
getValue
in interface Control
Object
of the value set for this controlControl.getValue()
public void setColSpan(int colspan)
setColSpan
in interface Control
colspan
- int
value of the column spanControl.setColSpan(int colspan)
public int getColSpan()
getColSpan
in interface Control
int
value of the column spanControl.getColSpan()
public void setRowSpan(int rowspan)
setRowSpan
in interface Control
rowspan
- int
value of the row spanControl.setRowSpan(int rowspan)
public void setPreviousMenuLabel(int resourceID)
resourceID
- - Localization resource ID for the menu labelpublic void setPreviousMenuLabel(java.lang.String label)
label
- - String value for the menu labelpublic void setNextMenuLabel(int resourceID)
resourceID
- - Localization resource ID for the menu labelpublic void setNextMenuLabel(java.lang.String label)
label
- - String value for the menu labelpublic void setErrorLoadingMobileAppMessage(int resourceID)
resourceID
- - Localization resource ID for the menu labelpublic void setErrorLoadingMobileAppMessage(java.lang.String message)
label
- - String value for the messagepublic int getRowSpan()
getRowSpan
in interface Control
int
value of the row spanControl.getRowSpan()
public long getHorizontalAlignment()
getHorizontalAlignment
in interface Control
long
value of the horizontal alignment.
Possible values could be Field.FIELD_HCENTER, Field.FIELD_RIGHT, or Field.FIELD_LEFTControl.getHorizontalAlignment()
public long getVerticalAlignment()
getVerticalAlignment
in interface Control
long
value of the vertical alignment
Possible values could be Field.FIELD_TOP, Field.FIELD_BOTTOM, or Field.FIELD_VCENTERControl.getVerticalAlignment()
public void refresh()
refresh
in interface Control
refresh
in class LayoutManager
Control.refresh()
public void setBackgroundColor(int bgcolor)
setBackgroundColor
in interface Control
bgcolor
- int
value of the color in HEX.
For example: 0x00000000, 0x00FF0000, 0x00FFFFFFControl.setBackgroundColor(int bgcolor)
public boolean getShowNextPrevMenu()
true
if we are showing the next and previous menu, otherwise false
public void setShowNextPrevMenu(boolean showNextPrevMenu)
showNextPrevMenu
- true
if we are showing the next and previous menu, otherwise false
public void setEnableHotKeys(boolean bol)
bol
- true
to enable hot keys, otherwise false
public long getLeftColumnAlignment()
long
value of the left column alignmentpublic void setLeftColumnAlignment(long alignment)
alignment
- long
value for the alignment.
Can be Field.FIELD_LEFT, Field.FIELD_RIGHT
, or Field.FIELD_HCENTER
public void setRightColumnAlignment(long alignment)
alignment
- long
value for the alignment.
Can be Field.FIELD_LEFT, Field.FIELD_RIGHT
, or Field.FIELD_HCENTER
public long getRightColumnAlignment()
long
value of the right column alignmentpublic void setBorderColor(int color)
color
- int
HEX value for the border color.
Examples of colors are 0x00FFFFFF, 0x00FF0000, 0x00000000public void setPreviousHotKey(char c)
c
- char
value for the new previous hot keypublic void setNextHotKey(char c)
c
- char
value for the new next hot keypublic void initMobileApplicationData()
initMobileApplicationData
in interface MobileDataControl
public void clearMenuItems()
protected void makeContextMenu(net.rim.device.api.ui.ContextMenu menu)
makeContextMenu
in class net.rim.device.api.ui.Field
Field.makeContextMenu(ContextMenu menu)
public java.lang.String getMobileAppID()
getMobileAppID
in interface MobileDataControl
String
value for the mobile application IDpublic java.lang.String getMobileApplicationName()
getMobileApplicationName
in interface MobileDataControl
String
value of the mobile application namepublic MBOModel getApplicationData()
getApplicationData
in interface MobileDataControl
MBOModel
MBO objectMBOModel
public void setApplicationData(MBOModel applicationData)
setApplicationData
in interface MobileDataControl
relationshipData
- MBOModel
object for the relationshipMBOModel
public void setRelationshipAppData(MBOModel parentAppData, java.lang.Object selectedRow, java.lang.String assoicationName)
setRelationshipAppData
in interface MobileDataControl
parentAppData
- MBOModel
object for the parent relationshipselectedRow
- Object
value for the parent relationship selected rowassoicationName
- String
value for the parent relationship association nameMBOModel
public boolean hasRelationshipAppData()
hasRelationshipAppData
in interface MobileDataControl
true
if there are relationship data, otherwise false
public MBOModel getRelationshipParentAppData()
getRelationshipParentAppData
in interface MobileDataControl
MBOModel
objectMBOModel
public java.lang.Object getParentSelectedRow()
getParentSelectedRow
in interface MobileDataControl
Object
value for the parent selected rowpublic java.lang.String getParentAssociationName()
getParentAssociationName
in interface MobileDataControl
Object
value for the parent association namepublic MBOAttribute[] getColumnAttributes()
getColumnAttributes
in interface MobileDataControl
MBOAttribute
array list of attribute objectsMBOAttribute
public java.lang.Object getCurrentRow()
getCurrentRow
in interface MobileDataControl
Object
value for the current rowpublic Query getDataProperties()
getDataProperties
in interface MobileDataControl
Query
object for the queryQuery
public void setDataProperties(Query dataProps)
setDataProperties
in interface MobileDataControl
dataProps
- Query
for the data propertiesQuery
public void setCurrentRowIndex(int currentRecordIndex)
currentRecordIndex
- int
value of the current row indexpublic void previousRecord()
public void nextRecord()
public boolean isDirty()
isDirty
in class net.rim.device.api.ui.Manager
true
if the record is new or updated, otherwise false
public boolean isNew()
true
if the record is new, otherwise false
public boolean isUpdated()
true
if the record is updated, otherwise false
public boolean isDeleted()
true
if the record is deleted, otherwise false
public PagingObject getPagingObject()
getPagingObject
in interface MobileDataControl
PagingObject
paging objectPagingObject
public void setPagingObject(PagingObject pagingObject)
pagingObject
- PagingObject
paging objectPagingObject
public 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)
public void initialize()
public void setupMobileDataControlContextVariables()
setupMobileDataControlContextVariables
in interface MobileDataControl
public void updateMobileDataControlContextVariables(boolean isAddtoContext)
isAddtoContext
- true
means add to context, false
means update the existing data in contextpublic boolean keyChar(char key, int status, int time)
keyChar
in class net.rim.device.api.ui.Manager
Field.keyChar(char key, int status, int time)
protected void paint(net.rim.device.api.ui.Graphics g)
paint
in class LayoutManager
Field.paint(Graphics g)
protected void paintBackground(net.rim.device.api.ui.Graphics g)
paintBackground
in class LayoutManager
public void setProperty(int key, long alignment)
key
- int
int value for the key of a specific attributealignment
- long
value for the horizontal alignment eg. Field.FIELD_LEFT
, Field.FIELD_RIGHT
, or Field.FIELD_HCENTER
Field
public void setProperty(int key, java.lang.Object value)
setProperty
in class LayoutManager
key
- int
int value for the key of a specific attributevalue
- String
value for this attributepublic void setMobileAppID(java.lang.String appId)
com.sybase.uep.bobclient.controls.MobileDataControl#setMobileAppID(java.lang.String)
public void setMobileApplicationDataHandler(MobileApplicationDataHandler dataHandler)
dataHandler
- MobileApplicationDataHandler
mobile application data hander objectMobileApplicationDataHandler
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()
getCurrentRecordIndex
in interface MobileDataControl
int
value of the the current record indexpublic void setCurrentRecordIndex(int currentRecordIndex)
setCurrentRecordIndex
in interface MobileDataControl
public IMobileApplicationDataHandler getDataHandler()
getDataHandler
in interface MobileDataControl
MobileApplicationDataHandler
mobile application data handler objectMobileApplicationDataHandler
public void refreshData()
refreshData
in interface MobileDataControl
public void clearQuery()
MobileDataControl
clearQuery
in interface MobileDataControl
protected void onRecordChange()
protected boolean touchEvent(net.rim.device.api.ui.TouchEvent message)
touchEvent
in class net.rim.device.api.ui.Manager
public int getPreferredWidth()
LayoutManager
getPreferredWidth
in interface Control
getPreferredWidth
in class LayoutManager
LayoutManager
public int getPreferredHeight()
LayoutManager
getPreferredHeight
in interface Control
getPreferredHeight
in class LayoutManager
LayoutManager
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |