Attributes |
Attribute |
Default |
Object |
Set |
Get |
Description |
class |
- |
No |
Yes |
No |
The widget's style class. The value is as string text. |
constraints |
any |
No |
Yes |
No |
Define the textbox edit constraints. The value is a string representing the constraints ( any , emailaddr , numeric , phonenumber , url , decimal , password , sensitive , non_predictive , initial_caps_work , initial_caps_sentence ). |
dataprovider |
null |
Yes |
No |
Yes |
The associated dataProvider . |
editonallkeys |
true |
No |
Yes |
No |
The editOnAllKeys attribute define if the J2ME native edit dialog is opened when any valid key is hit when the widget has the focus. |
enabled |
true |
No |
Yes |
No |
Define the widget's state. The value is a boolean (true or false). |
focusable |
true |
No |
Yes |
No |
Define if the widget is focusable. |
focused |
false |
No |
Yes |
Yes |
Request the focus for this widget. |
focusedwidget |
- |
Yes |
No |
Yes |
Give the focused widget which is a child of the same focusManager that this widget instance. This attribute is read only and could be use in action metod definition. |
id |
- |
No |
Yes |
Yes |
The widget's unique identifier. The value is as string text. |
maxsize |
1000 |
No |
Yes |
No |
Define the maximum number of characters. |
onchange |
- |
No |
Yes |
No |
The change called method. |
onfocus |
- |
No |
Yes |
No |
The focus gain called method. |
onlostfocus |
- |
No |
Yes |
No |
The focus lost called method. |
pressedshortcuts |
- |
No |
Yes |
No |
see shortcuts . |
releasedshortcuts |
- |
No |
Yes |
No |
The widget key released shortcuts. |
repeatedshortcuts |
- |
No |
Yes |
No |
The widget key repeated shortcuts. |
shortcuts |
- |
No |
Yes |
No |
The widget key pressed shortcuts. The value is a string representing one or more KuixKeyCode ( 0 , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 , 9 , * , # , softleft , softright , up , left , right , down , fire , delete , back , pencil ). The multiple keys separator is the '|'. |
style |
- |
No |
Yes |
No |
The author style. The value is as string text where each style property/value couple is separated by a ';' and is conforme to style properties syntax. ( ex: color:red;layout:borderlayout ). |
text |
- |
No |
Yes |
Yes |
Define the text value. |
title |
- |
No |
Yes |
No |
Define the textbox title. |
tooltip |
- |
No |
Yes |
No |
Define the tooltip text. |
visible |
true |
No |
Yes |
No |
The widget visibility. The value is a string boolean ( true or false ). |
Style properties |
Property |
Default |
Inherit |
Description |
align |
top-left |
No |
Define the content alignment. The value is an alignement string ( top , top-left , left , bottom-left , bottom , bottom-right , right , top-right , center , fill , fill-top , fill-left , fill-bottom , fill-right , fill-center ). |
bg-align |
top-left |
No |
Define the background images alignment. The value is a list of alignment like align property separated by a '|'. This property is only used if bg-image is defined. |
bg-color |
- |
No |
Define the background color. The value is a color like color property. |
bg-image |
- |
No |
Define the background images. The value is a liste of image files path separated by a '|'. |
bg-repeat |
0 0 |
No |
Define the background images repeat method. The value is a list of <repeatx> <repeaty> separated by a '|'. 0 means infinit. This property is only used if bg-image is defined. |
border |
0 0 0 0 |
No |
Define the border size. Syntax : <top> <right> <bottom> <left> . If all the values are the same, you can specify only one value. |
border-align |
null |
No |
Uneditable. |
border-align |
- |
No |
Define the border images alignment. Syntax : <align top> <align top-right> <align right> <align bottom-right> <align bottom> <align bottom-left> <align left> <align top-left> . This property is only used if border-images is defined. |
border-color |
null |
No |
Uneditable. |
border-image |
null |
No |
Uneditable. |
border-stroke |
null |
No |
Uneditable. |
color |
#000000 |
Yes |
Define the font color. The value is a color string ( red , green , blue , white , black or #rrggbb ). |
font-face |
system |
Yes |
Define the font face. The value is an face string (monospace , proportional , system ). |
font-size |
medium |
Yes |
Define the font size. The value is an size string (small , medium , large ). |
font-style |
plain |
No |
Define the font style. The value is an style string (plain , bold , italic , underlined ). Values could be combined like : bold | italic . |
gap |
0 0 |
No |
Define the gap. The gap represents the space in pixels between widget of a same parant. It could depends of the parent's layout. Syntax : <hgap> <vgap> . |
greyed-color |
none |
No |
Define greyed color used when the widget is added as a popup to the desktop to greyed it. By default this color is null. |
layout |
null |
No |
Uneditable. |
layout-data |
null |
No |
Define the widget layout data. The value is a layout data tag ( bld(<align>) , sld(<align>,<width>,<height>) ). |
margin |
0 0 0 0 |
No |
Define the margin. The margin is the outside border space. Syntax : <top> <right> <bottom> <left> . If all the values are the same, you can specify only one value. |
min-size |
0 0 |
No |
Define the widget min size. Syntax : <minwidth> <minheight> . |
padding |
0 0 0 0 |
No |
Define the padding. The padding is the inside border space. Syntax : <top> <right> <bottom> <left> . If all the values are the same, you can specify only one value. |
span |
1 1 |
No |
Define the col and row span. Span is used only if the parent's widget is a TableLayout. Syntax : <colspan> <rowspan> . |
weight |
0 0 |
No |
Define the weight x and y. Weight is used only if the parent's widget is a TableLayout. Syntax : <weightx> <weighty> . |