com.sybase.uep.bobclient.controls
Class CellTable

java.lang.Object
  extended by net.rim.device.api.ui.Field
      extended by net.rim.device.api.ui.component.ListField
          extended by com.sybase.uep.bobclient.controls.CellTable
All Implemented Interfaces:
Control, MobileDataControl, IModelChangeListener

public class CellTable
extends net.rim.device.api.ui.component.ListField
implements MobileDataControl, IModelChangeListener, Control

Represents a cell table

Author:
congchen

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

CellTable

public CellTable(long style)
Method Detail

init

public void init(ICell prototypeCell,
                 IBOBScreen screen)
Initializes the cell table


setupColumnWidths

public void setupColumnWidths()
Setup the column widths


getColumnWidths

public int[] getColumnWidths()

getDisplayFontStyle

public FontStyle getDisplayFontStyle()

getTableConfig

public CellTableConfig getTableConfig()
Gets the cell table configuration

Returns:
configuration of the cell table

setTableConfig

public void setTableConfig(CellTableConfig tableConfig)
Sets configuration to the cell table

Parameters:
tableConfig - - configuration of the cell table

drawFocus

protected void drawFocus(net.rim.device.api.ui.Graphics g,
                         boolean isFocus)
Overrides:
drawFocus in class net.rim.device.api.ui.component.ListField

paint

protected void paint(net.rim.device.api.ui.Graphics graphics)
Overrides:
paint in class net.rim.device.api.ui.component.ListField

paintBackground

protected void paintBackground(net.rim.device.api.ui.Graphics g)
Overrides:
paintBackground in class net.rim.device.api.ui.Field

layout

protected void layout(int width,
                      int height)
Overrides:
layout in class net.rim.device.api.ui.component.ListField

onFocus

protected void onFocus(int direction)
(non-Javadoc)

Overrides:
onFocus in class net.rim.device.api.ui.component.ListField
See Also:
Field.onFocus(int direction)

onUnfocus

protected void onUnfocus()
(non-Javadoc)

Overrides:
onUnfocus in class net.rim.device.api.ui.Field
See Also:
Field.onUnfocus()

navigationClick

protected boolean navigationClick(int status,
                                  int time)
(non-Javadoc)

Overrides:
navigationClick in class net.rim.device.api.ui.Field
See Also:
Field.navigationClick(int status, int time)

navigationUnclick

protected boolean navigationUnclick(int status,
                                    int time)
(non-Javadoc)

Overrides:
navigationUnclick in class net.rim.device.api.ui.Field
See Also:
Field.navigationUnclick(int status, int time)

navigationMovement

protected boolean navigationMovement(int dx,
                                     int dy,
                                     int status,
                                     int time)
(non-Javadoc)

Overrides:
navigationMovement in class net.rim.device.api.ui.Field
See Also:
Field.navigationMovement(int dx, int dy, int status, int time)

onRecordChange

protected void onRecordChange()
This method is called when the record selection changes.


touchEvent

protected boolean touchEvent(net.rim.device.api.ui.TouchEvent message)
Overrides:
touchEvent in class net.rim.device.api.ui.Field

moveFocus

protected int moveFocus(int amount,
                        int status,
                        int time)
Overrides:
moveFocus in class net.rim.device.api.ui.component.ListField

focusRemove

protected void focusRemove()
Overrides:
focusRemove in class net.rim.device.api.ui.Field

getYLocation

public int getYLocation(int index)
Gets the Y coordinator of a cell by the cell index

Parameters:
index - - the cell index
Returns:
the Y coordinator

getPreferredWidth

public int getPreferredWidth()
Description copied from interface: Control
Retrieves the available layout width of this control

This is called by the LayoutManager to get the available width of this control.

Specified by:
getPreferredWidth in interface Control
Overrides:
getPreferredWidth in class net.rim.device.api.ui.component.ListField
Returns:
int value of the available layout width
See Also:
LayoutManager

getPreferredHeight

public int getPreferredHeight()
Description copied from interface: Control
Retrieves the available layout height of this control

This is called by the LayoutManager to get the available height of this control.

Specified by:
getPreferredHeight in interface Control
Overrides:
getPreferredHeight in class net.rim.device.api.ui.Field
Returns:
int value of the available layout height
See Also:
LayoutManager

getDataControl

public BaseMobileDataControl getDataControl()
Gets the BaseMobileDataControl object that the cell table holds

Returns:
BaseMobileDataControl

makeContextMenu

protected void makeContextMenu(net.rim.device.api.ui.ContextMenu menu)
(non-Javadoc)

Overrides:
makeContextMenu in class net.rim.device.api.ui.Field
See Also:
Field.makeContextMenu(ContextMenu menu)

addMenuItem

public void addMenuItem(net.rim.device.api.ui.MenuItem menuItem)
Adds a menu item into the context menu of cell table

Parameters:
menuItem -

modelChanged

public void modelChanged(ModelChangeEvent event)
(non-Javadoc)

Specified by:
modelChanged in interface IModelChangeListener
Parameters:
event - ModelChangeEvent model change event
See Also:
IModelChangeListener.modelChanged(com.sybase.uep.bobclient.data.ModelChangeEvent)

getApplicationData

public MBOModel getApplicationData()
Description copied from interface: MobileDataControl
Get the application currently set for this data control

Specified by:
getApplicationData in interface MobileDataControl
Returns:
MBOModel object

getColumnAttributes

public MBOAttribute[] getColumnAttributes()
Description copied from interface: MobileDataControl
Get the column attributes defined for this control

Specified by:
getColumnAttributes in interface MobileDataControl
Returns:
list of MBOAttribute objects

getCurrentRecordIndex

public int getCurrentRecordIndex()
Description copied from interface: MobileDataControl
Gets the index of current selected row

Specified by:
getCurrentRecordIndex in interface MobileDataControl
Returns:

setCurrentRecordIndex

public void setCurrentRecordIndex(int currentRecordIndex)
Description copied from interface: MobileDataControl
Sets the index of current selected row

Specified by:
setCurrentRecordIndex in interface MobileDataControl

getCurrentRow

public java.lang.Object getCurrentRow()
Description copied from interface: MobileDataControl
Get current selected row

Specified by:
getCurrentRow in interface MobileDataControl
Returns:
Row object

getDataHandler

public IMobileApplicationDataHandler getDataHandler()
Description copied from interface: MobileDataControl
Gets the data handler

Specified by:
getDataHandler in interface MobileDataControl
Returns:

getDataProperties

public Query getDataProperties()
Description copied from interface: MobileDataControl
Get the data properties

Specified by:
getDataProperties in interface MobileDataControl
Returns:
Query object

getMobileAppID

public java.lang.String getMobileAppID()
Description copied from interface: MobileDataControl
Get the Mobile Application ID

Specified by:
getMobileAppID in interface MobileDataControl
Returns:
string value of the ID

getMobileApplicationName

public java.lang.String getMobileApplicationName()
Description copied from interface: MobileDataControl
Get the application data name

Specified by:
getMobileApplicationName in interface MobileDataControl
Returns:
name of the application data

getPagingObject

public PagingObject getPagingObject()
Description copied from interface: MobileDataControl
Get a new paging object

Specified by:
getPagingObject in interface MobileDataControl
Returns:
PagingObject

getParentAssociationName

public java.lang.String getParentAssociationName()
Description copied from interface: MobileDataControl
Get the parent association name

Specified by:
getParentAssociationName in interface MobileDataControl
Returns:
association name

getParentScreen

public IBOBScreen getParentScreen()
Description copied from interface: MobileDataControl
Gets the screen that owns this control

Specified by:
getParentScreen in interface MobileDataControl
Returns:

getParentSelectedRow

public java.lang.Object getParentSelectedRow()
Description copied from interface: MobileDataControl
Get parent selected row

Specified by:
getParentSelectedRow in interface MobileDataControl
Returns:
Row object

getRelationshipParentAppData

public MBOModel getRelationshipParentAppData()
Description copied from interface: MobileDataControl
Get relationship parent application data

Specified by:
getRelationshipParentAppData in interface MobileDataControl
Returns:
Application data object

hasRelationshipAppData

public boolean hasRelationshipAppData()
Description copied from interface: MobileDataControl
Check is this mobile data control contains relationship data

Specified by:
hasRelationshipAppData in interface MobileDataControl
Returns:
true if there are relationship data

initMobileApplicationData

public void initMobileApplicationData()
Description copied from interface: MobileDataControl
Initialize the Mobile Application data Check to see if there are data already synced to the device

Specified by:
initMobileApplicationData in interface MobileDataControl

refreshData

public void refreshData()
Description copied from interface: MobileDataControl
Refresh mobile data

Specified by:
refreshData in interface MobileDataControl

setApplicationData

public void setApplicationData(MBOModel applicationData)
Description copied from interface: MobileDataControl
Set the application data

Specified by:
setApplicationData in interface MobileDataControl
Parameters:
applicationData - - relationship application data

setDataProperties

public void setDataProperties(Query dataProps)
Description copied from interface: MobileDataControl
Set the data properties filtering

Specified by:
setDataProperties in interface MobileDataControl
Parameters:
dataProps - - DataProperties object

setRelationshipAppData

public void setRelationshipAppData(MBOModel parentAppData,
                                   java.lang.Object selectedRow,
                                   java.lang.String assoicationName)
Description copied from interface: MobileDataControl
Set relationship application data

Specified by:
setRelationshipAppData in interface MobileDataControl
Parameters:
parentAppData - - parent relationship application data object
selectedRow - - parent relationship selected row object
assoicationName - - parent relationship association name

setupMobileDataControlContextVariables

public void setupMobileDataControlContextVariables()
Description copied from interface: MobileDataControl
Save current selected row of this mobile data control

Specified by:
setupMobileDataControlContextVariables in interface MobileDataControl

setNamedQuery

public void setNamedQuery(java.lang.String namedQuery)
Description copied from interface: MobileDataControl
Set the named query

Specified by:
setNamedQuery in interface MobileDataControl
Parameters:
namedQuery - String value for the named query name

setNamedQuerySubmitElements

public void setNamedQuerySubmitElements(java.util.Vector parameters)
Description copied from interface: MobileDataControl
Set the named query submit elements

Specified by:
setNamedQuerySubmitElements in interface MobileDataControl
Parameters:
parameters - Vector list of SubmitElement objects

setNamedQueryParameters

public void setNamedQueryParameters(java.util.Hashtable parameters)
Description copied from interface: MobileDataControl
Set the named query parameters hash table

Specified by:
setNamedQueryParameters in interface MobileDataControl
Parameters:
parameters - Hashtable map of name value pair

setDynamicNamedQuery

public void setDynamicNamedQuery(java.lang.String namedQuery)
Description copied from interface: MobileDataControl
Set the dynamic named query

Specified by:
setDynamicNamedQuery in interface MobileDataControl
Parameters:
namedQuery - String value for the dynamic named query name

setDynamicNamedQueryParameters

public void setDynamicNamedQueryParameters(java.util.Hashtable parameters)
Description copied from interface: MobileDataControl
Set the dynamic named query parameters hash table

Specified by:
setDynamicNamedQueryParameters in interface MobileDataControl
Parameters:
parameters - Hashtable map of name value pair

setBobcscreen

public void setBobcscreen(IBOBScreen screen)
Set screen

Parameters:
bobcscreen - - the screen that the table will be added to

getColSpan

public int getColSpan()
Description copied from interface: Control
Retrieves the column span for this control

This is called by the LayoutManager to get the column span of this control.

Specified by:
getColSpan in interface Control
Returns:
int value of the column span
See Also:
LayoutManager

getHorizontalAlignment

public long getHorizontalAlignment()
Description copied from interface: Control
Retrieves the horizontal alignment of this control

This is called by the LayoutManager to get the horizontal alignment of this control.

Specified by:
getHorizontalAlignment in interface Control
Returns:
long value of the horizontal alignment. Possible values could be Field.FIELD_HCENTER, Field.FIELD_RIGHT, or Field.FIELD_LEFT
See Also:
LayoutManager, Field

getName

public java.lang.String getName()
Description copied from interface: Control
Retrieves the key name for this control

This is called by the SubmitAction to get key name of this control.

Specified by:
getName in interface Control
Returns:
String value of the key name
See Also:
SubmitAction

getRowSpan

public int getRowSpan()
Description copied from interface: Control
Retrieves the row span for this control

This is called by the LayoutManager to get the row span of this control.

Specified by:
getRowSpan in interface Control
Returns:
int value of the row span
See Also:
LayoutManager

getValue

public java.lang.Object getValue()
Description copied from interface: Control
Retrieves the control value. If the control is an input, then the value would be the text in the input.

This is called by the SubmitAction to get value set for this control.

Specified by:
getValue in interface Control
Returns:
Object of the value set for this control
See Also:
SubmitAction

getVerticalAlignment

public long getVerticalAlignment()
Description copied from interface: Control
Retrieves the vertical alignment of this control

