|
|||||||||
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.RadioButtonField
com.sybase.uep.bobclient.controls.RadioBox
public class RadioBox
This is the Radio box control
Field Summary |
---|
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 | |
---|---|
RadioBox(int labelRID,
long style)
Radio box constructor |
|
RadioBox(int labelRID,
long style,
boolean showBackgroundColor)
Radio box constructor |
|
RadioBox(int labelRID,
long style,
boolean showBackgroundColor,
boolean emptyMeansNull)
Radio box constructor |
|
RadioBox(java.lang.String label,
long style)
Radio box constructor |
|
RadioBox(java.lang.String label,
long style,
boolean showBackgroundColor)
Radio box constructor |
|
RadioBox(java.lang.String label,
long style,
boolean showBackgroundColor,
boolean emptyMeansNull)
Radio box constructor |
Method Summary | |
---|---|
protected void |
drawFocus(net.rim.device.api.ui.Graphics g,
boolean on)
(non-Javadoc) |
int |
getColSpan()
(non-Javadoc) |
int |
getFieldIndex()
Retrieve the edit index for this radiobox |
FontStyle |
getFontStyle()
Retrieve this control's font style |
long |
getHorizontalAlignment()
(non-Javadoc) |
java.lang.String |
getName()
(non-Javadoc) |
int |
getPreferredHeight()
(non-Javadoc) |
int |
getPreferredWidth()
(non-Javadoc) |
int |
getRowSpan()
(non-Javadoc) |
java.lang.String |
getType()
Retrieve the type for this radiobox |
ValidationObject |
getValidationObj()
Retrieve the validation object set on this checkbox |
java.lang.Object |
getValue()
(non-Javadoc) |
long |
getVerticalAlignment()
(non-Javadoc) |
boolean |
hasValidation()
Check if there is a validation object assigned to this control |
boolean |
isReadOnly()
Check if this radio box is read only and can't be changed |
boolean |
isRequired()
Check if this radiobox is required |
protected void |
layout(int width,
int height)
(non-Javadoc) |
protected void |
paint(net.rim.device.api.ui.Graphics g)
(non-Javadoc) |
void |
refresh()
(non-Javadoc) |
void |
refreshFooter(java.lang.String valueToBeDisplay)
Refresh the footer field from the screen that contains the text of the button. |
void |
setBackgroundColor(int bgcolor)
(non-Javadoc) |
void |
setColSpan(int colspan)
(non-Javadoc) |
void |
setFieldIndex(int index)
Set index |
void |
setFontStyle(FontStyle fontStyle)
Set the font style for this control |
void |
setFooterField(FooterField field)
Set the footer field |
void |
setLayoutHeight(int height)
(non-Javadoc) |
void |
setLayoutWidth(int width)
(non-Javadoc) |
void |
setName(java.lang.String name)
Set a key name for this control |
void |
setProperty(int key,
java.lang.String value)
Set the property values for this button |
void |
setRequired(boolean required)
Set if this radiobox is required |
void |
setRowSpan(int rowspan)
(non-Javadoc) |
void |
setType(java.lang.String type)
Set type |
void |
setValidationObject(ValidationObject obj)
Set validation object |
void |
setValue(int valueId)
Set the value for this radiobox. |
void |
setValue(java.lang.String value)
Set the value for this radiobox. |
void |
setVariableLabel(ControlVariable variable)
Set the control variable object to the radio box label |
void |
setVariableValue(ControlVariable variable)
Set the control variable object to the radio box value |
Methods inherited from class net.rim.device.api.ui.component.RadioButtonField |
---|
getAccessibleContext, getFocusRect, getGroup, getLabel, isSelected, keyChar, keyDown, makeContextMenu, onFocus, onUnfocus, setLabel, setSelected |
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, getLeafFieldWithFocus, getLeft, getManager, getMargin, getMarginBottom, getMarginLeft, getMarginRight, getMarginTop, getOriginal, getPadding, getPaddingBottom, getPaddingLeft, getPaddingRight, getPaddingTop, getScreen, getState, getStyle, getTop, getVisualState, getWidth, invalidate, invalidate, invalidateAll, invokeAction, isDataValid, isDirty, isEditable, isFocus, isFocusable, isMuddy, isPasteable, isSelectable, isSelecting, isSelectionCopyable, isSelectionCutable, isSelectionDeleteable, isSpellCheckable, isStyle, isVisible, keyControl, keyRepeat, keyStatus, keyUp, makeContextMenu, moveFocus, moveFocus, navigationClick, navigationMovement, navigationUnclick, onDisplay, onExposed, onMenuDismissed, onMenuDismissed, onObscured, onUndisplay, onVisibilityChange, paintBackground, 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, touchEvent, trackwheelClick, trackwheelUnclick, updateLayout |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RadioBox(java.lang.String label, long style)
label
- String
value for the labelstyle
- long
value for the style.
eg. Field.FIELD_LEFT
, Field.FIELD_RIGHT, Field.FIELD_HCENTER
, etc.- See Also:
Field
public RadioBox(int labelRID, long style)
labelRID
- int
value for the localization resource ID for the label of this radioboxstyle
- long
value for the style.
eg. Field.FIELD_LEFT
, Field.FIELD_RIGHT, Field.FIELD_HCENTER
, etc.
public RadioBox(java.lang.String label, long style, boolean showBackgroundColor)
label
- String
value for the labelstyle
- long
value for the style.
eg. Field.FIELD_LEFT
, Field.FIELD_RIGHT, Field.FIELD_HCENTER
, etc.showBackgroundColor
- true
to show background color, otherwise false
- See Also:
Field
public RadioBox(java.lang.String label, long style, boolean showBackgroundColor, boolean emptyMeansNull)
label
- style
- showBackgroundColor
- emptyMeansNull
- public RadioBox(int labelRID, long style, boolean showBackgroundColor)
labelRID
- int
value for the localization resource ID for the label of this radioboxstyle
- long
value for the style.
eg. Field.FIELD_LEFT
, Field.FIELD_RIGHT, Field.FIELD_HCENTER
, etc.showBackgroundColor
- true
to show background color, otherwise false
public RadioBox(int labelRID, long style, boolean showBackgroundColor, boolean emptyMeansNull)
labelRID
- style
- showBackgroundColor
- emptyMeansNull
- Method Detail |
---|
public FontStyle getFontStyle()
FontStyle
font style objectFontStyle
public void setFontStyle(FontStyle fontStyle)
fontStyle
- FontStyle
font style objectFontStyle
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 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 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 setVariableLabel(ControlVariable variable)
variable
- ControlVariable
control variable objectControlVariable
public void setVariableValue(ControlVariable variable)
variable
- ControlVariable
control variable objectControlVariable
public void setValue(java.lang.String value)
value
- String
new valuepublic void setValue(int valueId)
valueId
- key in localization filespublic java.lang.Object getValue()
getValue
in interface Control
Object
of the value set for this controlControl.getValue()
public int getFieldIndex()
int
value for the indexpublic java.lang.String getType()
String
value for the control typepublic java.lang.String getName()
getName
in interface Control
String
value of the key nameControl.getName()
public ValidationObject getValidationObj()
ValidationObject
validation objectValidationObject
public boolean hasValidation()
true
if there is validation object set, otherwise false
public void setRequired(boolean required)
required
- true
if it's required, otherwise false
public boolean isRequired()
true
if required, otherwise false
public void setLayoutWidth(int width)
setLayoutWidth
in interface Control
width
- int
value of the available layout widthControl.setLayoutWidth(int width)
public int getPreferredWidth()
getPreferredWidth
in interface Control
getPreferredWidth
in class net.rim.device.api.ui.component.RadioButtonField
int
value of the available layout widthControl.getPreferredWidth()
public void setLayoutHeight(int height)
setLayoutHeight
in interface Control
height
- int
value of the available layout heightControl.setLayoutHeight(int height)
public int getPreferredHeight()
getPreferredHeight
in interface Control
getPreferredHeight
in class net.rim.device.api.ui.component.RadioButtonField
int
value of the available layout heightControl.getPreferredHeight()
public void refresh()
refresh
in interface Control
Control.refresh()
protected void drawFocus(net.rim.device.api.ui.Graphics g, boolean on)
drawFocus
in class net.rim.device.api.ui.component.RadioButtonField
Field.drawFocus(Graphics g, boolean on)
public void setProperty(int key, java.lang.String value)
key
- int
int value for the key of a specific attributevalue
- String
value for this attributepublic void refreshFooter(java.lang.String valueToBeDisplay)
valueToBeDisplay
- String
value for the text to be display in the footerprotected void layout(int width, int height)
layout
in class net.rim.device.api.ui.component.RadioButtonField
Field.layout(int width, int height)
protected void paint(net.rim.device.api.ui.Graphics g)
paint
in class net.rim.device.api.ui.component.RadioButtonField
Field.paint(Graphics g)
public void setFooterField(FooterField field)
{@link
- FooterField} footer field to put the text of the textinput into.
This is useful for long text, so it can be displayed in the footer.
null
value if there is no footer.FooterField
public void setType(java.lang.String type)
type
- String
value for the type of the updatepublic void setName(java.lang.String name)
name
- String
value for the key name for this controlpublic void setValidationObject(ValidationObject obj)
obj
- ValidationObject
validation objectValidationObject
public void setFieldIndex(int index)
index
- int
value for the edit indexpublic boolean isReadOnly()
true
if the radio box is read only, otherwise false
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |