Java Doc for ListModel.java in  » Web-Framework » calyxo » de » odysseus » calyxo » forms » view » 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 » Web Framework » calyxo » de.odysseus.calyxo.forms.view 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


de.odysseus.calyxo.forms.view.ListModel

All known Subclasses:   de.odysseus.calyxo.forms.view.DefaultListModel,
ListModel
public interface ListModel (Code)
List model interface.

A list model defines a bijection between string keys and object values. That is, each key corresponds to exacly one value and vice versa. Keys must not be null or empty. Values must not be null.

The interface provides a method to lookup labels and to get all values in some sorted order. The interface defines some keys for common sort criteria. Generally, an implementation must support the INDEX_ORDER order. If an implementation does not support some other requested order, it should answer the values in INDEX_ORDER instead.
author:
   Oliver Stuhr
author:
   Christoph Beck



Field Summary
final public static  intINDEX_ORDER
     Index order.
final public static  intKEY_ORDER
     Key order.
final public static  intLABEL_ORDER
     Label order.
final public static  intVALUE_ORDER
     Value order.


Method Summary
public  booleancontainsKey(String key)
     Answer true iff the specified key is valid.
public  StringgetKey(Object value)
     Get the corresponding key for the specified value.
public  StringgetLabel(Object value, Locale locale)
     Lookup the label used for display purposes for the specified value.
public  intgetSize()
     Get the number of values in this model.
public  ObjectgetValue(int index)
     Get the value for specified index (according to index order).
public  ObjectgetValue(String key)
     Get the corresponding value for the specified key.
public  IteratorgetValues()
     Iterate over values (in no particular order).
public  IteratorgetValues(int order, boolean descending, Locale locale)
     Get the values sorted according to the specified order.

Field Detail
INDEX_ORDER
final public static int INDEX_ORDER(Code)
Index order. This order refers to the model's internal order. For example, it may reflect the order, values have been added. to the model. The sorted sequence contains getValue(0), ..., getValue(getSize()-1).



KEY_ORDER
final public static int KEY_ORDER(Code)
Key order. Lexicographical order of the keys.



LABEL_ORDER
final public static int LABEL_ORDER(Code)
Label order. Lexicographical order of the labels.



VALUE_ORDER
final public static int VALUE_ORDER(Code)
Value order. Some order defined on the values. Implementation-dependent.





Method Detail
containsKey
public boolean containsKey(String key)(Code)
Answer true iff the specified key is valid. The result of this method is equivalent to key == getKey(getValue(key)).



getKey
public String getKey(Object value)(Code)
Get the corresponding key for the specified value. If the value is not contained in the model, answer null. Because valid keys must not be null, this indicates an invalid value.



getLabel
public String getLabel(Object value, Locale locale)(Code)
Lookup the label used for display purposes for the specified value. The passed locale parameter may be used to lookup a localized label.



getSize
public int getSize()(Code)
Get the number of values in this model.



getValue
public Object getValue(int index)(Code)
Get the value for specified index (according to index order).



getValue
public Object getValue(String key)(Code)
Get the corresponding value for the specified key. If the key is not contained in the model, answer null.



getValues
public Iterator getValues()(Code)
Iterate over values (in no particular order).



getValues
public Iterator getValues(int order, boolean descending, Locale locale)(Code)
Get the values sorted according to the specified order. In case of order == LABEL_ORDER, the passed locale parameter may be used to lookup localized labels.



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