Tải bản đầy đủ (.pdf) (12 trang)

LWUIT 1.1 for Java ME Developers- P9

Bạn đang xem bản rút gọn của tài liệu. Xem và tải ngay bản đầy đủ của tài liệu tại đây (921.87 KB, 12 trang )

[
338
]
public static reectionImage(Image source)
method 304
public static reectionImage(Image source,
oat mirrorRatio, int alphaRatio)
method 304
public static String getLogContent() method
319
public static void deleteLog() method 319
public static void p(String text), static
method 315
public static void p(String text, int level),
static method 315
public static void showLog() method 319
public String getText() method 87
public Style getStyle() method 46
public TabbedPane() constructor 75
public TabbedPane(int tabPlacement)
constructor 75
public TimeTeller(Viewer viewer)
constructor 198
public void addActionListener(ActionListen
er l) method 70
public void addDataChangeListener(DataC
hangedListener l) method 70
public void addTab(String title, Component
component) method 75
public void addTab(String title, Image icon,
Component component) method 75


public void dispose() method 67
public void insertTab(String title, Image
icon, Component component, int
index) method 75
public void keyPressed(int keycode) 43
public void keyReleased(int keycode) 43
public void keyRepeated(int keycode) 43
public void paint(Graphics g) 43
public void paint(Graphics g, Rectangle
rect) method 289
public void paintComponent(Graphics g)
43
public void paintComponent(Graphics g,
boolean background) 43
public void pointerDragged(int x, int y) 43
public void pointerPressed(int x, int y) 43
public void pointerReleased(int x, int y) 43
public void removeActionListener(ActionLi
stener l) method 70
public void removeDataChangeListener(Dat
aChangedListener l) method 70
public void setAutoDispose(boolean
autoDispose) method 67
public void setDate(Date d) method 69
public void setEndsWith3Points(boolean
endswith3points) method 85
public void setHeight(int height) 42
public void setPreferredSize(Dimension d)
42
public void setSelectedIndex(int index)

method 76
public void setSize(Dimension d) 42
public void setStyle(Style style) method
46
public void setTabPlacement(int tabPlace-
ment) method 76
public void setTabTitle( String title) method
76
public void setTextPosition(int textPosition)
method 86
public void setTimeout(long time) method
67
public void setVerticalAlignment(int
valign) method 86
public void setWidth(int width) 42
public void start Ticker(long delay, boolean
rightToLeft) method 88
public void stopTicker() method 88
Q
queue 22
quintessential qualities, Layout class
152, 153
R
RadioButton.
See
RadioButton class
RadioButton() constructor 104
RadioButton(Image icon) constructor 104
RadioButton(String text) constructor 104
RadioButton(String text, Image icon)

constructor 104
RadioButton class
about 103
actionPerformed method 109
Back command 107
boolean isSelected() method 105
This material is copyright and is licensed for the sole use by William Anderson on 26th August 2009
4310 E Conway Dr. NW, , Atlanta, , 30327
[
339
]
clearSelection method 109
Conrm command 106
constructors 104
getSelectedIndex method 108
methods 105
None radio button 105
OK command 107
RadioButton() constructor 104
RadioButton(Image icon) constructor 104
RadioButton(String text) constructor 104
RadioButton(String text, Image icon)
constructor 104
RadioButton creating, constructors used
104
reservation example 105, 106
setSelected method 109
showDialog method 108
void setSelected(boolean selected) method
105

real time mode, TimeTeller class
actionPerformed method 204
addAlarmHandler method 204
alarm function, using 204
Alarm On command used 204
blinkOffTime 202, 203
blinkOnTime 202, 203
callAlarmHandler method 208, 209
callSerially 209
callSeriallyAndWait 208
garbage collector, calling 210, 211
menu 210
minOffset 202
newMin 202, 203
run method 201, 208
setAlarmMode method 204
setAlarmOn method 206, 207
setAlarmValue 207
showDialog method 205, 206
timerEnabled variable 202
TimeTellerMIDlet 204
Record Management System.
See
RMS
reectionImage methods 305
refreshTheme method 253
registerAnimated method 260
renderer 129, 130
replace(Component current, Component
next, Transition t) method 276

resetIndex method 265
resetTimer method 213
resource elements
animation resources 17
bitmap fonts 17
image resources 17
localization bundles 17
themes 17
resource le creating, LWUIT Designer used
animation, adding 223
font, adding 224, 225
image, adding 222, 223
localization resource, adding 225, 226
theme, adding 226
resource le saving, LWUIT Designer used
226
resources class
get*ResourceNames 226
getImageResourceNames 226
is*(String name) 226
isImage(String name) method 226
methods 226
static Resources open (InputStream
resource) method 226
static Resources open (String resource)
method 226
resumeAnimation method 264-266
RMS 306
S
SampleResource demo

about 227-229
automatic approach 233
bgImage, setting as background 229
getAppProperty method 232
getL10N method 234
getProperty(String key), static method 234
hashtable, loading 231
internationalization (i18n) 235, 236
labels creating, animated image used 229
labels creating, bitmap font used 229
locale, setting up 232
Localization (L10N) 230
localize method 233
manual approach 231
scaleImage attribute 295
This material is copyright and is licensed for the sole use by William Anderson on 26th August 2009
4310 E Conway Dr. NW, , Atlanta, , 30327
[
340
]
SENSITIVE constraint, TextArea 135
setAlarmMode method 204
setAlarmOn method 206, 207
setBgColor method 292
setBgPainter method 292
setClip(int x, int y, int width, int height)
method 47
setClip method 282
setColumns method 147
setCommitTimeout(int commitTimeout)

method 150
setDefaultChangeInputModeKey(int
keycode) method 147
setDefaultDialogTransitionIn(Transition
defaultDialogTransitionIn) method,
274
setDefaultDialogTransitionOut(Transition
defaultDialogTransitionOut) method,
274
setDefaultFormTransitionIn(Transition
defaultFormTransitionIn) method,
274
setDefaultFormTransitionOut(Transition
defaultFormTransitionOut) method,
274
setDefaultMenuTransitionIn(Transition
defaultMenuTransitionIn) method,
274
setDefaultMenuTransitionOut(Transition
defaultMenuTransitionOut) method
274
setEditable method 137
setElapsedTimeMode method 211
setFixedSelection method 116, 122
setLayout method 155
setLookAndFeel(LookAndFeel plaf)
method 45
setMode method 211
setPreferredSize() method 42
setRenderingPrototype(Object

renderingPrototype) method 114
setRenderingPrototype method 191
setScrollableX method 155
setSelected() method 102
setSelectedStyle method 80
setStyle method 80
setStyles method 196, 197
setter methods 216
setTransitionInAnimator method 273
setTransitionOutAnimator method 273
setUnSelectedStyle method 80
setUnsupportedChars(String
unsupportedChars) method 139
show() method 64
showCount method 194
showDialog method 10
1, 108, 205, 206
showTime method 190, 194
slide transition 267
sourceValue, StepMotion class 284
spline, Motion class 268
Sprint Wireless Toolkit 3.3.2.
See
SWTK
startApp method 84, 150
static Font getDefaultFont() method 61
static Resources open (InputStream
resource) method 226
static Resources open (String resource)
method 226

static void setDefaultFont(Font f) method
61
StepMotion class
about 284
destinationValue 284
duration 285
getStep method 285
isFinished method 285
sourceValue 284
steps 285
steps, StepMotion class 285
stopAnimation method 266
String getCommandName() method 54
style
accessor methods 80
for future 79
isScaleImage method 295
getSelectedStyle method 80
getStyle method 80
getUnSelectedStyle method 80
scaleImage attribute 295
setBgColor method 79
setBgSelectionColor method 79
setSelectedStyle method 80
setStyle method 80
setUnSelectedStyle method 80
This material is copyright and is licensed for the sole use by William Anderson on 26th August 2009
4310 E Conway Dr. NW, , Atlanta, , 30327
[
341

]
style, attributes
colors 17
fonts 17
images 17
margin 17
padding 17
transparency 18
Style class 46
style object 46
support elements
about 16
layout managers 17
LookAndFeel 18
painter interface 18
resource element 16
style 17
UIManager 18
SWTK
downloading, link 26
prerequisites 26
system class
getProperty(String key), static method 234
T
TabbedPane
about 73
creating, constructors used 75
in action 76-79
tabs 73, 74
TabbedPane class 75

constructors 75
methods 75
public Component getTabComponentAt(int
index) method 75
public int getSelectedIndex() method 75
public int getTabCount() method 75
public int indexOfComponent(Component
component) method 75
public int removeTabAt(int index) method
75
public TabbedPane(), constructor 75
public TabbedPane(int tabPlacement),
constructor 75
public void addTab(String title, Component
component) method 75
public void addTab(String title, Image icon,
Component component) method 75
public void addTabsListener(SelectionListe
ner listener) method 76
public void setSelectedIndex(int index)
method 76
public void setTabPlacement(int
tabPlacement) method 76
public void setTabTitle( String title) method
7
6
Tabbedpane class.
See
also TabbedPane
Task class 124

done variable 125
todo variable 125
tButton 92
TextArea 14
TextArea() constructor 134
TextArea(int rows, int columns) constructor
134
TextArea(int rows, int columns, int
constraints) constructor 134
TextArea(String text) constructor 134
TextArea(String text, int maxSize)
constructor 134
TextArea(String text, int rows, int columns)
constructor 134
TextArea(String text, int rows, int columns,
int constraints) constructor 135
TextArea class 149
ActionListener, adding 141
and TextField class, differences 143
Cancel command 137
constraints 135
constructors 134
DemoTextArea MIDlet 136
Menu command 137
methods 136
preprocess(String text) method 139
protected method 139
setEditable method 137
setUnsupportedChars(String
unsupportedChars) method 139

TextArea() constructor 134
TextArea(int rows, int columns)
constructor 134
This material is copyright and is licensed for the sole use by William Anderson on 26th August 2009
4310 E Conway Dr. NW, , Atlanta, , 30327
[
342
]
TextArea(int rows, int columns,
int constraints) constructor 134
TextArea(String text) constructor 134
TextArea(String text, int maxSize)
constructor 134
TextArea(String text, int rows, int columns)
constructor 134
TextArea(String text, int rows, int columns,
int constraints) constructor 135
TextArea Demo 136-142
TextArea class, constraints
ANY constraint 135
DECIMAL constraint 135
EMAILADDR constraint 135
INITIAL_CAPS_SENTENCE constraint 135
INITIAL_CAPS_WORD constraint 135
NON_PREDICTIVE constraint 135
NUMERIC constraint 135
PASSWORD constraint 135
PHONENUMBER constraint 135
SENSITIVE constraint 135
UNEDITABLE constraint 135

URL constraint 135
TextField() constructor 142
TextField(int columns) constructor 142
TextField(String text) constructor 142
TextField(String text, int columns)
constructor 142
TextField, TextArea widget 14
TextField class
actionPerformed method 146
addDataChangeListener method 148
and TextArea class, differences 143
commitTimeout parameter 150
creating, constructors used 142
DataChangedListener 148
dataChanged method 148
DemoTextField MIDlet 143
Exit command 147
getColumns method 147
index parameter 148
Insert command 147
MenuCellRenderer, installing 143
methods 143
Overwrite command 147
Resize command 147
setColumns method 147
setCommitTimeout(int commitTimeout)
method 150
setDefaultChangeInputModeKey(int
keycode) method 147
startApp method 150

TextArea class 149
TextField() constructor 142
TextField(int columns) constructor 142
TextField(String text) constructor 142
TextField(String text, int columns)
constructor 142
TextField.PASSWORD 149
TextField Demo 143-150
type parameter 148
TextPainter class 294
theme le
add image dialog, closing 244
bgImage, selecting 244
buttons, selecting 248, 249
code, compiling 247
DemoTheme application used 240, 241
editing 239
image, adding 244, 245
populating 240-243
preview panel 247
ThemeDemo 241, 242
viewing 238, 239
working with 237
themes 20
theming
features 253
refreshTheme method 253
setThemeProps method 253
versus manual styling 252
timeLabel, TimeViewer class

about 190
calcPreferredSize method 191
height, calculating 192
setRenderingPrototype method 191
text, displaying 192
timerEnabled variable 202
TimeTeller class
calendar class 198
constructors 197
elapsed time mode 211
empty methods 200
example 188
This material is copyright and is licensed for the sole use by William Anderson on 26th August 2009
4310 E Conway Dr. NW, , Atlanta, , 30327

×