Oracle Fusion Middleware Java API Reference for Oracle ADF Mobile Client
11g Release 1 (11.1.1)

E17503-02

oracle.adfnmc.component.ui
Class BBTable.TableGridManager

java.lang.Object
  extended by net.rim.device.api.ui.Field
      extended by net.rim.device.api.ui.Manager
          extended by net.rim.device.api.ui.container.FlowFieldManager
              extended by oracle.adfnmc.component.ui.BBTable.TableGridManager
All Implemented Interfaces:
INativeTable, INativeUiComponent
Direct Known Subclasses:
BBTable.NonTouchscreenTableManager
Enclosing class:
BBTable

protected abstract class BBTable.TableGridManager
extends net.rim.device.api.ui.container.FlowFieldManager
implements INativeUiComponent, INativeTable


Nested Class Summary
protected  class BBTable.TableGridManager.FilterMenuItem
           
protected  class BBTable.TableGridManager.SortMenuItem
           
protected  class BBTable.TableGridManager.TableFocusDelegateField
           
 
Field Summary
protected  boolean addingField
           
protected  int borderWidth
           
static int CELL_SELECTION_MODE
           
protected  int cellHighlightColor
           
protected  int cellStartOffset
           
protected  int colCount
           
protected  int[] columnOffset
           
protected  java.util.Vector columns
           
static int CONTROL_SELECTION_MODE
           
protected  int currentColumnIndex
           
protected  int currentRowIndex
           
protected  int currentSelectionMode
           
protected  boolean disposingRangeNative
           
protected  int fieldInsertionIndex
           
protected  FilterAssistant filterAssistant
           
protected  java.util.Vector focusChainScrollValues
           
protected  BBTable.TableGridManager.TableFocusDelegateField focusDelegate
           
protected  BBTable.TableGridManager.TableFocusDelegateField focusDelegate2
           
protected  int gridHeight
           
protected  int gridWidth
           
protected  int headerBackgroundColor
           
protected  int loadedRowRangeHeight
           
protected  int loadedRowRangeOffset
           
protected  int MAX_DIMENSION
           
protected  int previousHorizontalScroll
           
protected  int previousRangeLength
           
protected  int previousRangeStart
           
protected  int previousVerticalScroll
           
protected  boolean removingRange
           
protected  boolean restoringScrollValues
           
protected  int rollingSumRowHeights
           
protected  int rollingSumRows
           
protected  int rowCount
           
protected  int[] rowHeight
           
protected  int[] rowOffset
           
protected  boolean scrollHighlightIntoView
           
protected  boolean settingHighlightRow
           
protected  SortAssistant sortAssistant
           
static int TABLE_SELECTION_MODE
           
protected  BBTable.TableControlManager tableControl
           
protected  int tempVar
           
protected  int tempVar2
           
protected  boolean translateByScrollOffset
           
protected  boolean useFieldInsertionIndex
           
 boolean useLayoutAbortCondition
           
 
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, AXIS_HORIZONTAL, AXIS_SEQUENTIAL, AXIS_VERTICAL, 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
 
Method Summary
 void add(net.rim.device.api.ui.Field field)
           
 void alignColumn(java.lang.String alignment, java.lang.String columnID)
           
 void dispose()
           
 void disposeRangeNative(int start, int count)
           
 void doLayout(int width, int height)
           
 void drawHighlightRect(net.rim.device.api.ui.Graphics g, net.rim.device.api.ui.XYPoint translation)
           
protected  void fixScrollValues()
           
 int focusCurrentRow()
           
 java.lang.String formatRectangle(java.lang.String name, net.rim.device.api.ui.XYRect rect)
           
 Component getAdfmcOwner()
           
 Rectangle getAdfViewportRectangle()
           
 int getAvgRowHeight()
           
 int getBorderWidth()
           
 int getEstimatedRangeStart()
           
 int getEstimatedRowLocation(int row)
           
 int getFieldAtLocation(int x, int y)
           
 boolean getFocusable()
           
 void getFocusRect(net.rim.device.api.ui.XYRect rect)
           
 void getFocusRectPhantom(net.rim.device.api.ui.XYRect rect)
           
 void getHighlightCellRect(net.rim.device.api.ui.XYRect rect)
           
protected  void getHighlightCellRectScrolled(net.rim.device.api.ui.XYRect rect)
           
 Rectangle getLoadedRowsRectangle()
           
 int[] getRowHeights()
           
protected  void handleAddedPre()
           
protected  void handleRemoveChild(INativeUiComponent comp)
           
