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


org.eclipse.ui.ide.dialogs.AbstractEncodingFieldEditor

All known Subclasses:   org.eclipse.ui.ide.dialogs.ResourceEncodingFieldEditor,  org.eclipse.ui.ide.dialogs.EncodingFieldEditor,
AbstractEncodingFieldEditor
abstract public class AbstractEncodingFieldEditor extends FieldEditor (Code)
The abstract superclass of field editors used to set an encoding. Any user entered encodings will be added to the list of encodings available via org.eclipse.ui.ide.IDEEncoding .

Subclasses may extend, but must call createEncodingGroup during doFillIntoGrid.


See Also:   org.eclipse.ui.ide.IDEEncoding
since:
   3.1



Constructor Summary
protected  AbstractEncodingFieldEditor()
     Creates a new encoding field editor with no settings set.
protected  AbstractEncodingFieldEditor(String name, String labelText, Composite parent)
     Creates a new encoding field editor with the given preference name, label and parent.
protected  AbstractEncodingFieldEditor(String name, String labelText, String groupTitle, Composite parent)
     Creates a new encoding field editor with the given preference name, label and parent.
Parameters:
  name - the name of the preference this field editor works on
Parameters:
  labelText - the label text of the field editor
Parameters:
  groupTitle - the title for the field editor's control.

Method Summary
protected  voidadjustForNumColumns(int numColumns)
    
protected  CompositecreateEncodingGroup(Composite parent, int numColumns)
     Creates a composite with all the encoding controls.
protected  StringdefaultButtonText()
     Returns the text for the default encoding button.
protected  voiddoFillIntoGrid(Composite parent, int numColumns)
    
protected  voiddoLoad()
    
protected  voiddoLoadDefault()
    
protected  StringfindDefaultEncoding()
     Returns the default encoding for the object being shown.
protected  StringgetDefaultEnc()
     Returns the default encoding.
public  intgetNumberOfControls()
    
protected  StringgetSelectedEncoding()
     Returns the currently selected encoding.
abstract protected  StringgetStoredValue()
     Returns the value that is currently stored for the encoding.
protected  booleanhasSameEncoding(String encodingSetting)
     Returns whether or not the encoding setting changed.
Parameters:
  encodingSetting - the setting from the page.
 booleanisDefaultSelected()
     Return whether or not the default has been selected.
public  booleanisValid()
    
protected  voidrefreshValidState()
    
public  voidsetEnabled(boolean enabled, Composite parent)
    
public  voidsetGroupTitle(String groupTitle)
     Set the title of the group to groupTitle.
public  voidsetPreferenceStore(IPreferenceStore store)
    


Constructor Detail
AbstractEncodingFieldEditor
protected AbstractEncodingFieldEditor()(Code)
Creates a new encoding field editor with no settings set.



AbstractEncodingFieldEditor
protected AbstractEncodingFieldEditor(String name, String labelText, Composite parent)(Code)
Creates a new encoding field editor with the given preference name, label and parent.
Parameters:
  name - the name of the preference this field editor works on
Parameters:
  labelText - the label text of the field editor
Parameters:
  parent - the parent of the field editor's control



AbstractEncodingFieldEditor
protected AbstractEncodingFieldEditor(String name, String labelText, String groupTitle, Composite parent)(Code)
Creates a new encoding field editor with the given preference name, label and parent.
Parameters:
  name - the name of the preference this field editor works on
Parameters:
  labelText - the label text of the field editor
Parameters:
  groupTitle - the title for the field editor's control. If groupTitle is null the control will be unlabelled(by default a Composite instead of a Group.
Parameters:
  parent - the parent of the field editor's control
See Also:   AbstractEncodingFieldEditor.setGroupTitle(String)
since:
   3.3




Method Detail
adjustForNumColumns
protected void adjustForNumColumns(int numColumns)(Code)



createEncodingGroup
protected Composite createEncodingGroup(Composite parent, int numColumns)(Code)
Creates a composite with all the encoding controls.

Subclasses may extend.


Parameters:
  parent - the parent widget
Parameters:
  numColumns - the number of columns in the parent the group control



defaultButtonText
protected String defaultButtonText()(Code)
Returns the text for the default encoding button. the text for the default encoding button



doFillIntoGrid
protected void doFillIntoGrid(Composite parent, int numColumns)(Code)



doLoad
protected void doLoad()(Code)



doLoadDefault
protected void doLoadDefault()(Code)



findDefaultEncoding
protected String findDefaultEncoding()(Code)
Returns the default encoding for the object being shown. the default encoding for the object being shown



getDefaultEnc
protected String getDefaultEnc()(Code)
Returns the default encoding. the default encoding



getNumberOfControls
public int getNumberOfControls()(Code)



getSelectedEncoding
protected String getSelectedEncoding()(Code)
Returns the currently selected encoding. the currently selected encoding



getStoredValue
abstract protected String getStoredValue()(Code)
Returns the value that is currently stored for the encoding. the currently stored encoding



hasSameEncoding
protected boolean hasSameEncoding(String encodingSetting)(Code)
Returns whether or not the encoding setting changed.
Parameters:
  encodingSetting - the setting from the page. boolean true if the resource encoding is the sameas before.



isDefaultSelected
boolean isDefaultSelected()(Code)
Return whether or not the default has been selected. true if the default button has been selected.



isValid
public boolean isValid()(Code)



refreshValidState
protected void refreshValidState()(Code)



setEnabled
public void setEnabled(boolean enabled, Composite parent)(Code)



setGroupTitle
public void setGroupTitle(String groupTitle)(Code)
Set the title of the group to groupTitle. If this is not called a default title is used. If groupTitle is null the control will be unlabelled (by default a Composite instead of a Group . NOTE this value must be set before AbstractEncodingFieldEditor.createControl(Composite) is called or it will be ignored.
Parameters:
  groupTitle - The groupTitle to set.
since:
   3.3



setPreferenceStore
public void setPreferenceStore(IPreferenceStore store)(Code)



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