|
|||||||||
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.component.ListField
com.sybase.uep.bobclient.controls.CellTable
public class CellTable
Represents a cell table
Field Summary |
---|
Fields inherited from class net.rim.device.api.ui.component.ListField |
---|
MULTI_SELECT, NO_ALTED_PAGE_UP_DOWN, NON_CONTIGUOUS_SELECT, ROW_HEIGHT_FONT |
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 |
Constructor Summary | |
---|---|
CellTable(long style)
|
Method Summary | |
---|---|
void |
addMBOAttributeId(java.lang.String id)
Adds id of a selected MBO attribute |
void |
addMenuItem(net.rim.device.api.ui.MenuItem menuItem)
Adds a menu item into the context menu of cell table |
void |
clearQuery()
Clear the cached query |
protected void |
drawFocus(net.rim.device.api.ui.Graphics g,
boolean isFocus)
|
protected void |
focusRemove()
|
MBOModel |
getApplicationData()
Get the application currently set for this data control |
int |
getColSpan()
Retrieves the column span for this control |
MBOAttribute[] |
getColumnAttributes()
Get the column attributes defined for this control |
int[] |
getColumnWidths()
|
int |
getControlID()
Returns the control's ID |
int |
getCurrentRecordIndex()
Gets the index of current selected row |
java.lang.Object |
getCurrentRow()
Get current selected row |
ICustomEventsDelegate |
getCustomEventsDelegate()
Returns the control's custom events delegate |
BaseMobileDataControl |
getDataControl()
Gets the BaseMobileDataControl object that the cell table holds |
IMobileApplicationDataHandler |
getDataHandler()
Gets the data handler |
Query |
getDataProperties()
Get the data properties |
FontStyle |
getDisplayFontStyle()
|
long |
getHorizontalAlignment()
Retrieves the horizontal alignment of this control |
java.lang.String |
getMobileAppID()
Get the Mobile Application ID |
java.lang.String |
getMobileApplicationName()
Get the application data name |
java.lang.String |
getName()
Retrieves the key name for this control |
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 |
int |
getPreferredHeight()
Retrieves the available layout height of this control |
int |
getPreferredWidth()
Retrieves the available layout width of this control |
ICell |
getPrototypeCell()
Gets the prototype cell |
MBOModel |
getRelationshipParentAppData()
Get relationship parent application data |
int |
getRowSpan()
Retrieves the row span for this control |
CellTableConfig |
getTableConfig()
Gets the cell table configuration |
java.lang.Object |
getValue()
Retrieves the control value. |
long |
getVerticalAlignment()
Retrieves the vertical alignment of this control |
int |
getYLocation(int index)
Gets the Y coordinator of a cell by the cell index |
boolean |
hasRelationshipAppData()
Check is this mobile data control contains relationship data |
void |
init(ICell prototypeCell,
IBOBScreen screen)
Initializes the cell table |
void |
initMobileApplicationData()
Initialize the Mobile Application data Check to see if there are data already synced to the device |
protected void |
layout(int width,
int height)
|
protected void |
makeContextMenu(net.rim.device.api.ui.ContextMenu menu)
(non-Javadoc) |
void |
modelChanged(ModelChangeEvent event)
(non-Javadoc) |
protected int |
moveFocus(int amount,
int status,
int time)
|
protected boolean |
navigationClick(int status,
int time)
(non-Javadoc) |
protected boolean |
navigationMovement(int dx,
int dy,
int status,
int time)
(non-Javadoc) |
protected boolean |
navigationUnclick(int status,
int time)
(non-Javadoc) |
protected void |
onFocus(int direction)
(non-Javadoc) |
protected void |
onRecordChange()
This method is called when the record selection changes. |
protected void |
onUnfocus()
(non-Javadoc) |
protected void |
paint(net.rim.device.api.ui.Graphics graphics)
|
protected void |
paintBackground(net.rim.device.api.ui.Graphics g)
|
void |
refresh()
Refresh all the fields |
void |
refreshData()
Refresh mobile data |
void |
setApplicationData(MBOModel applicationData)
Set the application data |
void |
setBackgroundColor(int bgcolor)
Set the back ground color of this control |
void |
setBobcscreen(IBOBScreen screen)
Set screen |
void |
setColSpan(int colspan)
Set the column span for this control. |
void |
setColumnConfig(java.lang.String[] mboAttributeIds)
Sets selected MBO attribute ids |
void |
setColumnPercentage(int[] columnPercentage)
Sets column percentages |
void |
setControlID(int controlID)
Sets the control's ID |
void |
setCurrentRecordIndex(int currentRecordIndex)
Sets the index of current selected row |
void |
setCustomEventsDelegate(ICustomEventsDelegate delegate,
int eventsFlags)
Sets the control's custom events delegate for the given events |
void |
setDataProperties(Query dataProps)
Set the data properties filtering |
void |
setDefaultAction(IBOBAction action)
Sets the table's default action |
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 |
setFocusFontStyle(FontStyle focusFontStyle)
Sets focused font style |
void |
setLayoutHeight(int height)
Set the available layout height for this control |
void |
setLayoutWidth(int width)
Set the available layout width for this control |
void |
setMboId(java.lang.String mboId)
Sets id of a MBO that is binded to the 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 |
setNumberOfColumns(int numberOfColumns)
Sets the number of columns |
void |
setPagingObject(PagingObject pagingObject)
Sets paging object |
void |
setPrototypeCell(ICell prototypeCell)
Sets prototype cell |
void |
setRelationshipAppData(MBOModel parentAppData,
java.lang.Object selectedRow,
java.lang.String assoicationName)
Set relationship application data |
void |
setRowSpan(int rowspan)
Set the row span for this control. |
void |
setSortingColumn(int sortingColumnMenuLabelRID)
Sets display name of sorting menu resource message ID |
void |
setSortingColumn(java.lang.String sortingColumn)
Sets display name of sorting menu |
void |
setTableConfig(CellTableConfig tableConfig)
Sets configuration to the cell table |
void |
setUnfocusFontStyle(FontStyle unfocusFontStyle)
Sets unfocused font style, the font style is used to determine size of a cell image |
void |
setupColumnWidths()
Setup the column widths |
void |
setupMobileDataControlContextVariables()
Save current selected row of this mobile data control |
protected boolean |
touchEvent(net.rim.device.api.ui.TouchEvent message)
|
Methods inherited from class net.rim.device.api.ui.component.ListField |
---|
delete, getAccessibleContext, getCallback, getEmptyString, getEmptyStringStyle, getFocusRect, getRowHeight, getRowHeight, getSelectedIndex, getSelection, getSize, getVisibleLinesPageDown, indexOfList, insert, invalidate, invalidate, invalidateRange, isEmpty, keyChar, keyControl, moveFocus, setCallback, setEmptyString, setEmptyString, setRowHeight, setRowHeight, setSearchable, setSelectedIndex, setSize, setSize |
Methods inherited from class net.rim.device.api.ui.Field |
---|
drawHighlightRegion, fieldChangeNotify, focusAdd, focusChangeNotify, 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, keyDown, keyRepeat, keyStatus, keyUp, makeContextMenu, onDisplay, onExposed, onMenuDismissed, onMenuDismissed, onObscured, onUndisplay, onVisibilityChange, 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 CellTable(long style)
Method Detail |
---|
public void init(ICell prototypeCell, IBOBScreen screen)
public void setupColumnWidths()
public int[] getColumnWidths()
public FontStyle getDisplayFontStyle()
public CellTableConfig getTableConfig()
public void setTableConfig(CellTableConfig tableConfig)
tableConfig
- - configuration of the cell tableprotected void drawFocus(net.rim.device.api.ui.Graphics g, boolean isFocus)
drawFocus
in class net.rim.device.api.ui.component.ListField
protected void paint(net.rim.device.api.ui.Graphics graphics)
paint
in class net.rim.device.api.ui.component.ListField
protected void paintBackground(net.rim.device.api.ui.Graphics g)
paintBackground
in class net.rim.device.api.ui.Field
protected void layout(int width, int height)
layout
in class net.rim.device.api.ui.component.ListField
protected void onFocus(int direction)
onFocus
in class net.rim.device.api.ui.component.ListField
Field.onFocus(int direction)
protected void onUnfocus()
onUnfocus
in class net.rim.device.api.ui.Field
Field.onUnfocus()
protected boolean navigationClick(int status, int time)
navigationClick
in class net.rim.device.api.ui.Field
Field.navigationClick(int status, int time)
protected boolean navigationUnclick(int status, int time)
navigationUnclick
in class net.rim.device.api.ui.Field
Field.navigationUnclick(int status, int time)
protected boolean navigationMovement(int dx, int dy, int status, int time)
navigationMovement
in class net.rim.device.api.ui.Field
Field.navigationMovement(int dx, int dy, int status, int time)
protected void onRecordChange()
protected boolean touchEvent(net.rim.device.api.ui.TouchEvent message)
touchEvent
in class net.rim.device.api.ui.Field
protected int moveFocus(int amount, int status, int time)
moveFocus
in class net.rim.device.api.ui.component.ListField
protected void focusRemove()
focusRemove
in class net.rim.device.api.ui.Field
public int getYLocation(int index)
index
- - the cell index
public int getPreferredWidth()
Control
This is called by the LayoutManager
to get the available width of this control.
getPreferredWidth
in interface Control
getPreferredWidth
in class net.rim.device.api.ui.component.ListField
int
value of the available layout widthLayoutManager
public int getPreferredHeight()
Control
This is called by the LayoutManager
to get the available height of this control.
getPreferredHeight
in interface Control
getPreferredHeight
in class net.rim.device.api.ui.Field
int
value of the available layout heightLayoutManager
public BaseMobileDataControl getDataControl()
protected void makeContextMenu(net.rim.device.api.ui.ContextMenu menu)
makeContextMenu
in class net.rim.device.api.ui.Field
Field.makeContextMenu(ContextMenu menu)
public void addMenuItem(net.rim.device.api.ui.MenuItem menuItem)
menuItem
- public void modelChanged(ModelChangeEvent event)
modelChanged
in interface IModelChangeListener
event
- ModelChangeEvent
model change eventIModelChangeListener.modelChanged(com.sybase.uep.bobclient.data.ModelChangeEvent)
public MBOModel getApplicationData()
MobileDataControl
getApplicationData
in interface MobileDataControl
public MBOAttribute[] getColumnAttributes()
MobileDataControl
getColumnAttributes
in interface MobileDataControl
public int getCurrentRecordIndex()
MobileDataControl
getCurrentRecordIndex
in interface MobileDataControl
public void setCurrentRecordIndex(int currentRecordIndex)
MobileDataControl
setCurrentRecordIndex
in interface MobileDataControl
public java.lang.Object getCurrentRow()
MobileDataControl
getCurrentRow
in interface MobileDataControl
public IMobileApplicationDataHandler getDataHandler()
MobileDataControl
getDataHandler
in interface MobileDataControl
public Query getDataProperties()
MobileDataControl
getDataProperties
in interface MobileDataControl
public java.lang.String getMobileAppID()
MobileDataControl
getMobileAppID
in interface MobileDataControl
public java.lang.String getMobileApplicationName()
MobileDataControl
getMobileApplicationName
in interface MobileDataControl
public PagingObject getPagingObject()
MobileDataControl
getPagingObject
in interface MobileDataControl
public java.lang.String getParentAssociationName()
MobileDataControl
getParentAssociationName
in interface MobileDataControl
public IBOBScreen getParentScreen()
MobileDataControl
getParentScreen
in interface MobileDataControl
public java.lang.Object getParentSelectedRow()
MobileDataControl
getParentSelectedRow
in interface MobileDataControl
public MBOModel getRelationshipParentAppData()
MobileDataControl
getRelationshipParentAppData
in interface MobileDataControl
public boolean hasRelationshipAppData()
MobileDataControl
hasRelationshipAppData
in interface MobileDataControl
public void initMobileApplicationData()
MobileDataControl
initMobileApplicationData
in interface MobileDataControl
public void refreshData()
MobileDataControl
refreshData
in interface MobileDataControl
public void setApplicationData(MBOModel applicationData)
MobileDataControl
setApplicationData
in interface MobileDataControl
applicationData
- - relationship application datapublic void setDataProperties(Query dataProps)
MobileDataControl
setDataProperties
in interface MobileDataControl
dataProps
- - DataProperties objectpublic void setRelationshipAppData(MBOModel parentAppData, java.lang.Object selectedRow, java.lang.String assoicationName)
MobileDataControl
setRelationshipAppData
in interface MobileDataControl
parentAppData
- - parent relationship application data objectselectedRow
- - parent relationship selected row objectassoicationName
- - parent relationship association namepublic void setupMobileDataControlContextVariables()
MobileDataControl
setupMobileDataControlContextVariables
in interface MobileDataControl
public void setNamedQuery(java.lang.String namedQuery)
MobileDataControl
setNamedQuery
in interface MobileDataControl
namedQuery
- String
value for the named query namepublic void setNamedQuerySubmitElements(java.util.Vector parameters)
MobileDataControl
setNamedQuerySubmitElements
in interface MobileDataControl
parameters
- Vector
list of SubmitElement objectspublic void setNamedQueryParameters(java.util.Hashtable parameters)
MobileDataControl
setNamedQueryParameters
in interface MobileDataControl
parameters
- Hashtable
map of name value pairpublic void setDynamicNamedQuery(java.lang.String namedQuery)
MobileDataControl
setDynamicNamedQuery
in interface MobileDataControl
namedQuery
- String
value for the dynamic named query namepublic void setDynamicNamedQueryParameters(java.util.Hashtable parameters)
MobileDataControl
setDynamicNamedQueryParameters
in interface MobileDataControl
parameters
- Hashtable
map of name value pairpublic void setBobcscreen(IBOBScreen screen)
bobcscreen
- - the screen that the table will be added topublic int getColSpan()
Control
This is called by the LayoutManager
to get the column span of this control.
getColSpan
in interface Control
int
value of the column spanLayoutManager
public long getHorizontalAlignment()
Control
This is called by the LayoutManager
to get the horizontal alignment of this control.
getHorizontalAlignment
in interface Control
long
value of the horizontal alignment.
Possible values could be Field.FIELD_HCENTER, Field.FIELD_RIGHT, or Field.FIELD_LEFTLayoutManager
,
Field
public java.lang.String getName()
Control
This is called by the SubmitAction
to get key name of this control.
getName
in interface Control
String
value of the key nameSubmitAction
public int getRowSpan()
Control
This is called by the LayoutManager
to get the row span of this control.
getRowSpan
in interface Control
int
value of the row spanLayoutManager
public java.lang.Object getValue()
Control
This is called by the SubmitAction
to get value set for this control.
getValue
in interface Control
Object
of the value set for this controlSubmitAction
public long getVerticalAlignment()
Control
This is called by the LayoutManager
to get the vertical alignment of this control.
getVerticalAlignment
in interface Control
long
value of the vertical alignment
Possible values could be Field.FIELD_TOP, Field.FIELD_BOTTOM, or Field.FIELD_VCENTERLayoutManager
,
Field
public void setBackgroundColor(int bgcolor)
Control
This is called by the LayoutManager
to set the background color of this control.
If the layout is set to a specific back ground color, this background needs to set
to it's controls to paint the same color as the layout's background. Also if there
are alternating colors, then the LayoutManager
will set each corresponding
row with a different alternating back ground color.
setBackgroundColor
in interface Control
bgcolor
- int
value of the color in HEX.
For example: 0x00000000, 0x00FF0000, 0x00FFFFFFLayoutManager
public void setColSpan(int colspan)
Control
setColSpan
in interface Control
colspan
- int
value of the column spanpublic void setLayoutHeight(int height)
Control
This is called by the LayoutManager
to set the available height of this control.
setLayoutHeight
in interface Control
height
- int
value of the available layout heightLayoutManager
public void setLayoutWidth(int width)
Control
This is called by the LayoutManager
to set the available width of this control.
setLayoutWidth
in interface Control
width
- int
value of the available layout widthLayoutManager
public void setRowSpan(int rowspan)
Control
setRowSpan
in interface Control
rowspan
- int
value of the row spanpublic void clearQuery()
MobileDataControl
clearQuery
in interface MobileDataControl
public void refresh()
refresh
in interface Control
LayoutManager
public void setFocusFontStyle(FontStyle focusFontStyle)
focusFontStyle
- public void setUnfocusFontStyle(FontStyle unfocusFontStyle)
unfocusFontStyle
- public void setNumberOfColumns(int numberOfColumns)
numberOfColumns
- public void setColumnPercentage(int[] columnPercentage)
columnPercentage
- public void setPagingObject(PagingObject pagingObject)
pagingObject
- public void setSortingColumn(java.lang.String sortingColumn)
sortingColumn
- public void setSortingColumn(int sortingColumnMenuLabelRID)
sortingColumnMenuLabelRID
- public void setMboId(java.lang.String mboId)
mboId
- public void addMBOAttributeId(java.lang.String id)
id
- public void setColumnConfig(java.lang.String[] mboAttributeIds)
mboAttributeIds
- public ICell getPrototypeCell()
public void setPrototypeCell(ICell prototypeCell)
prototypeCell
- - the only Cell instance that is drawing all cell contentspublic void setDefaultAction(IBOBAction action)
action
- the default action to setpublic ICustomEventsDelegate getCustomEventsDelegate()
public void setCustomEventsDelegate(ICustomEventsDelegate delegate, int eventsFlags)
delegate
- custom events delegateeventsFlags
- the events to set delegate topublic int getControlID()
public void setControlID(int controlID)
controlId
- control ID
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |