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


org.eclipse.ui.cheatsheets.ICheatSheetViewer

All known Subclasses:   org.eclipse.ui.internal.cheatsheets.views.CheatSheetViewer,
ICheatSheetViewer
public interface ICheatSheetViewer (Code)
A cheat sheet viewer.

Clients call CheatSheetViewerFactory.createCheatSheetView to create a cheat sheet viewer instance, and then call the viewer's createPartControl method to have it create the viewer's control under the specified SWT composite. The viewer's control can then be retrieved using getControl to arrange layout. The setInput methods are used to set (or clear) the cheat sheet shown in the viewer, and can be called either before or after the viewer's controls have been created and laid out.

The execution states of open cheat sheets are maintained and persisted globally using the cheat sheet id as the key.

This interface is not intended to be implemented by clients.


See Also:   CheatSheetViewerFactory
since:
   3.0




Method Summary
public  voidcreatePartControl(Composite parent)
     Creates the SWT controls for this cheat sheet viewer.
public  StringgetCheatSheetID()
     Returns the id of the cheat sheet showing in this view.
public  ControlgetControl()
     Returns the primary control associated with this viewer.
public  voidreset(Map cheatSheetData)
     Sets the currently active cheat sheet to its initial state and initalizes the cheat sheet manager data.
Parameters:
  cheatSheetData - A map whose keys and values are all of typejava.lang.String or null to reset all data in the cheat sheet manager.
public  voidsetFocus()
     Asks this cheat sheet viewer to take focus.
public  voidsetInput(String id)
     Sets the cheat sheet viewer to show the cheat sheet with the given id.
public  voidsetInput(String id, String name, URL url)
     Sets the cheat sheet viewer to show the cheat sheet with the given cheat sheet content file.



Method Detail
createPartControl
public void createPartControl(Composite parent)(Code)
Creates the SWT controls for this cheat sheet viewer.

When the parent Composite is disposed, this will automatically dispose the controls added by this viewer (and release any other viewer-specific state).


Parameters:
  parent - the parent control



getCheatSheetID
public String getCheatSheetID()(Code)
Returns the id of the cheat sheet showing in this view. id the cheat sheet id, or null if theview is not showing a cheat sheet



getControl
public Control getControl()(Code)
Returns the primary control associated with this viewer. the SWT control which displays this viewer'scontent, or null if this viewer's controlshave not yet been created.



reset
public void reset(Map cheatSheetData)(Code)
Sets the currently active cheat sheet to its initial state and initalizes the cheat sheet manager data.
Parameters:
  cheatSheetData - A map whose keys and values are all of typejava.lang.String or null to reset all data in the cheat sheet manager.
since:
   3.2



setFocus
public void setFocus()(Code)
Asks this cheat sheet viewer to take focus.



setInput
public void setInput(String id)(Code)
Sets the cheat sheet viewer to show the cheat sheet with the given id. The cheat sheet content file is located via the org.eclipse.ui.cheatsheets.cheatSheetContent extension point. The viewer shows an error message if there is no cheat sheet with the given id.

The execution states of open cheat sheets are maintained and persisted globally using the cheat sheet id as the key.


Parameters:
  id - the cheat sheet id, or null to showno cheat sheet in this viewer



setInput
public void setInput(String id, String name, URL url)(Code)
Sets the cheat sheet viewer to show the cheat sheet with the given cheat sheet content file. The viewer shows an error message if the cheat sheet content file cannot be opened or parsed.

The execution states of open cheat sheets are maintained and persisted globally using the cheat sheet id as the key. This means that each cheat sheet must have a distinct id, including ones opened from URLs.

Use the other setInput method to clear the viewer; that is, call setInput(null).


Parameters:
  id - the id to give this cheat sheet
Parameters:
  name - the name to give this cheat sheet
Parameters:
  url - URL of the cheat sheet content file
exception:
  IllegalArgumentException - if the parametersare null



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