protected  boolean hasFocus()
           
 void insertCellAt(java.lang.Object cell, int index)
           
 void insertNextElementAt(int index)
           
 java.lang.String intToBinaryString(int number)
           
 void invalidateControl()
           
 void invalidateTableLayout()
           
 boolean isDelegateFocusable()
           
 boolean isDisabled()
           
protected  boolean isEmptyTextLabelDisplayed()
           
protected  boolean isLastRowLoaded()
           
protected  void makeMenu(net.rim.device.api.ui.component.Menu menu, int instance)
           
protected  int measureRows(int availableWidth, int availableHeight, int rowStart, int rowCount)
           
protected  void onFocus(int direction)
           
protected  void paintBackground(net.rim.device.api.ui.Graphics g)
           
protected  void positionRows(int offsetX, int offsetY, int rowStart, int rowCount)
           
 void printRectangle(java.lang.String name, net.rim.device.api.ui.XYRect rect)
           
 void printRectangleStdOut(java.lang.String name, net.rim.device.api.ui.XYRect rect)
           
protected  void resetFocusInformation()
           
 void resetScrollValues()
           
 void resizePreviousRange(int amount)
           
 void restoreScrollValues()
           
protected  boolean scrollRectangleIntoView(net.rim.device.api.ui.XYRect r)
           
protected  void scrollRowIntoView(int row)
           
 void setBorderWidth(int width)
           
 void setColumns(java.util.Vector tableColumns)
           
protected  void setCurrentRowIndex(int index)
           
 void setDisabled(boolean disabled)
           
 void setFilterAssistant(FilterAssistant assistant)
           
 void setFocusable(boolean focusable)
           
protected  void setHighlightRow(int row, boolean scrollIntoView)
           
 void setHighlightRowImpl(int modelRowIndex)
           
 void setSortAssistant(SortAssistant assistant)
           
 void shiftPreviousRange(int amount)
           
 void storeScrollValues()
           
protected  void sublayout(int width, int height)
           
protected  void subpaint(net.rim.device.api.ui.Graphics g)
           
protected  void updateGridMeasurements()
           
protected  void updateRowHeightAverage(int height)
           
 
Methods inherited from class net.rim.device.api.ui.container.FlowFieldManager
getPreferredHeight, getPreferredWidth, keyControl, navigationMovement, nextFocus
 
Methods inherited from class net.rim.device.api.ui.Manager
addAll, delete, deleteAll, deleteRange, getAccessibleContext, getField, getFieldCount, getFieldWithFocus, getFieldWithFocusIndex, getHorizontalScroll, getLeafFieldWithFocus, getPreferredHeightOfChild, getPreferredWidthOfChild, getVerticalScroll, getVirtualHeight, getVirtualWidth, getVisibleHeight, getVisibleWidth, insert, invalidate, invalidate, invalidateFieldRange, invokeAction, isDataValid, isDirty, isDownArrowShown, isFocusable, isMuddy, isSelecting, isUpArrowShown, isValidLayout, keyChar, keyDown, keyRepeat, keyStatus, keyUp, layout, layoutChild, moveFocus, moveFocus, navigationClick, navigationUnclick, nextFocus, onUndisplay, onUnfocus, paint, paintChild, replace, setDirty, setFieldWithFocus, setFocus, setHorizontalQuantization, setHorizontalScroll, setHorizontalScroll, setPositionChild, setScrollingInertial, setScrollListener, setVerticalQuantization, setVerticalScroll, setVirtualExtent, touchEvent, trackwheelClick, trackwheelUnclick
 
Methods inherited from class net.rim.device.api.ui.Field
applyTheme, assertHaveEventLock, drawFocus, drawHighlightRegion, fieldChangeNotify, focusAdd, focusChangeNotify, focusRemove, getBackground, getBackground, getBorder, getBorder, getBorder, getChangeListener, getContentHeight, getContentLeft, getContentRect, getContentRect, getContentTop, getContentWidth, 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, setChangeListener, setCookie, setEditable, setExtent, setFocus, setFocusListener, setFont, setMargin, setMargin, setMinimalWidth, setMuddy, setNonSpellCheckable, setPadding, setPadding, setPosition, setVisualState, trackwheelRoll, updateLayout
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface oracle.adfnmc.component.ui.INativeUiComponent
isFocusable, isVisible
 

Field Detail

MAX_DIMENSION

protected final int MAX_DIMENSION
See Also:
Constant Field Values

headerBackgroundColor

protected final int headerBackgroundColor
See Also:
Constant Field Values

TABLE_SELECTION_MODE

public static final int TABLE_SELECTION_MODE
See Also:
Constant Field Values

CELL_SELECTION_MODE

public static final int CELL_SELECTION_MODE
See Also:
Constant Field Values

CONTROL_SELECTION_MODE

public static final int CONTROL_SELECTION_MODE
See Also:
Constant Field Values

tableControl

protected BBTable.TableControlManager tableControl

columns

protected java.util.Vector columns

colCount

protected int colCount

rowCount

protected int rowCount

rowHeight

protected int[] rowHeight

rowOffset

protected int[] rowOffset

columnOffset

protected int[] columnOffset

currentSelectionMode

protected int currentSelectionMode

currentRowIndex

protected int currentRowIndex

previousVerticalScroll

protected int previousVerticalScroll

previousHorizontalScroll

protected int previousHorizontalScroll

settingHighlightRow

protected boolean settingHighlightRow

scrollHighlightIntoView

protected boolean scrollHighlightIntoView

currentColumnIndex

protected int currentColumnIndex

tempVar

protected int tempVar

tempVar2

protected int tempVar2

focusDelegate

protected BBTable.TableGridManager.TableFocusDelegateField focusDelegate

focusDelegate2

protected BBTable.TableGridManager.TableFocusDelegateField focusDelegate2

cellStartOffset

protected int cellStartOffset

cellHighlightColor

protected int cellHighlightColor

addingField

protected boolean addingField

removingRange

protected boolean removingRange

gridWidth

protected int gridWidth

gridHeight

protected int gridHeight

previousRangeStart

protected int previousRangeStart

previousRangeLength

protected int previousRangeLength

loadedRowRangeOffset

protected int loadedRowRangeOffset

loadedRowRangeHeight

protected int loadedRowRangeHeight

useLayoutAbortCondition

public boolean useLayoutAbortCondition

sortAssistant

protected SortAssistant sortAssistant

filterAssistant

protected FilterAssistant filterAssistant

borderWidth

protected int borderWidth

translateByScrollOffset

protected boolean translateByScrollOffset

rollingSumRowHeights

protected int rollingSumRowHeights

rollingSumRows

protected int rollingSumRows

disposingRangeNative

protected boolean disposingRangeNative

focusChainScrollValues

protected java.util.Vector focusChainScrollValues

restoringScrollValues

protected boolean restoringScrollValues

useFieldInsertionIndex

protected boolean useFieldInsertionIndex

fieldInsertionIndex

protected int fieldInsertionIndex
Method Detail

setCurrentRowIndex

protected void setCurrentRowIndex(int index)

setHighlightRow

protected void setHighlightRow(int row,
                               boolean scrollIntoView)

scrollRowIntoView

protected void scrollRowIntoView(int row)

scrollRectangleIntoView

protected boolean scrollRectangleIntoView(net.rim.device.api.ui.XYRect r)

getEstimatedRowLocation

public int getEstimatedRowLocation(int row)

setHighlightRowImpl

public void setHighlightRowImpl(int modelRowIndex)

focusCurrentRow

public int focusCurrentRow()
Specified by:
focusCurrentRow in interface INativeTable

handleAddedPre

protected void handleAddedPre()

drawHighlightRect

public void drawHighlightRect(net.rim.device.api.ui.Graphics g,
                              net.rim.device.api.ui.XYPoint translation)

add

public void add(net.rim.device.api.ui.Field field)
Overrides:
add in class net.rim.device.api.ui.Manager

setColumns

public void setColumns(java.util.Vector tableColumns)

isEmptyTextLabelDisplayed

protected boolean isEmptyTextLabelDisplayed()

sublayout

protected void sublayout(int width,
                         int height)
Overrides:
sublayout in class net.rim.device.api.ui.container.FlowFieldManager

measureRows

protected int measureRows(int availableWidth,
                          int availableHeight,
                          int rowStart,
                          int rowCount)

positionRows

protected void positionRows(int offsetX,
                            int offsetY,
                            int rowStart,
                            int rowCount)

updateGridMeasurements

protected void updateGridMeasurements()

fixScrollValues

protected void fixScrollValues()

isLastRowLoaded

protected boolean isLastRowLoaded()

paintBackground

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

subpaint

protected void subpaint(net.rim.device.api.ui.Graphics g)
Overrides:
subpaint in class net.rim.device.api.ui.container.FlowFieldManager

setSortAssistant

public void setSortAssistant(SortAssistant assistant)

setFilterAssistant

public void setFilterAssistant(FilterAssistant assistant)

setBorderWidth

public void setBorderWidth(int width)

getBorderWidth

public int getBorderWidth()

getFocusRect

public void getFocusRect(net.rim.device.api.ui.XYRect rect)
Overrides:
getFocusRect in class net.rim.device.api.ui.Manager

getFocusRectPhantom

public void getFocusRectPhantom(net.rim.device.api.ui.XYRect rect)

getHighlightCellRectScrolled

protected void getHighlightCellRectScrolled(net.rim.device.api.ui.XYRect rect)

getHighlightCellRect

public void getHighlightCellRect(net.rim.device.api.ui.XYRect rect)

isDelegateFocusable

public boolean isDelegateFocusable()

getFieldAtLocation

public int getFieldAtLocation(int x,
                              int y)
Overrides:
getFieldAtLocation in class net.rim.device.api.ui.container.FlowFieldManager

alignColumn

public void alignColumn(java.lang.String alignment,
                        java.lang.String columnID)

hasFocus

protected boolean hasFocus()

isDisabled

public boolean isDisabled()
Specified by:
isDisabled in interface INativeUiComponent

setDisabled

public void setDisabled(boolean disabled)
Specified by:
setDisabled in interface INativeUiComponent

getFocusable

public boolean getFocusable()

setFocusable

public void setFocusable(boolean focusable)

dispose

public void dispose()
Specified by:
dispose in interface INativeUiComponent

invalidateControl

public void invalidateControl()
Specified by:
invalidateControl in interface INativeUiComponent

getAdfViewportRectangle

public Rectangle getAdfViewportRectangle()
Specified by:
getAdfViewportRectangle in interface INativeTable

getLoadedRowsRectangle

public Rectangle getLoadedRowsRectangle()
Specified by:
getLoadedRowsRectangle in interface INativeTable

updateRowHeightAverage

protected void updateRowHeightAverage(int height)

getAvgRowHeight

public int getAvgRowHeight()
Specified by:
getAvgRowHeight in interface INativeTable

doLayout

public void doLayout(int width,
                     int height)
Specified by:
doLayout in interface INativeUiComponent

getAdfmcOwner

public Component getAdfmcOwner()
Specified by:
getAdfmcOwner in interface INativeUiComponent

resetFocusInformation

protected void resetFocusInformation()

handleRemoveChild

protected void handleRemoveChild(INativeUiComponent comp)

disposeRangeNative

public void disposeRangeNative(int start,
                               int count)
Specified by:
disposeRangeNative in interface INativeTable

printRectangle

public void printRectangle(java.lang.String name,
                           net.rim.device.api.ui.XYRect rect)

printRectangleStdOut

public void printRectangleStdOut(java.lang.String name,
                                 net.rim.device.api.ui.XYRect rect)

formatRectangle

public java.lang.String formatRectangle(java.lang.String name,
                                        net.rim.device.api.ui.XYRect rect)

intToBinaryString

public java.lang.String intToBinaryString(int number)

shiftPreviousRange

public void shiftPreviousRange(int amount)
Specified by:
shiftPreviousRange in interface INativeTable

resizePreviousRange

public void resizePreviousRange(int amount)
Specified by:
resizePreviousRange in interface INativeTable

getRowHeights

public int[] getRowHeights()
Specified by:
getRowHeights in interface INativeTable

getEstimatedRangeStart

public int getEstimatedRangeStart()
Specified by:
getEstimatedRangeStart in interface INativeTable

storeScrollValues

public void storeScrollValues()
Specified by:
storeScrollValues in interface INativeTable

restoreScrollValues

public void restoreScrollValues()
Specified by:
restoreScrollValues in interface INativeTable

resetScrollValues

public void resetScrollValues()
Specified by:
resetScrollValues in interface INativeTable

insertNextElementAt

public void insertNextElementAt(int index)
Specified by:
insertNextElementAt in interface INativeTable

insertCellAt

public void insertCellAt(java.lang.Object cell,
                         int index)
Specified by:
insertCellAt in interface INativeTable

makeMenu

protected void makeMenu(net.rim.device.api.ui.component.Menu menu,
                        int instance)
Overrides:
makeMenu in class net.rim.device.api.ui.Manager

onFocus

protected void onFocus(int direction)
Overrides:
onFocus in class net.rim.device.api.ui.Manager

invalidateTableLayout

public void invalidateTableLayout()
Specified by:
invalidateTableLayout in interface INativeTable

Oracle Fusion Middleware Java API Reference for Oracle ADF Mobile Client
11g Release 1 (11.1.1)

E17503-02

Copyright © 2011, Oracle and/or its affiliates. All rights reserved.