Java Doc for DisplayableLF.java in  » 6.0-JDK-Modules » j2me » javax » 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 » 6.0 JDK Modules » j2me » javax.microedition.lcdui 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


javax.microedition.lcdui.DisplayableLF

All known Subclasses:   javax.microedition.lcdui.DisplayableLFImpl,
DisplayableLF
interface DisplayableLF (Code)
Look and Feel interface used by Displayable.

See Naming Conventions for information about method naming conventions.





Method Summary
 intgetVerticalScrollPosition()
    
 intgetVerticalScrollProportion()
    
 voidlAddCommand(Command cmd, int i)
     Notifies look&feel object of a command addition to the Displayable.
 voidlCommitPendingInteraction()
     Called to commit any pending user interaction for the current item before an abstract command is fired.
 DisplaylGetCurrentDisplay()
     Return in which Display instance the LF is visible.
 DisplayablelGetDisplayable()
     Return the associated Displayable object.
 intlGetHeight()
     Returns the height of the area available to the application.
 intlGetWidth()
     Returns the width of the area available to the application.
 booleanlIsShown()
     Implement the public API isShown().
 voidlRemoveCommand(Command cmd, int i)
     Notifies look&feel object of a command removal from the Displayable.
 voidlSetDisplay(Display d)
     Set the display instance the Displayable is associated with.
 voidlSetTicker(Ticker oldTicker, Ticker newTicker)
     Notifies Displayable's look & feel object of a ticker change.
 voidlSetTitle(String oldTitle, String newTitle)
     Notifies Displayable's look & feel object of a title change.
 voiduCallFreeze()
     While UI resources of this LF are created and visible already, stop any further updates to physical screen because some "system modal dialog" takes over physical screen buffer and user input now. Repaint and invalidate requests from this DisplayableLF will be really scheduled into event queue.
 voiduCallHide()
     Remove this displayable from physical screen. The displayable should unload any resource that was allocated.
 voiduCallInvalidate()
     Relayout and repaint now.
 voiduCallKeyEvent(int type, int keyCode)
     Handle key events.
 voiduCallPaint(Graphics g, Object target)
     Repaint now.
 voiduCallPointerEvent(int type, int x, int y)
     Handle pointer events.
 voiduCallScrollContent(int scrollType, int thumbPosition)
    
 voiduCallShow()
     Prepare to show this LF on physical screen.
 voiduCallSizeChanged(int w, int h)
     This method calls Displayable.sizeChanged method.
 booleanuIsScrollNative()
     This method is used int repaint, int order to determine the translation of the draw coordinates. true if the scroll responsibility is of the native platform.false - if the scroll is done in the Java level.
 voiduSetFullScreenMode(boolean fullScreenMode)
     Notify the full screen mode of this LF. If true, this DisplayableLF will take up as much screen real estate as possible.
 booleanuSetRotatedStatus(boolean newStatus)
    
 voidupdateCommandSet()
     Notifies look&feel object of commandset being updated.



Method Detail
getVerticalScrollPosition
int getVerticalScrollPosition()(Code)
Get the current vertical scroll position int The vertical scroll position on a scale of 0-100



getVerticalScrollProportion
int getVerticalScrollProportion()(Code)
Get the current vertical scroll proportion ing The vertical scroll proportion on a scale of 0-100



lAddCommand
void lAddCommand(Command cmd, int i)(Code)
Notifies look&feel object of a command addition to the Displayable.
Parameters:
  cmd - the command that was added
Parameters:
  i - the index of the added command in Displayable.commands[] array



lCommitPendingInteraction
void lCommitPendingInteraction()(Code)
Called to commit any pending user interaction for the current item before an abstract command is fired. Caller should hold LCDUILock around this call.



lGetCurrentDisplay
Display lGetCurrentDisplay()(Code)
Return in which Display instance the LF is visible. the current display.



lGetDisplayable
Displayable lGetDisplayable()(Code)
Return the associated Displayable object. the Displayable object.



lGetHeight
int lGetHeight()(Code)
Returns the height of the area available to the application. height of the area available to the application



lGetWidth
int lGetWidth()(Code)
Returns the width of the area available to the application. width of the area available to the application



lIsShown
boolean lIsShown()(Code)
Implement the public API isShown(). true if the DisplayableLF is interactive with user.



