Java Doc for SVGList.java in  » IDE-Netbeans » mobility » com » sun » svg » component » 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 » mobility » com.sun.svg.component 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.sun.svg.component.SVGList

All known Subclasses:   com.sun.perseus.demo.ContactListSource,
SVGList
public class SVGList (Code)
The SVGList class displays the items of an arbitrary long list of data items in a limited number of visual elements. The list triggers a scrolling effect to move up or down in the list and has a notion of selected item (i.e., the one which reprents the current user selection). The SVGList class facilitates creating a list where the appearance of the list and the list animations are defined in SVG markup and the data displayed by the list is controlled by the ListModel implementation associated to the SVGList. The conventions for the SVG this class can hook into are: - The various elements which compose the list share the same identifier prefix which is given to the SVGList at construction time (e.g., 'myList'). This prefix is call 'listIdPrefix' in the following. - The animations which produce the list's scroll up effect are started by the animation with id . The scroll down effect animations are started with the animation with id: . - The SVG elements used to display the list items have an id of the form: . The display items must be in consecutive order starting at zero. - The item which displays the currently selected item should have the additional "_selectedItem" suffix, so its id should be formed as: . If not selected item is specified, the selected item index defaults to zero. By default, SVGList assumes that the list items are SVG elements. However, the list can be associated to a list item binders to handle more sophisticated item rendering. Example of SVG content which can be bound by this class:
 
 
 item 0
 item 1
 item 2
 item 3
 
 
 item 4
 item 4 details
 
 
 item 5
 item 6
 item 7
 item 8
 item 8
 
 
 
 
 

Inner Class :public interface ListModel
Inner Class :public interface ListItemBinder
Inner Class :public class DefaultListItemBinder implements ListItemBinder

Field Summary
final public static  StringSCROLL_DOWN_ANIM_SUFFIX
     Id suffix used for the list scrollDown animation effect.
final public static  StringSCROLL_UP_ANIM_SUFFIX
     Id suffix used for the list scrollUp animation effect.
protected  ListItemBindercommonItemBinder
     The list item binder used to display common list elements.
protected  intcurIndex
     Index of the currently selected list item.
protected  StringlistIdPrefix
     The prefix for the identifiers which make the various list elements.
protected  VectorlistItems
     This vector holds all the SVGElement instances which represent items in the list.
protected  ListModellistModel
     The model providing the list data.
protected  intnDisplayedItems
     The number of items displayed in the list.
protected  SVGAnimationElementscrollDownAnim
     The animation to play to scroll down the list.
protected  SVGAnimationElementscrollUpAnim
     The animation to play to scroll up the list.
protected  ListItemBinderselectedItemBinder
     The list item binder used to display the selected list element.
protected  SVGElementselectedItemDetails
    

Constructor Summary
public  SVGList(ListModel listModel, String listIdPrefix)
     Creates a new instance of SVGList.

Method Summary
public  intgetCurIndex()
     Returns the current index in the list, in the [0, getSize()[ range.
public  intgetFocusedIndex()
     Returns the index of the index in the list with focus.
public  floatgetPosition()
     Returns the current progress in the list, as a ration of the current index over the number of list items.
public  voidhookSkin(Document doc)
     Hooks the specified sking to the application.
public  voidnext()
    
public  voidprev()
    
public  voidscrollDown()
    
public  voidscrollUp()
    
public  voidsetCommonItemBinder(ListItemBinder commonItemBinder)
     Sets a new ListItemBinder for rendering common list entries.
public  voidsetCurIndex(int curIndex)
     Sets the new current index, i.e., the index of the first displayed list item.
public  voidsetDataItems()
     Transfers list data to the XML UI.
public  voidsetSelectedIndex(int selectedIndex)
     Sets the index of the item with selection focus.
public  voidsetSelectedItemBinder(ListItemBinder selectedItemBinder)
     Sets a new ListItemBinder for rendering the selected list entry.

Field Detail
SCROLL_DOWN_ANIM_SUFFIX
final public static String SCROLL_DOWN_ANIM_SUFFIX(Code)
Id suffix used for the list scrollDown animation effect.



SCROLL_UP_ANIM_SUFFIX
final public static String SCROLL_UP_ANIM_SUFFIX(Code)
Id suffix used for the list scrollUp animation effect.



commonItemBinder
protected ListItemBinder commonItemBinder(Code)
The list item binder used to display common list elements.



curIndex
protected int curIndex(Code)
Index of the currently selected list item.



listIdPrefix
protected String listIdPrefix(Code)
The prefix for the identifiers which make the various list elements.



listItems
protected Vector listItems(Code)
This vector holds all the SVGElement instances which represent items in the list.



listModel
protected ListModel listModel(Code)
The model providing the list data.



nDisplayedItems
protected int nDisplayedItems(Code)
The number of items displayed in the list.



scrollDownAnim
protected SVGAnimationElement scrollDownAnim(Code)
The animation to play to scroll down the list.



scrollUpAnim
protected SVGAnimationElement scrollUpAnim(Code)
The animation to play to scroll up the list.



selectedItemBinder
protected ListItemBinder selectedItemBinder(Code)
The list item binder used to display the selected list element.



selectedItemDetails
protected SVGElement selectedItemDetails(Code)




Constructor Detail
SVGList
public SVGList(ListModel listModel, String listIdPrefix)(Code)
Creates a new instance of SVGList.
Parameters:
  listModel - - the ListModel which will provide the data for the list.
Parameters:
  listIdPrefix - - the prefix used for the various elements which make thelist.




Method Detail
getCurIndex
public int getCurIndex()(Code)
Returns the current index in the list, in the [0, getSize()[ range. the first shown list index.



getFocusedIndex
public int getFocusedIndex()(Code)
Returns the index of the index in the list with focus. the index of the currently selected list index.



getPosition
public float getPosition()(Code)
Returns the current progress in the list, as a ration of the current index over the number of list items.



hookSkin
public void hookSkin(Document doc)(Code)
Hooks the specified sking to the application.
Parameters:
  doc - the new Document to hook into the application



next
public void next()(Code)



prev
public void prev()(Code)



scrollDown
public void scrollDown()(Code)



scrollUp
public void scrollUp()(Code)



setCommonItemBinder
public void setCommonItemBinder(ListItemBinder commonItemBinder)(Code)
Sets a new ListItemBinder for rendering common list entries.
Parameters:
  commonItemBinder - - the new ListItemBinder to use when rendering common list elements.



setCurIndex
public void setCurIndex(int curIndex)(Code)
Sets the new current index, i.e., the index of the first displayed list item.
Parameters:
  curIndex - - the index of the new first displayed list item.



setDataItems
public void setDataItems()(Code)
Transfers list data to the XML UI.



setSelectedIndex
public void setSelectedIndex(int selectedIndex)(Code)
Sets the index of the item with selection focus.
Parameters:
  selectedIndex - - the index of the new currently focused list item.



setSelectedItemBinder
public void setSelectedItemBinder(ListItemBinder selectedItemBinder)(Code)
Sets a new ListItemBinder for rendering the selected list entry.
Parameters:
  selectedItemBinder - - the new ListItemBinder to use when rendering the selected list element.



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(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.