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

LWUIT 1.1 for Java ME Developers- P8

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 (717.76 KB, 13 trang )

[
337
]
public PainterChain(Painter[] chain)
constructor 292
setBgPainter method 292
Painter interface
about 289, 290
BackgroundPainter class 289
DemoPainter application 290
DemoPainter MIDlet 290
public void paint(Graphics g, Rectangle
rect) method 289
paint method 44, 260
PASSWORD constraint, TextArea 135
PHONENUMBER constraint, TextArea 135
PLAF 20
pluggable look and feel.
See
PLAF
pointerPressed method 92
prependPainter method 292
preprocess(String text) method 139
PrinterChain, static method 297
print method 315
private Writer getWriter() method 316
protected Dimension calcPreferredSize()
method 42
protected method 139
protected String getUIID() method 45
protected void


paintBackground(Graphics g) 43
protected void
paintBackgrounds(Graphics g) 43
protected void paintBorder(Graphics g) 43
protected void paintScrollbars(Graphics g)
43
protected void
paintScrollbarX(Graphics g) 43
protected void
paintScrollbarY(Graphics g) 43
protected Writer createWriter() method 316
public abstract boolean animate() method
278
public abstract Transition copy() method
278
public abstract void paint(Graphics g)
method 278
public boolean isAutoDispose() method 67
public Calendar(), constructor 69
public Calendar(long time), constructor 69
public class TimeViewer 189
public Command(.String command,
Image icon), constructor 54
public Command(String command),
constructor 54
public Command(String command, Image
icon, int id), constructor 54
public Command(String command, int id),
constructor 54
public Component getListCellRen-

dererComponent method 115
public Component getTabComponentAt(int
index) method 75
public Container(), constructor 50
public Container(Layout layout),
constructor 50
public Date getDate() method 69
public Dialog() constructor 65
public Dialog(String title) constructor 65
public Dimension getPreferredSize() 42
public interface AlarmHandler 188
public interface Viewer 188
public int getButtonCount() method 10
3
public int getHeight() 42
public int getPreferredH() 42
public int getPreferredW() 42
public int getSelectedIndex() method 75
public int getTabCount() method 75
public int getWidth() 42
public int indexOfComponent(Component
component) method 75
public int removeTabAt(int index) method
75
public long getSelectedDay() method 69
public Object getSource() method 89
public PainterChain(Painter[] chain)
constructor 292
public RadioButton getRadioButton(int
index) method 103

public static createEmpty() method 268
public static createFade(int duration)
method 268
public static createSlide(int type, boolean
forward, int duration) method 268
public static createSlide(int type, boolean
forward, int duration, boolean
drawDialogMenu) method 269
This material is copyright and is licensed for the sole use by William Anderson on 26th August 2009
4310 E Conway Dr. NW, , Atlanta, , 30327Please purchase PDF Split-Merge on www.verypdf.com to remove this watermark.
[
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, , 30327Please purchase PDF Split-Merge on www.verypdf.com to remove this watermark.
[
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, , 30327Please purchase PDF Split-Merge on www.verypdf.com to remove this watermark.
[
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, , 30327Please purchase PDF Split-Merge on www.verypdf.com to remove this watermark.
[
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, , 30327Please purchase PDF Split-Merge on www.verypdf.com to remove this watermark.

×