|
|||||||||
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.RowLayout
public class RowLayout
This is the row layout control
Field Summary |
---|
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 |
Constructor Summary | |
---|---|
RowLayout(int columns,
LayoutManager layoutManager)
Row Layout constructor |
|
RowLayout(int columns,
LayoutManager layoutManager,
int bgcolor)
Row Layout constructor |
Method Summary | |
---|---|
void |
addWidget(net.rim.device.api.ui.Field widget)
Add widget to the row |
boolean |
addWidget(net.rim.device.api.ui.Field widget,
int colspan)
Add widget to this row |
boolean |
addWidget(net.rim.device.api.ui.Field widget,
int colspan,
int rowspan)
Add widget to this row |
void |
fillExisting()
Fill existing unused columns in this row |
void |
getAllFields(java.util.Vector result)
Get all fields on this row layout manager |
int |
getControlXCoordinator(Control field)
|
int |
getPreferredHeight()
Retrieves this field's preferred height. |
int |
getPreferredWidth()
Retrieves this field's preferred width. |
boolean |
isFull()
Check is the row is full |
protected void |
onFocus(int direction)
|
void |
paint(net.rim.device.api.ui.Graphics g)
Paints this manager's visible region. |
protected void |
paintRowLayout(net.rim.device.api.ui.Graphics g,
FontStyle fontStyle,
int height,
int width)
|
void |
refresh()
Refreshing all the controls |
void |
refreshColumnWidths()
|
void |
setBgColor(int color)
Set the background color |
void |
setLastFocusedField(net.rim.device.api.ui.Field lastFocusedField)
Sets the last focused field in the rowLayout |
int |
size()
Get the current number of widgets in this row |
void |
sublayout(int width,
int height)
Implements custom layout features for this manager. |
void |
updateRowLayout()
|
Methods inherited from class net.rim.device.api.ui.Manager |
---|
add, clearCustomScrollArrows, delete, deleteAll, deleteRange, getAccessibleContext, getField, getFieldAtLocation, getFieldCount, getFieldWithFocus, getFieldWithFocusIndex, getFocusRect, getHorizontalScroll, getLeafFieldWithFocus, getPreferredHeightOfChild, getPreferredWidthOfChild, getVerticalScroll, getVirtualHeight, getVirtualWidth, getVisibleHeight, getVisibleWidth, insert, invalidate, invalidate, invalidateFieldRange, invokeAction, isDataValid, isDirty, isDownArrowShown, isFocusable, isMuddy, isSelecting, isUpArrowShown, isValidLayout, keyChar, keyControl, keyDown, keyRepeat, keyStatus, keyUp, layout, layoutChild, makeMenu, moveFocus, moveFocus, moveFocus, navigationClick, navigationMovement, navigationUnclick, nextFocus, nextFocus, onUndisplay, onUnfocus, paintChild, replace, setDirty, setFocus, setHorizontalQuantization, setHorizontalScroll, setNonfocusableOverride, setPositionChild, setScrollListener, setVerticalQuantization, setVerticalScroll, setVirtualExtent, subpaint, touchEvent, trackwheelClick, trackwheelUnclick |
Methods inherited from class net.rim.device.api.ui.Field |
---|
drawFocus, 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, makeContextMenu, onDisplay, onExposed, onMenuDismissed, onMenuDismissed, onObscured, onVisibilityChange, paintBackground, 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 |
Constructor Detail |
---|
public RowLayout(int columns, LayoutManager layoutManager)
columns
- - Maximum number of columns allowed for this rowlayoutManager
- - Layout Managerpublic RowLayout(int columns, LayoutManager layoutManager, int bgcolor)
columns
- - Maximum number of columns allowed for this rowlayoutManager
- - Layout Managerbgcolor
- - background color for this rowMethod Detail |
---|
public void sublayout(int width, int height)
sublayout
in class net.rim.device.api.ui.Manager
width
- - Width available for this manager.height
- - Height available for this manager.public int getPreferredWidth()
getPreferredWidth
in class net.rim.device.api.ui.Field
public int getPreferredHeight()
getPreferredHeight
in class net.rim.device.api.ui.Field
public void setBgColor(int color)
color
- - color valuepublic int size()
public void fillExisting()
public void getAllFields(java.util.Vector result)
result
- - vector to store the fieldspublic void updateRowLayout()
public void refresh()
public void addWidget(net.rim.device.api.ui.Field widget)
widget
- - the widget to be addedpublic boolean addWidget(net.rim.device.api.ui.Field widget, int colspan)
widget
- - the widget to be addedcolspan
- - the number of columns this widget will take up
public boolean addWidget(net.rim.device.api.ui.Field widget, int colspan, int rowspan)
widget
- - the widget to be addedcolspan
- - the number of columns this widget will take uprowspan
- - the number of rows this widget will take up
public boolean isFull()
public void paint(net.rim.device.api.ui.Graphics g)
paint
in class net.rim.device.api.ui.Manager
g
- - Graphics object used for painting.protected void paintRowLayout(net.rim.device.api.ui.Graphics g, FontStyle fontStyle, int height, int width)
public void refreshColumnWidths()
protected void onFocus(int direction)
onFocus
in class net.rim.device.api.ui.Manager
public void setLastFocusedField(net.rim.device.api.ui.Field lastFocusedField)
lastFocusedField
- public int getControlXCoordinator(Control field)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |