LWUIT 1.1 for Java ME Developers- P8

Chia sẻ: Thanh Cong | Ngày: | Loại File: PDF | Số trang:13

0
72
lượt xem
15
download

LWUIT 1.1 for Java ME Developers- P8

Mô tả tài liệu
  Download Vui lòng tải xuống để xem tài liệu đầy đủ

Tham khảo tài liệu 'lwuit 1.1 for java me developers- p8', công nghệ thông tin, kỹ thuật lập trình phục vụ nhu cầu học tập, nghiên cứu và làm việc hiệu quả

Chủ đề:
Lưu

Nội dung Text: LWUIT 1.1 for Java ME Developers- P8

  1. public PainterChain(Painter[] chain) public Command(.String command, constructor 292 Image icon), constructor 54 setBgPainter method 292 public Command(String command), Painter interface constructor 54 about 289, 290 public Command(String command, Image BackgroundPainter class 289 icon, int id), constructor 54 DemoPainter application 290 public Command(String command, int id), DemoPainter MIDlet 290 constructor 54 public void paint(Graphics g, Rectangle public Component getListCellRen- rect) method 289 dererComponent method 115 paint method 44, 260 public Component getTabComponentAt(int PASSWORD constraint, TextArea 135 index) method 75 PHONENUMBER constraint, TextArea 135 public Container(), constructor 50 PLAF 20 public Container(Layout layout), pluggable look and feel. See PLAF constructor 50 pointerPressed method 92 public Date getDate() method 69 prependPainter method 292 public Dialog() constructor 65 preprocess(String text) method 139 public Dialog(String title) constructor 65 PrinterChain, static method 297 public Dimension getPreferredSize() 42 print method 315 public interface AlarmHandler 188 private Writer getWriter() method 316 public interface Viewer 188 protected Dimension calcPreferredSize() public int getButtonCount() method 103 method 42 public int getHeight() 42 protected method 139 public int getPreferredH() 42 protected String getUIID() method 45 public int getPreferredW() 42 protected void public int getSelectedIndex() method 75 paintBackground(Graphics g) 43 public int getTabCount() method 75 protected void public int getWidth() 42 paintBackgrounds(Graphics g) 43 public int indexOfComponent(Component protected void paintBorder(Graphics g) 43 component) method 75 protected void paintScrollbars(Graphics g) public int removeTabAt(int index) method 43 75 protected void public long getSelectedDay() method 69 paintScrollbarX(Graphics g) 43 public Object getSource() method 89 protected void public PainterChain(Painter[] chain) paintScrollbarY(Graphics g) 43 constructor 292 protected Writer createWriter() method 316 public RadioButton getRadioButton(int public abstract boolean animate() method index) method 103 278 public static createEmpty() method 268 public abstract Transition copy() method public static createFade(int duration) 278 method 268 public abstract void paint(Graphics g) public static createSlide(int type, boolean method 278 forward, int duration) method 268 public boolean isAutoDispose() method 67 public static createSlide(int type, boolean public Calendar(), constructor 69 forward, int duration, boolean public Calendar(long time), constructor 69 drawDialogMenu) method 269 public class TimeViewer 189 [ 337 ]
  2. public static reflectionImage(Image source) public void removeDataChangeListener(Dat method 304 aChangedListener l) method 70 public static reflectionImage(Image source, public void setAutoDispose(boolean float mirrorRatio, int alphaRatio) autoDispose) method 67 method 304 public void setDate(Date d) method 69 public static String getLogContent() method public void setEndsWith3Points(boolean 319 endswith3points) method 85 public static void deleteLog() method 319 public void setHeight(int height) 42 public static void p(String text), static public void setPreferredSize(Dimension d) method 315 42 public static void p(String text, int level), public void setSelectedIndex(int index) static method 315 method 76 public static void showLog() method 319 public void setSize(Dimension d) 42 public String getText() method 87 public void setStyle(Style style) method 46 public Style getStyle() method 46 public void setTabPlacement(int tabPlace- public TabbedPane() constructor 75 ment) method 76 public TabbedPane(int tabPlacement) public void setTabTitle( String title) method constructor 75 76 public TimeTeller(Viewer viewer) public void setTextPosition(int textPosition) constructor 198 method 86 public void addActionListener(ActionListen public void setTimeout(long time) method er l) method 70 67 public void addDataChangeListener(DataC public void setVerticalAlignment(int hangedListener l) method 70 valign) method 86 public void addTab(String title, Component public void setWidth(int width) 42 component) method 75 public void start Ticker(long delay, boolean public void addTab(String title, Image icon, rightToLeft) method 88 Component component) method 75 public void stopTicker() method 88 public void dispose() method 67 public void insertTab(String title, Image Q icon, Component component, int index) method 75 queue 22 public void keyPressed(int keycode) 43 quintessential qualities, Layout class public void keyReleased(int keycode) 43 152, 153 public void keyRepeated(int keycode) 43 public void paint(Graphics g) 43 R public void paint(Graphics g, Rectangle RadioButton. See RadioButton class rect) method 289 RadioButton() constructor 104 public void paintComponent(Graphics g) RadioButton(Image icon) constructor 104 43 RadioButton(String text) constructor 104 public void paintComponent(Graphics g, RadioButton(String text, Image icon) boolean background) 43 constructor 104 public void pointerDragged(int x, int y) 43 RadioButton class public void pointerPressed(int x, int y) 43 about 103 public void pointerReleased(int x, int y) 43 actionPerformed method 109 public void removeActionListener(ActionLi Back command 107 stener l) method 70 boolean isSelected() method 105 [ 338 ]
  3. clearSelection method 109 resetIndex method 265 Confirm command 106 resetTimer method 213 constructors 104 resource elements getSelectedIndex method 108 animation resources 17 methods 105 bitmap fonts 17 None radio button 105 image resources 17 OK command 107 localization bundles 17 RadioButton() constructor 104 themes 17 RadioButton(Image icon) constructor 104 resource file creating, LWUIT Designer used RadioButton(String text) constructor 104 animation, adding 223 RadioButton(String text, Image icon) font, adding 224, 225 constructor 104 image, adding 222, 223 RadioButton creating, constructors used localization resource, adding 225, 226 104 theme, adding 226 reservation example 105, 106 resource file saving, LWUIT Designer used setSelected method 109 226 showDialog method 108 resources class void setSelected(boolean selected) method get*ResourceNames 226 105 getImageResourceNames 226 real time mode, TimeTeller class is*(String name) 226 actionPerformed method 204 isImage(String name) method 226 addAlarmHandler method 204 methods 226 alarm function, using 204 static Resources open (InputStream Alarm On command used 204 resource) method 226 blinkOffTime 202, 203 static Resources open (String resource) blinkOnTime 202, 203 method 226 callAlarmHandler method 208, 209 resumeAnimation method 264-266 callSerially 209 RMS 306 callSeriallyAndWait 208 garbage collector, calling 210, 211 S menu 210 minOffset 202 SampleResource demo newMin 202, 203 about 227-229 run method 201, 208 automatic approach 233 setAlarmMode method 204 bgImage, setting as background 229 setAlarmOn method 206, 207 getAppProperty method 232 setAlarmValue 207 getL10N method 234 showDialog method 205, 206 getProperty(String key), static method 234 timerEnabled variable 202 hashtable, loading 231 TimeTellerMIDlet 204 internationalization (i18n) 235, 236 Record Management System. See RMS labels creating, animated image used 229 reflectionImage methods 305 labels creating, bitmap font used 229 refreshTheme method 253 locale, setting up 232 registerAnimated method 260 Localization (L10N) 230 renderer 129, 130 localize method 233 replace(Component current, Component manual approach 231 next, Transition t) method 276 scaleImage attribute 295 [ 339 ]
  4. SENSITIVE constraint, TextArea 135 setter methods 216 setAlarmMode method 204 setTransitionInAnimator method 273 setAlarmOn method 206, 207 setTransitionOutAnimator method 273 setBgColor method 292 setUnSelectedStyle method 80 setBgPainter method 292 setUnsupportedChars(String setClip(int x, int y, int width, int height) unsupportedChars) method 139 method 47 show() method 64 setClip method 282 showCount method 194 setColumns method 147 showDialog method 101, 108, 205, 206 setCommitTimeout(int commitTimeout) showTime method 190, 194 method 150 slide transition 267 setDefaultChangeInputModeKey(int sourceValue, StepMotion class 284 keycode) method 147 spline, Motion class 268 setDefaultDialogTransitionIn(Transition Sprint Wireless Toolkit 3.3.2. See SWTK defaultDialogTransitionIn) method, startApp method 84, 150 274 static Font getDefaultFont() method 61 setDefaultDialogTransitionOut(Transition static Resources open (InputStream defaultDialogTransitionOut) method, resource) method 226 274 static Resources open (String resource) setDefaultFormTransitionIn(Transition method 226 defaultFormTransitionIn) method, static void setDefaultFont(Font f) method 274 61 setDefaultFormTransitionOut(Transition StepMotion class defaultFormTransitionOut) method, about 284 274 destinationValue 284 setDefaultMenuTransitionIn(Transition duration 285 defaultMenuTransitionIn) method, getStep method 285 274 isFinished method 285 setDefaultMenuTransitionOut(Transition sourceValue 284 defaultMenuTransitionOut) method steps 285 274 steps, StepMotion class 285 setEditable method 137 stopAnimation method 266 setElapsedTimeMode method 211 String getCommandName() method 54 setFixedSelection method 116, 122 style setLayout method 155 accessor methods 80 setLookAndFeel(LookAndFeel plaf) for future 79 method 45 isScaleImage method 295 setMode method 211 getSelectedStyle method 80 setPreferredSize() method 42 getStyle method 80 setRenderingPrototype(Object getUnSelectedStyle method 80 renderingPrototype) method 114 scaleImage attribute 295 setRenderingPrototype method 191 setBgColor method 79 setScrollableX method 155 setBgSelectionColor method 79 setSelected() method 102 setSelectedStyle method 80 setSelectedStyle method 80 setStyle method 80 setStyle method 80 setUnSelectedStyle method 80 setStyles method 196, 197 [ 340 ]
  5. style, attributes public void addTab(String title, Image icon, colors 17 Component component) method 75 fonts 17 public void addTabsListener(SelectionListe images 17 ner listener) method 76 margin 17 public void setSelectedIndex(int index) padding 17 method 76 transparency 18 public void setTabPlacement(int Style class 46 tabPlacement) method 76 style object 46 public void setTabTitle( String title) method support elements 76 about 16 Tabbedpane class. See also TabbedPane layout managers 17 Task class 124 LookAndFeel 18 done variable 125 painter interface 18 todo variable 125 resource element 16 tButton 92 style 17 TextArea 14 UIManager 18 TextArea() constructor 134 SWTK TextArea(int rows, int columns) constructor downloading, link 26 134 prerequisites 26 TextArea(int rows, int columns, int system class constraints) constructor 134 getProperty(String key), static method 234 TextArea(String text) constructor 134 TextArea(String text, int maxSize) T constructor 134 TextArea(String text, int rows, int columns) TabbedPane constructor 134 about 73 TextArea(String text, int rows, int columns, creating, constructors used 75 int constraints) constructor 135 in action 76-79 TextArea class 149 tabs 73, 74 ActionListener, adding 141 TabbedPane class 75 and TextField class, differences 143 constructors 75 Cancel command 137 methods 75 constraints 135 public Component getTabComponentAt(int constructors 134 index) method 75 DemoTextArea MIDlet 136 public int getSelectedIndex() method 75 Menu command 137 public int getTabCount() method 75 methods 136 public int indexOfComponent(Component preprocess(String text) method 139 component) method 75 protected method 139 public int removeTabAt(int index) method setEditable method 137 75 setUnsupportedChars(String public TabbedPane(), constructor 75 unsupportedChars) method 139 public TabbedPane(int tabPlacement), TextArea() constructor 134 constructor 75 TextArea(int rows, int columns) public void addTab(String title, Component constructor 134 component) method 75 [ 341 ]
  6. TextArea(int rows, int columns, setCommitTimeout(int commitTimeout) int constraints) constructor 134 method 150 TextArea(String text) constructor 134 setDefaultChangeInputModeKey(int TextArea(String text, int maxSize) keycode) method 147 constructor 134 startApp method 150 TextArea(String text, int rows, int columns) TextArea class 149 constructor 134 TextField() constructor 142 TextArea(String text, int rows, int columns, TextField(int columns) constructor 142 int constraints) constructor 135 TextField(String text) constructor 142 TextArea Demo 136-142 TextField(String text, int columns) TextArea class, constraints constructor 142 ANY constraint 135 TextField.PASSWORD 149 DECIMAL constraint 135 TextField Demo 143-150 EMAILADDR constraint 135 type parameter 148 INITIAL_CAPS_SENTENCE constraint 135 TextPainter class 294 INITIAL_CAPS_WORD constraint 135 theme file NON_PREDICTIVE constraint 135 add image dialog, closing 244 NUMERIC constraint 135 bgImage, selecting 244 PASSWORD constraint 135 buttons, selecting 248, 249 PHONENUMBER constraint 135 code, compiling 247 SENSITIVE constraint 135 DemoTheme application used 240, 241 UNEDITABLE constraint 135 editing 239 URL constraint 135 image, adding 244, 245 TextField() constructor 142 populating 240-243 TextField(int columns) constructor 142 preview panel 247 TextField(String text) constructor 142 ThemeDemo 241, 242 TextField(String text, int columns) viewing 238, 239 constructor 142 working with 237 TextField, TextArea widget 14 themes 20 TextField class theming actionPerformed method 146 features 253 addDataChangeListener method 148 refreshTheme method 253 and TextArea class, differences 143 setThemeProps method 253 commitTimeout parameter 150 versus manual styling 252 creating, constructors used 142 timeLabel, TimeViewer class DataChangedListener 148 about 190 dataChanged method 148 calcPreferredSize method 191 DemoTextField MIDlet 143 height, calculating 192 Exit command 147 setRenderingPrototype method 191 getColumns method 147 text, displaying 192 index parameter 148 timerEnabled variable 202 Insert command 147 TimeTeller class MenuCellRenderer, installing 143 calendar class 198 methods 143 constructors 197 Overwrite command 147 elapsed time mode 211 Resize command 147 empty methods 200 setColumns method 147 example 188 [ 342 ]
  7. getRawOffset method, java.util.TimeZone fade transition 267 class 198, 199 for components 276 public class TimeViewer 189 in transition 274, 275 public interface AlarmHandler 188 LookAndFeel class, methods 274 public interface Viewer 188 out transition 274, 275 public TimeTeller(Viewer viewer) replace(Component current, Component constructor 198 next, Transition t), method used 276 real time, default mode 201 setting, ways 274 real time mode 201 setTransitionInAnimator method 273, 274 tips 216 setTransitionOutAnimator method 273, 274 updateView method 200 slide transition 267 TimeTeller component Transition3D, subclass 19 used, for theming custom components types 267 249-252 using 272 TimeTellerMIDlet Transition3D 19 alarmHandled method, implementing Transition3D class 215, 216 createCube(int duration, boolean TimeViewer class rotateRight) method 270 alarm mode methods 195 createRotation(int duration, boolean constructor 191 rotateRight) method 270 flasher variable 196 createStaticRotation(int duration, boolean getter method 216 rotateRight) method 271 setStyles method 196, 197 createSwingIn(int duration) method 271 setter method 216 createSwingIn(int duration, showCount method 194 boolean topDown) method 271 showTime method 194 createVerticalCube(int duration, boolean timeLabel 190 rotateDown) method 270 timeLabel, text 191 cube 269 titleLabel 190 FlyIn 269 variables 190 rotation 269 titleLabel, TimeViewer class StaticRotation 270 about 190 SwingIn 270 text 196 transition class ToDoList abstract methods 278 getListCellRendererComponent method CommonTransitions class 267 126 public abstract boolean animate() method ToDoListRenderer class 126 278 toDoList 125 public abstract Transition copy() method ToDoListRenderer class 126 278 TRAILING alignment 179 public abstract void paint(Graphics g) transition method 278 about 267 Transition3D class 269 actionPerformed method 276 transitions, 3D suite addCommand method 276 cube 269 classes 267 FlyIn 269 CommonTransitions, subclass 19 rotation 269 DemoTransition application 272, 273 StaticRotation 270 [ 343 ]
  8. SwingIn 270 void setPressedIcon(Image pressedIcon) transitions, authoring method 90 BlindsTransition class 278 void setRolloverIcon(Image rolloverIcon) BlindsTransitionDemo MIDlet 286 method 90 MIDlet 286 void setSelected(boolean selected) method StepMotion class 284 99, 105 translate method 263 void setSelected(int index) method 103 void setSelected(radioButton rb) method U 103 void show() method 65 UIManager.getInstance().setComponent- void showModeless() method 65 Style method 115 UIManager class W about 18 localize method 232 widgets setThemeProps method 253 about 8 UNEDITABLE constraint, TextArea 135 button 12 updateText method 262 calendar 11 updateView method 200 container 9 Thread 200 dialog 11, 12 URL constraint, TextArea 135 form 9 label 12 V list 14 TabbedPane 10 viewer interface 189, 190 TextArea 14 void addLayoutComponent(Object value, Component comp, Container c) X method 152 void clearSelection() method 103 XLog instance 323 void keyPressed(int keycode) method 90 void keyReleased(int keycode) method 90 Y void layoutContainer(Container parent) method 152 Y_AXIS 161 void pointerPressed(int x, int y) method 90 y coordinate 42 void pointerReleased(int x, int y) method 90 void print(String text, int level), protected Z method 315 zero, setting 126 void removeLayoutComponent(Component comp) method 153 [ 344 ]
  9. Thank you for buying LWUIT 1.1 for Java ME Developers Packt Open Source Project Royalties When we sell a book written on an Open Source project, we pay a royalty directly to that project. Therefore by purchasing LWUIT 1.1 for Java ME Developers, Packt will have given some of the money received to the LWUIT project. In the long term, we see ourselves and you—customers and readers of our books—as part of the Open Source ecosystem, providing sustainable revenue for the projects we publish on. Our aim at Packt is to establish publishing royalties as an essential part of the service and support a business model that sustains Open Source. If you're working with an Open Source project that you would like us to publish on, and subsequently pay royalties to, please get in touch with us. Writing for Packt We welcome all inquiries from people who are interested in authoring. Book proposals should be sent to author@packtpub.com. If your book idea is still at an early stage and you would like to discuss it first before writing a formal book proposal, contact us; one of our commissioning editors will get in touch with you. We're not just looking for published authors; if you have strong technical skills but no writing experience, our experienced editors can help you develop a writing career, or simply get some additional reward for your expertise. About Packt Publishing Packt, pronounced 'packed', published its first book "Mastering phpMyAdmin for Effective MySQL Management" in April 2004 and subsequently continued to specialize in publishing highly focused books on specific technologies and solutions. Our books and publications share the experiences of your fellow IT professionals in adapting and customizing today's systems, applications, and frameworks. Our solution-based books give you the knowledge and power to customize the software and technologies you're using to get the job done. Packt books are more specific and less general than the IT books you have seen in the past. Our unique business model allows us to bring you more focused information, giving you more of what you need to know, and less of what you don't. Packt is a modern, yet unique publishing company, which focuses on producing quality, cutting-edge books for communities of developers, administrators, and newbies alike. For more information, please visit our website: www.PacktPub.com.
  10. DWR Java AJAX Applications ISBN: 978-1-847192-93-6 Paperback: 228 pages A step-by-step example-packed guide to learning professional application development with Direct Web Remoting 1. Learn Direct Web Remoting features from scratch and how to apply DWR practically 2. Topics such as configuration, testing, and debugging are thoroughly explained through examples 3. Demonstrates advanced elements of creating user interfaces and back-end integration 4. Contains easy-to-understand explanations, realistic examples, and complete demo applications Mobile Web Development ISBN: 978-1-847193-43-8 Paperback: 236 pages Building mobile websites, SMS and MMS messaging, mobile payments, and automated voice call systems with XHTML MP, WCSS, and mobile AJAX 1. Build mobile-friendly sites and applications 2. Adapt presentation to different devices 3. Build mobile front ends to server-side applications 4. Use SMS and MMS and take mobile payments 5. Make applications respond to voice and touchtone commands Please check www.PacktPub.com for information on our titles
  11. Spring Web Flow 2 Web Development ISBN: 978-1-847195-42-5 Paperback: 272 pages Master Spring’s well-designed web frameworks to develop powerful web applications 1. Design, develop, and test your web applications using the Spring Web Flow 2 framework 2. Enhance your web applications with progressive AJAX, Spring security integration, and Spring Faces 3. Stay up-to-date with the latest version of Spring Web Flow 4. Walk through the creation of a bug tracker web application with clear explanations Google Web Toolkit GWT ISBN: 978-1-847191-00-7 Paperback: 248 pages A practical guide to Google Web Toolkit for creating AJAX applications with Java, fast 1. Create rich Ajax applications in the style of Gmail, Google Maps, and Google Calendar 2. Interface with Web APIs create GWT applications that consume web services 3. Completely practical with hands-on examples and complete tutorials right from the first chapter Please check www.PacktPub.com for information on our titles
  12. Grails 1.1 Web Application Development ISBN: 978-1-847196-68-2 Paperback: 328 pages Reclaiming Productivity for faster Java Web Development 1. Ideal for Java developers new to Groovy and Grails—this book will teach you all you need to create web applications with Grails 2. Create, develop, test, and deploy a web application in Grails 3. Take a step further into Web 2.0 using AJAX and the RichUI plug-in in Grails 4. Packed with examples and clear instructions to lead you through the development and deployment of a Grails web application JasperReports 3.5 for Java Developers ISBN: 978-1-847198-08-2 Paperback: 350 pages Create, Design, Format, and Export Reports with the world’s most popular Java reporting library 1. Create better, smarter, and more professional reports using comprehensive and proven methods 2. Group scattered data into meaningful reports, and make the reports appealing by adding charts and graphics 3. Discover techniques to integrate with Hibernate, Spring, JSF, and Struts, and to export to different file formats Please check www.PacktPub.com for information on our titles
  13. ZK Developer’s Guide ISBN: 978-1-847192-00-4 Paperback: 184 pages Developing responsive user interfaces for web applications using Ajax, XUL, and the open source ZK rich web client development framework 1. Introducing the ZK framework 2. Installing and configuring ZK 3. Setting up, managing, and publishing a project 4. Improving navigation and optimizing result preparation 5. Internationalization with the ZK framework 6. Creating custom components Java EE 5 Development with NetBeans 6 ISBN: 978-1-847195-46-3 Paperback: 400 pages Develop professional enterprise Java EE applications quickly and easily with this popular IDE 1. Use features of the popular NetBeans IDE to improve Java EE development 2. Careful instructions and screenshots lead you through the options available 3. Covers the major Java EE APIs such as JSF, EJB 3 and JPA, and how to work with them in NetBeans 4. Covers the NetBeans Visual Web designer in detail Please check www.PacktPub.com for information on our titles
Đồng bộ tài khoản