lRemoveCommand
void lRemoveCommand(Command cmd, int i)(Code)
Notifies look&feel object of a command removal from the Displayable.
Parameters:
  cmd - the command that was removed
Parameters:
  i - the index of the removed command in Displayable.commands[] array



lSetDisplay
void lSetDisplay(Display d)(Code)
Set the display instance the Displayable is associated with. Caller should hold LCDUILock around this call.
Parameters:
  d - Display instance in which this DisplayableLF is visible.null if this DisplayableLF is no longer visible.



lSetTicker
void lSetTicker(Ticker oldTicker, Ticker newTicker)(Code)
Notifies Displayable's look & feel object of a ticker change.
Parameters:
  oldTicker - the old ticker, or null for no ticker
Parameters:
  newTicker - the new ticker, or null for no ticker



lSetTitle
void lSetTitle(String oldTitle, String newTitle)(Code)
Notifies Displayable's look & feel object of a title change.
Parameters:
  oldTitle - the old title, or null for no title
Parameters:
  newTitle - the new title, or null for no title



uCallFreeze
void uCallFreeze()(Code)
While UI resources of this LF are created and visible already, stop any further updates to physical screen because some "system modal dialog" takes over physical screen buffer and user input now. Repaint and invalidate requests from this DisplayableLF will be really scheduled into event queue. Instead, only dirty flag is set. After a LF enters "freeze" mode, it can be resumed of visibility or directly replaced by a new Displayable.



uCallHide
void uCallHide()(Code)
Remove this displayable from physical screen. The displayable should unload any resource that was allocated. It's not required to clean the physical screen before this function returns. This function could be called while a LF is in "freeze" mode.



uCallInvalidate
void uCallInvalidate()(Code)
Relayout and repaint now. Called by the event handler to perform an invalidation of this Displayable.



uCallKeyEvent
void uCallKeyEvent(int type, int keyCode)(Code)
Handle key events.
Parameters:
  type - defined in EventConstants.
Parameters:
  keyCode - the key involved in this event.



uCallPaint
void uCallPaint(Graphics g, Object target)(Code)
Repaint now. Display calls this method on it's current Displayable. Displayable uses this opportunity to do necessary stuff on the Graphics context, this includes, paint Ticker, paint Title, translate as necessary.

The target Object of this repaint may be some Object initially set by this Displayable when the repaint was requested - allowing this Displayable to know exactly which Object it needs to call to service this repaint, rather than potentially querying all of its Objects to determine the one(s) which need painting. SYNC NOTE: The caller of this method handles synchronization.
Parameters:
  g - the graphics context to paint into.
Parameters:
  target - the target Object of this repaint




uCallPointerEvent
void uCallPointerEvent(int type, int x, int y)(Code)
Handle pointer events.
Parameters:
  type - kind of event, defined in EventConstants.
Parameters:
  x - x-coordinate of pointer event
Parameters:
  y - y-coordinate of pointer event



uCallScrollContent
void uCallScrollContent(int scrollType, int thumbPosition)(Code)
This method notify displayable to scroll its content
Parameters:
  scrollType - scrollType
Parameters:
  thumbPosition -



uCallShow
void uCallShow()(Code)
Prepare to show this LF on physical screen. This is the internal version of showNotify() function as defined in MIDP spec. It is called immediately prior to this LF being made visible on the display. The LF should load any resource that is needed, layout. App's paint() should NOT be called in this function. Instead, it should be in the dsPaint() that will be called on this LF shortly after.



uCallSizeChanged
void uCallSizeChanged(int w, int h)(Code)
This method calls Displayable.sizeChanged method.
Parameters:
  w - the new width
Parameters:
  h - the new height



uIsScrollNative
boolean uIsScrollNative()(Code)
This method is used int repaint, int order to determine the translation of the draw coordinates. true if the scroll responsibility is of the native platform.false - if the scroll is done in the Java level.



uSetFullScreenMode
void uSetFullScreenMode(boolean fullScreenMode)(Code)
Notify the full screen mode of this LF. If true, this DisplayableLF will take up as much screen real estate as possible. Any subclass of Displayable should be prepared to do their job to accommodate the change. Note that it can call into the app code.
Parameters:
  fullScreenMode - true if full screen mode should be turned on



uSetRotatedStatus
boolean uSetRotatedStatus(boolean newStatus)(Code)



updateCommandSet
void updateCommandSet()(Code)
Notifies look&feel object of commandset being updated.



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