Java Doc for AbstractInfoScreen.java in  » IDE-Netbeans » vmd.analyzer » org » netbeans » microedition » lcdui » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » IDE Netbeans » vmd.analyzer » org.netbeans.microedition.lcdui 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.netbeans.microedition.lcdui.AbstractInfoScreen

All known Subclasses:   org.netbeans.microedition.lcdui.WaitScreen,  org.netbeans.microedition.lcdui.SplashScreen,
AbstractInfoScreen
abstract public class AbstractInfoScreen extends Canvas (Code)
An abstract class serving as a parent for SplashScreen and WaitScreen. This class provides the basic visualization of the screen. When this screen is displayed, it can display either supplied text or image. The current implementation shows both, text and image, centered in the middle of the display. > Please note, in previous version this component automatically switched to displayables specified by setNextDisplayable() method, but this approach has been deprecated in favor of using static command and calling CommandListener's commandAction() method when an action happens. This gives the developer much higher flexibility for processing the action - it is no longer limited to switching to another displayable, but it can do whatever developer wants.
author:
   breh



Constructor Summary
public  AbstractInfoScreen(Display display)
     Creates a new instance of AbstractInfoScreen
Parameters:
  display - display parameter.
public  AbstractInfoScreen(Display display, ColorSchema colorSchema)
     Creates a new instance of AbstractInfoScreen
Parameters:
  display - display parameter.

Method Summary
public  ColorSchemagetColorSchema()
    
final protected  CommandListenergetCommandListener()
    
protected  DisplaygetDisplay()
    
public  ImagegetImage()
     Gets the image to be painted on the screen.
protected  AlertgetNextAlert()
    
protected  DisplayablegetNextDisplayable()
    
public  StringgetText()
     Gets the text to be painted on the screen.
public  FontgetTextFont()
     Gets the current font used to paint the text.
protected  voidpaint(Graphics g)
    
public  voidsetColorSchema(ColorSchema colorSchema)
    
public  voidsetCommandListener(CommandListener commandListener)
    
public  voidsetImage(Image image)
     Sets image to be painted on the screen.
public  voidsetNextDisplayable(Displayable nextDisplayable)
     Sets the displayable to be used to switch when the screen is being dismissed.
public  voidsetNextDisplayable(Alert nextAlert, Displayable nextDisplayable)
     Requests that the specified Alert is going to be shown in the case of screen dismiss, and nextDisplayable be made current after the Alert is dismissed.

The nextDisplayable parameter cannot be Alert and in the case nextAlert is not null, it also cannot be null.
Parameters:
  nextAlert - alert to be shown, or null if the component should return back to the original screen
Parameters:
  nextDisplayable - a displayable to be shown after the alert is being dismissed.

public  voidsetText(String text)
     Sets the text to be painted on the screen.
public  voidsetTextFont(Font font)
     Sets the font to be used to paint the specified text.
protected  voidshowNotify()
     sets value of previous displayable.
protected  voidsizeChanged(int w, int h)
     repaints the screen whem a size has changed.
protected static  voidswitchToDisplayable(Display display, Alert alert, Displayable displayable)
    
protected  voidswitchToNextDisplayable()
    


Constructor Detail
AbstractInfoScreen
public AbstractInfoScreen(Display display) throws IllegalArgumentException(Code)
Creates a new instance of AbstractInfoScreen
Parameters:
  display - display parameter. Cannot be null
throws:
  java.lang.IllegalArgumentException - if the display parameter is null



AbstractInfoScreen
public AbstractInfoScreen(Display display, ColorSchema colorSchema)(Code)
Creates a new instance of AbstractInfoScreen
Parameters:
  display - display parameter. Cannot be null
Parameters:
  colorSchema - color schema to be used for this component. If null, SystemColorSchema is used.
throws:
  java.lang.IllegalArgumentException - if the display parameter is null




Method Detail
getColorSchema
public ColorSchema getColorSchema()(Code)
Gets ColorSchema currently in use



getCommandListener
final protected CommandListener getCommandListener()(Code)
Gets command listener assigned to this displayable command listener assigned to this component or null if there is no command listener assigned



getDisplay
protected Display getDisplay()(Code)
Gets the used display object display object



getImage
public Image getImage()(Code)
Gets the image to be painted on the screen. image



getNextAlert
protected Alert getNextAlert()(Code)
gets the next alert next alert



getNextDisplayable
protected Displayable getNextDisplayable()(Code)
Gets the next displayable next displayable



getText
public String getText()(Code)
Gets the text to be painted on the screen. text



getTextFont
public Font getTextFont()(Code)
Gets the current font used to paint the text. text font



paint
protected void paint(Graphics g)(Code)
implementation of abstract method
Parameters:
  g -



setColorSchema
public void setColorSchema(ColorSchema colorSchema)(Code)
Sets ColorSchema



setCommandListener
public void setCommandListener(CommandListener commandListener)(Code)
Sets command listener to this component
Parameters:
  commandListener - - command listener to be used



setImage
public void setImage(Image image)(Code)
Sets image to be painted on the screen. If set to null, no image will be painted
Parameters:
  image - image to be painted. Can be null.



setNextDisplayable
public void setNextDisplayable(Displayable nextDisplayable)(Code)
Sets the displayable to be used to switch when the screen is being dismissed.
Parameters:
  nextDisplayable - displayable, or null if the component should switch backto the screen from which was displayed prior showing this component.



setNextDisplayable
public void setNextDisplayable(Alert nextAlert, Displayable nextDisplayable) throws IllegalArgumentException(Code)
Requests that the specified Alert is going to be shown in the case of screen dismiss, and nextDisplayable be made current after the Alert is dismissed.

The nextDisplayable parameter cannot be Alert and in the case nextAlert is not null, it also cannot be null.
Parameters:
  nextAlert - alert to be shown, or null if the component should return back to the original screen
Parameters:
  nextDisplayable - a displayable to be shown after the alert is being dismissed. This displayablecannot be null if the nextAlert is not null and it also cannot beAlert.
throws:
  java.lang.IllegalArgumentException - If the nextAlert is not null and nextDisplayable is null at the same time, orif the nextDisplayable is instance of Alert




setText
public void setText(String text)(Code)
Sets the text to be painted on the screen.
Parameters:
  text - text to be painter, or null if no text should be shown



setTextFont
public void setTextFont(Font font)(Code)
Sets the font to be used to paint the specified text. If set to null, the default font (Font.STATIC_TEXT_FONT) will be used.
Parameters:
  font - font to be used to paint the text. May be null.



showNotify
protected void showNotify()(Code)
sets value of previous displayable. Implementation should always call this super implementation when overriding this method



sizeChanged
protected void sizeChanged(int w, int h)(Code)
repaints the screen whem a size has changed.



switchToDisplayable
protected static void switchToDisplayable(Display display, Alert alert, Displayable displayable)(Code)
Switch to the given displayable and alert
Parameters:
  display -
Parameters:
  alert -
Parameters:
  displayable -



switchToNextDisplayable
protected void switchToNextDisplayable()(Code)
switch to the next displayable (or alert)



www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.