Java Doc for DEPopupLayer.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) 


com.sun.midp.chameleon.layers.ScrollablePopupLayer
   javax.microedition.lcdui.DEPopupLayer

DEPopupLayer
class DEPopupLayer extends ScrollablePopupLayer (Code)
This is a popup layer that handles a sub-popup within the date editor, which is also a popup layer.


Field Summary
final static  intPRESS_OUT_OF_BOUNDS
    
 DateEditoreditor
     The DateEditor that triggered this popup layer.
 booleanopen
     Indicates if this popup layer is shown (true) or hidden (false).

Constructor Summary
 DEPopupLayer(DateEditor editor, String[] elements, int selectedIndex, boolean circularTraversal)
     Constructs a date editor sub-popup layer, which behaves like a popup-choicegroup, given a string array of elements that constitute the available list of choices to select from.

Method Summary
 intgetSelectedIndex()
     Gets currently selected index.
public  voidhide()
    
protected  voidinitialize()
     Initializes the popup layer.
public  booleankeyInput(int type, int code)
     Handles key event in the open popup.
public  voidpaintBackground(Graphics g)
     Paints popup background (including borders) and scrollbar if it is present.
public  voidpaintBody(Graphics g)
     Paints the body of the popup layer.
public  booleanpointerInput(int type, int x, int y)
     Handles pointer event in the open popup.
public  voidscrollContent(int scrollType, int thumbPosition)
     Scroll content inside of the DEPopup.
Parameters:
  scrollType - scrollType.
public  voidsetBounds(int x, int y, int w, int h)
     Sets the bounds of the popup layer.
protected  voidsetContent(String[] newElements, int selectedIndex)
     Populates this sub-popup layer with new elements.
 voidsetElementSize(int w, int h)
     Set the choice element size (width and height).
 voidsetSelectedIndex(int selId)
     Sets currently selected index.
public  voidshow(ScreenLFImpl sLF)
    
 booleantraverseInPopup(int code)
     Handle traversal in the open popup.
public  voidupdateScrollIndicator()
     Updates the scroll indicator.

Field Detail
PRESS_OUT_OF_BOUNDS
final static int PRESS_OUT_OF_BOUNDS(Code)



editor
DateEditor editor(Code)
The DateEditor that triggered this popup layer.



open
boolean open(Code)
Indicates if this popup layer is shown (true) or hidden (false).




Constructor Detail
DEPopupLayer
DEPopupLayer(DateEditor editor, String[] elements, int selectedIndex, boolean circularTraversal)(Code)
Constructs a date editor sub-popup layer, which behaves like a popup-choicegroup, given a string array of elements that constitute the available list of choices to select from.
Parameters:
  editor - The DateEditor that triggered this popup layer.
Parameters:
  elements - String array holding the list of choices.
Parameters:
  selectedIndex - the index to place the initial highlight on.
Parameters:
  circularTraversal - true if traversal past the last item shouldjump to the beginning




Method Detail
getSelectedIndex
int getSelectedIndex()(Code)
Gets currently selected index. currently selected index



hide
public void hide()(Code)
hide current popup



initialize
protected void initialize()(Code)
Initializes the popup layer.



keyInput
public boolean keyInput(int type, int code)(Code)
Handles key event in the open popup.
Parameters:
  type - - The type of this key event (pressed, released)
Parameters:
  code - - The code of this key event true always, since popupLayers swallow all key events



paintBackground
public void paintBackground(Graphics g)(Code)
Paints popup background (including borders) and scrollbar if it is present.
Parameters:
  g - - The graphics object to paint background on



paintBody
public void paintBody(Graphics g)(Code)
Paints the body of the popup layer.
Parameters:
  g - The graphics context to paint to



pointerInput
public boolean pointerInput(int type, int x, int y)(Code)
Handles pointer event in the open popup.
Parameters:
  type - - The type of this pointer event (pressed, released, dragged)
Parameters:
  x - x coordinate
Parameters:
  x - y coordinate true always, since popupLayers swallow all pointer events



scrollContent
public void scrollContent(int scrollType, int thumbPosition)(Code)
Scroll content inside of the DEPopup.
Parameters:
  scrollType - scrollType. Scroll type can be one of the following
See Also:   ScrollIndLayer.SCROLL_NONE
See Also:   ScrollIndLayer.SCROLL_PAGEUP
See Also:   ScrollIndLayer.SCROLL_PAGEDOWN
See Also:   ScrollIndLayer.SCROLL_LINEUP
See Also:   ScrollIndLayer.SCROLL_LINEDOWN
See Also:    or
See Also:   ScrollIndLayer.SCROLL_THUMBTRACK
Parameters:
  thumbPosition -



setBounds
public void setBounds(int x, int y, int w, int h)(Code)
Sets the bounds of the popup layer.
Parameters:
  x - the x-coordinate of the popup layer location
Parameters:
  y - the y-coordinate of the popup layer location
Parameters:
  w - the width of this popup layer in open state
Parameters:
  h - the height of this popup layer in open state



setContent
protected void setContent(String[] newElements, int selectedIndex)(Code)
Populates this sub-popup layer with new elements. The number of elements before and after should be the same if the popup already existed.
Parameters:
  newElements - String array holding the list of choices.
Parameters:
  selectedIndex - the index to place the initial highlight on.



setElementSize
void setElementSize(int w, int h)(Code)
Set the choice element size (width and height).
Parameters:
  w - width of the element
Parameters:
  h - height of the element



setSelectedIndex
void setSelectedIndex(int selId)(Code)
Sets currently selected index.
Parameters:
  selId - currently selected index



show
public void show(ScreenLFImpl sLF)(Code)
show current popup
Parameters:
  sLF - popup owner screen



traverseInPopup
boolean traverseInPopup(int code)(Code)
Handle traversal in the open popup.
Parameters:
  code - the code of the key event true always, since popupLayers swallow all key events



updateScrollIndicator
public void updateScrollIndicator()(Code)
Updates the scroll indicator.



Fields inherited from com.sun.midp.chameleon.layers.ScrollablePopupLayer
protected ScrollIndLayer scrollInd(Code)(Java Doc)

Methods inherited from com.sun.midp.chameleon.layers.ScrollablePopupLayer
public void addDirtyRegion()(Code)(Java Doc)
public void scrollContent(int scrollType, int thumbPosition)(Code)(Java Doc)
public void setScrollInd(ScrollIndLayer newScrollInd)(Code)(Java Doc)
public void update(CLayer[] layers)(Code)(Java Doc)
public void updateScrollIndicator()(Code)(Java Doc)

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