Java Doc for EncodingComboBoxModel.java in  » Report » pentaho-report » org » jfree » report » modules » gui » commonswing » 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 » Report » pentaho report » org.jfree.report.modules.gui.commonswing 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.jfree.report.modules.gui.commonswing.EncodingComboBoxModel

EncodingComboBoxModel
public class EncodingComboBoxModel implements ComboBoxModel(Code)
A model for the 'encoding' combo box. This combobox model presents a selection for all available string encodings.
author:
   Thomas Morgner.


Field Summary
final public static  StringAVAILABLE_ENCODINGS
     The property that defines which encodings are available in the export dialogs.
final public static  StringAVAILABLE_ENCODINGS_ALL
     The encodings available properties value for all properties.
final public static  StringAVAILABLE_ENCODINGS_FILE
     The encodings available properties value for properties defined in the properties file.
final public static  StringAVAILABLE_ENCODINGS_NONE
     The encodings available properties value for no properties defined.
final public static  StringBUNDLE_NAME
    
final public static  StringENCODINGS_DEFINITION_FILE
     The name of the properties file used to define the available encodings.
final public static  StringENCODINGS_DEFINITION_FILE_DEFAULT
     The default name for the encoding properties file.

Constructor Summary
public  EncodingComboBoxModel(Locale locale)
     Creates a new model.

Method Summary
public  booleanaddEncoding(String name, String description)
     Adds an encoding.
Parameters:
  name - the name.
Parameters:
  description - the description.
public  voidaddEncodingUnchecked(String name, String description)
     Adds an encoding to the model without checking its validity.
public  voidaddListDataListener(ListDataListener l)
     Adds a listener to the list that's notified each time a change to the data model occurs.
public static  EncodingComboBoxModelcreateDefaultModel(Locale locale)
     Creates a default model containing a selection of encodings.
public  voidensureEncodingAvailable(String encoding)
     Make sure, that this encoding is defined and selectable in the combobox model.
protected  voidfireContentsChanged()
     Notifies all registered listeners that the content of the model has changed.
protected  voidfireContentsChanged(int start, int length)
     Notifies all registered listeners that the content of the model has changed.
public static  StringgetAvailableEncodings()
     Defines the loader settings for the available encodings shown to the user.
public  StringgetDescription(int index)
     Returns a description.
Parameters:
  index - the index.
public  ObjectgetElementAt(int index)
     Returns the value at the specified index.
public  StringgetEncoding(int index)
     Returns an encoding.
Parameters:
  index - the index.
protected  StringgetEncodingDescription(String encoding)
    
public static  StringgetEncodingsDefinitionFile()
     Defines the loader settings for the available encodings shown to the user.
public  StringgetSelectedEncoding()
     Returns the selected encoding.
public  intgetSelectedIndex()
     Returns the selected index.
public  ObjectgetSelectedItem()
     Returns the selected item.
public  intgetSize()
     Returns the length of the list.
public  intindexOf(String encoding)
     Returns the index of an encoding.
Parameters:
  encoding - the encoding (name).
public  voidremoveEncoding(String name)
    
public  voidremoveListDataListener(ListDataListener l)
     Removes a listener from the list that's notified each time a change to the data model occurs.
public  voidsetSelectedEncoding(String encoding)
    
public  voidsetSelectedIndex(int index)
     Defines the selected index for this encoding model.
public  voidsetSelectedItem(Object anItem)
     Set the selected item.
public  voidsort()
     Sorts the encodings.

Field Detail
AVAILABLE_ENCODINGS
final public static String AVAILABLE_ENCODINGS(Code)
The property that defines which encodings are available in the export dialogs.



AVAILABLE_ENCODINGS_ALL
final public static String AVAILABLE_ENCODINGS_ALL(Code)
The encodings available properties value for all properties.



AVAILABLE_ENCODINGS_FILE
final public static String AVAILABLE_ENCODINGS_FILE(Code)
The encodings available properties value for properties defined in the properties file.



AVAILABLE_ENCODINGS_NONE
final public static String AVAILABLE_ENCODINGS_NONE(Code)
The encodings available properties value for no properties defined. The encoding selection will be disabled.



BUNDLE_NAME
final public static String BUNDLE_NAME(Code)