This is called by the LayoutManager to get the vertical alignment of this control.

Specified by:
getVerticalAlignment in interface Control
Returns:
long value of the vertical alignment Possible values could be Field.FIELD_TOP, Field.FIELD_BOTTOM, or Field.FIELD_VCENTER
See Also:
LayoutManager, Field

setBackgroundColor

public void setBackgroundColor(int bgcolor)
Description copied from interface: Control
Set the back ground color of this 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.

Specified by:
setBackgroundColor in interface Control
Parameters:
bgcolor - int value of the color in HEX. For example: 0x00000000, 0x00FF0000, 0x00FFFFFF
See Also:
LayoutManager

setColSpan

public void setColSpan(int colspan)
Description copied from interface: Control
Set the column span for this control.

Specified by:
setColSpan in interface Control
Parameters:
colspan - int value of the column span

setLayoutHeight

public void setLayoutHeight(int height)
Description copied from interface: Control
Set the available layout height for this control

This is called by the LayoutManager to set the available height of this control.

Specified by:
setLayoutHeight in interface Control
Parameters:
height - int value of the available layout height
See Also:
LayoutManager

setLayoutWidth

public void setLayoutWidth(int width)
Description copied from interface: Control
Set the available layout width for this control

This is called by the LayoutManager to set the available width of this control.

Specified by:
setLayoutWidth in interface Control
Parameters:
width - int value of the available layout width
See Also:
LayoutManager

setRowSpan

public void setRowSpan(int rowspan)
Description copied from interface: Control
Set the row span for this control.

Specified by:
setRowSpan in interface Control
Parameters:
rowspan - int value of the row span

clearQuery

public void clearQuery()
Description copied from interface: MobileDataControl
Clear the cached query

Specified by:
clearQuery in interface MobileDataControl

refresh

public void refresh()
Refresh all the fields

Specified by:
refresh in interface Control
See Also:
LayoutManager

setFocusFontStyle

public void setFocusFontStyle(FontStyle focusFontStyle)
Sets focused font style

Parameters:
focusFontStyle -

setUnfocusFontStyle

public void setUnfocusFontStyle(FontStyle unfocusFontStyle)
Sets unfocused font style, the font style is used to determine size of a cell image

Parameters:
unfocusFontStyle -

setNumberOfColumns

public void setNumberOfColumns(int numberOfColumns)
Sets the number of columns

Parameters:
numberOfColumns -

setColumnPercentage

public void setColumnPercentage(int[] columnPercentage)
Sets column percentages

Parameters:
columnPercentage -

setPagingObject

public void setPagingObject(PagingObject pagingObject)
Sets paging object

Parameters:
pagingObject -

setSortingColumn

public void setSortingColumn(java.lang.String sortingColumn)
Sets display name of sorting menu

Parameters:
sortingColumn -

setSortingColumn

public void setSortingColumn(int sortingColumnMenuLabelRID)
Sets display name of sorting menu resource message ID

Parameters:
sortingColumnMenuLabelRID -

setMboId

public void setMboId(java.lang.String mboId)
Sets id of a MBO that is binded to the table

Parameters:
mboId -

addMBOAttributeId

public void addMBOAttributeId(java.lang.String id)
Adds id of a selected MBO attribute

Parameters:
id -

setColumnConfig

public void setColumnConfig(java.lang.String[] mboAttributeIds)
Sets selected MBO attribute ids

Parameters:
mboAttributeIds -

getPrototypeCell

public ICell getPrototypeCell()
Gets the prototype cell

Returns:
ICell

setPrototypeCell

public void setPrototypeCell(ICell prototypeCell)
Sets prototype cell

Parameters:
prototypeCell - - the only Cell instance that is drawing all cell contents

setDefaultAction

public void setDefaultAction(IBOBAction action)
Sets the table's default action

Parameters:
action - the default action to set

getCustomEventsDelegate

public ICustomEventsDelegate getCustomEventsDelegate()
Returns the control's custom events delegate

Returns:
the control's custom events delegate

setCustomEventsDelegate

public void setCustomEventsDelegate(ICustomEventsDelegate delegate,
                                    int eventsFlags)
Sets the control's custom events delegate for the given events

Parameters:
delegate - custom events delegate
eventsFlags - the events to set delegate to

getControlID

public int getControlID()
Returns the control's ID

Returns:
the control's Id

setControlID

public void setControlID(int controlID)
Sets the control's ID

Parameters:
controlId - control ID