Java Doc for IDialogSettings.java in  » IDE-Eclipse » jface » org » eclipse » jface » dialogs » 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 Eclipse » jface » org.eclipse.jface.dialogs 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.eclipse.jface.dialogs.IDialogSettings

All known Subclasses:   org.eclipse.jface.dialogs.DialogSettings,
IDialogSettings
public interface IDialogSettings (Code)
An interface to a storage mechanism for making dialog settings persistent. The store manages a collection of key/value pairs. The keys must be strings and the values can be either, strings or array of strings. Convenience API to convert primitive types to strings is provided.




Method Summary
public  IDialogSettingsaddNewSection(String name)
     Create a new section in the receiver and return it.
public  voidaddSection(IDialogSettings section)
     Add a section in the receiver.
public  Stringget(String key)
     Returns the value of the given key in this dialog settings.
public  String[]getArray(String key)
     Returns the value, an array of strings, of the given key in this dialog settings.
public  booleangetBoolean(String key)
     Convenience API.
public  doublegetDouble(String key)
     Convenience API.
public  floatgetFloat(String key)
     Convenience API.
public  intgetInt(String key)
     Convenience API.
public  longgetLong(String key)
     Convenience API.
public  StringgetName()
     Returns the IDialogSettings name.
public  IDialogSettingsgetSection(String sectionName)
     Returns the section with the given name in this dialog settings.
public  IDialogSettings[]getSections()
     Returns all the sections in this dialog settings.
public  voidload(Reader reader)
     Load a dialog settings from a stream and fill the receiver with its content.
public  voidload(String fileName)
     Load a dialog settings from a file and fill the receiver with its content.
public  voidput(String key, String[] value)
     Adds the pair key/value to this dialog settings.
public  voidput(String key, double value)
     Convenience API.
public  voidput(String key, float value)
     Convenience API.
public  voidput(String key, int value)
     Convenience API.
public  voidput(String key, long value)
     Convenience API.
public  voidput(String key, String value)
     Adds the pair key/value to this dialog settings.
public  voidput(String key, boolean value)
     Convenience API.
public  voidsave(Writer writer)
    
public  voidsave(String fileName)
     Save a dialog settings to a file.



Method Detail
addNewSection
public IDialogSettings addNewSection(String name)(Code)
Create a new section in the receiver and return it.
Parameters:
  name - the name of the new section the new section



addSection
public void addSection(IDialogSettings section)(Code)
Add a section in the receiver.
Parameters:
  section - the section to be added



get
public String get(String key)(Code)
Returns the value of the given key in this dialog settings.
Parameters:
  key - the key the value, or null if none



getArray
public String[] getArray(String key)(Code)
Returns the value, an array of strings, of the given key in this dialog settings.
Parameters:
  key - the key the array of string, or null if none



getBoolean
public boolean getBoolean(String key)(Code)
Convenience API. Convert the value of the given key in this dialog settings to a boolean and return it.
Parameters:
  key - the key the boolean value, or false if none



getDouble
public double getDouble(String key) throws NumberFormatException(Code)
Convenience API. Convert the value of the given key in this dialog settings to a double and return it.
Parameters:
  key - the key the value coverted to double, or throwsNumberFormatException if none
exception:
  NumberFormatException - if the string value does not contain a parsable number.
See Also:   java.lang.Double.valueOf(java.lang.String)



getFloat
public float getFloat(String key) throws NumberFormatException(Code)
Convenience API. Convert the value of the given key in this dialog settings to a float and return it.
Parameters:
  key - the key the value coverted to float, or throwsNumberFormatException if none
exception:
  NumberFormatException - if the string value does not contain a parsable number.
See Also:   java.lang.Float.valueOf(java.lang.String)



getInt
public int getInt(String key) throws NumberFormatException(Code)
Convenience API. Convert the value of the given key in this dialog settings to a int and return it.
Parameters:
  key - the key the value coverted to int, or throwsNumberFormatException if none
exception:
  NumberFormatException - if the string value does not contain a parsable number.
See Also:   java.lang.Integer.valueOf(java.lang.String)



getLong
public long getLong(String key) throws NumberFormatException(Code)
Convenience API. Convert the value of the given key in this dialog settings to a long and return it.
Parameters:
  key - the key the value coverted to long, or throwsNumberFormatException if none
exception:
  NumberFormatException - if the string value does not contain a parsable number.
See Also:   java.lang.Long.valueOf(java.lang.String)



getName
public String getName()(Code)
Returns the IDialogSettings name. the name



getSection
public IDialogSettings getSection(String sectionName)(Code)
Returns the section with the given name in this dialog settings.
Parameters:
  sectionName - the key IDialogSettings (the section), or null if none



getSections
public IDialogSettings[] getSections()(Code)
Returns all the sections in this dialog settings. the section, or null if none



load
public void load(Reader reader) throws IOException(Code)
Load a dialog settings from a stream and fill the receiver with its content.
Parameters:
  reader - a Reader specifying the stream where the settings are readfrom.
throws:
  IOException -



load
public void load(String fileName) throws IOException(Code)
Load a dialog settings from a file and fill the receiver with its content.
Parameters:
  fileName - the name of the file the settings are read from.
throws:
  IOException -



put
public void put(String key, String[] value)(Code)
Adds the pair key/value to this dialog settings.
Parameters:
  key - the key.
Parameters:
  value - the value to be associated with the key



put
public void put(String key, double value)(Code)
Convenience API. Converts the double value to a string and adds the pair key/value to this dialog settings.
Parameters:
  key - the key.
Parameters:
  value - the value to be associated with the key



put
public void put(String key, float value)(Code)
Convenience API. Converts the float value to a string and adds the pair key/value to this dialog settings.
Parameters:
  key - the key.
Parameters:
  value - the value to be associated with the key



put
public void put(String key, int value)(Code)
Convenience API. Converts the int value to a string and adds the pair key/value to this dialog settings.
Parameters:
  key - the key.
Parameters:
  value - the value to be associated with the key



put
public void put(String key, long value)(Code)
Convenience API. Converts the long value to a string and adds the pair key/value to this dialog settings.
Parameters:
  key - the key.
Parameters:
  value - the value to be associated with the key



put
public void put(String key, String value)(Code)
Adds the pair key/value to this dialog settings.
Parameters:
  key - the key.
Parameters:
  value - the value to be associated with the key



put
public void put(String key, boolean value)(Code)
Convenience API. Converts the boolean value to a string and adds the pair key/value to this dialog settings.
Parameters:
  key - the key.
Parameters:
  value - the value to be associated with the key



save
public void save(Writer writer) throws IOException(Code)
Save a dialog settings to a stream
Parameters:
  writer - a Writer specifying the stream the settings are written in.
throws:
  IOException -



save
public void save(String fileName) throws IOException(Code)
Save a dialog settings to a file.
Parameters:
  fileName - the name of the file the settings are written in.
throws:
  IOException -



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