ENCODINGS_DEFINITION_FILE
final public static String ENCODINGS_DEFINITION_FILE(Code)
The name of the properties file used to define the available encodings. The property points to a resources in the classpath, not to a real file!



ENCODINGS_DEFINITION_FILE_DEFAULT
final public static String ENCODINGS_DEFINITION_FILE_DEFAULT(Code)
The default name for the encoding properties file. This property defaults to "/org/jfree/report/jfreereport-encodings.properties".




Constructor Detail
EncodingComboBoxModel
public EncodingComboBoxModel(Locale locale)(Code)
Creates a new model.
Parameters:
  locale -




Method Detail
addEncoding
public boolean addEncoding(String name, String description)(Code)
Adds an encoding.
Parameters:
  name - the name.
Parameters:
  description - the description. true if the encoding is valid and added to the model,false otherwise.



addEncodingUnchecked
public void addEncodingUnchecked(String name, String description)(Code)
Adds an encoding to the model without checking its validity.
Parameters:
  name - the name.
Parameters:
  description - the description.



addListDataListener
public void addListDataListener(ListDataListener l)(Code)
Adds a listener to the list that's notified each time a change to the data model occurs.
Parameters:
  l - the ListDataListener to be added



createDefaultModel
public static EncodingComboBoxModel createDefaultModel(Locale locale)(Code)
Creates a default model containing a selection of encodings. The default model.



ensureEncodingAvailable
public void ensureEncodingAvailable(String encoding)(Code)
Make sure, that this encoding is defined and selectable in the combobox model.
Parameters:
  encoding - the encoding that should be verified.



fireContentsChanged
protected void fireContentsChanged()(Code)
Notifies all registered listeners that the content of the model has changed.



fireContentsChanged
protected void fireContentsChanged(int start, int length)(Code)
Notifies all registered listeners that the content of the model has changed.



getAvailableEncodings
public static String getAvailableEncodings()(Code)
Defines the loader settings for the available encodings shown to the user. The property defaults to AVAILABLE_ENCODINGS_ALL. either AVAILABLE_ENCODINGS_ALL, AVAILABLE_ENCODINGS_FILE orAVAILABLE_ENCODINGS_NONE.



getDescription
public String getDescription(int index)(Code)
Returns a description.
Parameters:
  index - the index. The description.



getElementAt
public Object getElementAt(int index)(Code)
Returns the value at the specified index.
Parameters:
  index - the requested index the value at index



getEncoding
public String getEncoding(int index)(Code)
Returns an encoding.
Parameters:
  index - the index. The index.



getEncodingDescription
protected String getEncodingDescription(String encoding)(Code)



getEncodingsDefinitionFile
public static String getEncodingsDefinitionFile()(Code)
Defines the loader settings for the available encodings shown to the user. The property defaults to AVAILABLE_ENCODINGS_ALL. either AVAILABLE_ENCODINGS_ALL, AVAILABLE_ENCODINGS_FILE orAVAILABLE_ENCODINGS_NONE.



getSelectedEncoding
public String getSelectedEncoding()(Code)
Returns the selected encoding. The encoding (name).



getSelectedIndex
public int getSelectedIndex()(Code)
Returns the selected index. The index.



getSelectedItem
public Object getSelectedItem()(Code)
Returns the selected item. The selected item or null if there is no selection



getSize
public int getSize()(Code)
Returns the length of the list. the length of the list



indexOf
public int indexOf(String encoding)(Code)
Returns the index of an encoding.
Parameters:
  encoding - the encoding (name). The index.



removeEncoding
public void removeEncoding(String name)(Code)



removeListDataListener
public void removeListDataListener(ListDataListener l)(Code)
Removes a listener from the list that's notified each time a change to the data model occurs.
Parameters:
  l - the ListDataListener to be removed



setSelectedEncoding
public void setSelectedEncoding(String encoding)(Code)



setSelectedIndex
public void setSelectedIndex(int index)(Code)
Defines the selected index for this encoding model.
Parameters:
  index - the selected index or -1 to clear the selection.
throws:
  java.lang.IllegalArgumentException - if the given index is invalid.



setSelectedItem
public void setSelectedItem(Object anItem)(Code)
Set the selected item. The implementation of this method should notify all registered ListDataListeners that the contents have changed.
Parameters:
  anItem - the list object to select or null to clear the selection



sort
public void sort()(Code)
Sorts the encodings. Keep the selected object ...



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.