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


java.lang.Object
   org.eclipse.jface.text.AbstractInformationControlManager
      org.eclipse.jface.text.information.InformationPresenter

InformationPresenter
public class InformationPresenter extends AbstractInformationControlManager implements IInformationPresenter,IInformationPresenterExtension,IWidgetTokenKeeper,IWidgetTokenKeeperExtension(Code)
Standard implementation of IInformationPresenter. This implementation extends AbstractInformationControlManager. The information control is made visible on request by calling InformationPresenter.showInformationControl(Rectangle) .

Usually, clients instantiate this class and configure it before using it. The configuration must be consistent: This means the used org.eclipse.jface.text.IInformationControlCreator must create an information control expecting information in the same format the configured org.eclipse.jface.text.information.IInformationProvider s use to encode the information they provide.


since:
   2.0

Inner Class :class Closer implements IInformationControlCloser,ControlListener,MouseListener,FocusListener,IViewportListener,KeyListener

Field Summary
final public static  intWIDGET_PRIORITY
     Priority of the info controls managed by this information presenter.

Constructor Summary
public  InformationPresenter(IInformationControlCreator creator)
     Creates a new information presenter that uses the given information control creator. The presenter is not installed on any text viewer yet.

Method Summary
protected  voidcomputeInformation()
    
public  StringgetDocumentPartitioning()
    
public  IInformationProvidergetInformationProvider(String contentType)
    
protected  voidhandleInformationControlDisposed()
    
protected  voidhideInformationControl()
    
public  voidinstall(ITextViewer textViewer)
    
public  booleanrequestWidgetToken(IWidgetTokenOwner owner)
    
public  booleanrequestWidgetToken(IWidgetTokenOwner owner, int priority)
    
public  voidsetDocumentPartitioning(String partitioning)
     Sets the document partitioning to be used by this information presenter.
public  booleansetFocus(IWidgetTokenOwner owner)
    
public  voidsetInformationProvider(IInformationProvider provider, String contentType)
     Registers a given information provider for a particular content type.
public  voidsetOffset(int offset)
     Sets a offset to override the selection.
protected  voidshowInformationControl(Rectangle subjectArea)
    
public  voiduninstall()
    

Field Detail
WIDGET_PRIORITY
final public static int WIDGET_PRIORITY(Code)
Priority of the info controls managed by this information presenter. Default value: 5.
since:
   3.0




Constructor Detail
InformationPresenter
public InformationPresenter(IInformationControlCreator creator)(Code)
Creates a new information presenter that uses the given information control creator. The presenter is not installed on any text viewer yet. By default, an information control closer is set that closes the information control in the event of key strokes, resizing, moves, focus changes, mouse clicks, and disposal - all of those applied to the information control's parent control. Also, the setup ensures that the information control when made visible will request the focus. By default, the default document partitioning IDocumentExtension3.DEFAULT_PARTITIONING is used.
Parameters:
  creator - the information control creator to be used




Method Detail
computeInformation
protected void computeInformation()(Code)



getDocumentPartitioning
public String getDocumentPartitioning()(Code)



getInformationProvider
public IInformationProvider getInformationProvider(String contentType)(Code)



handleInformationControlDisposed
protected void handleInformationControlDisposed()(Code)



hideInformationControl
protected void hideInformationControl()(Code)



install
public void install(ITextViewer textViewer)(Code)



requestWidgetToken
public boolean requestWidgetToken(IWidgetTokenOwner owner)(Code)



requestWidgetToken
public boolean requestWidgetToken(IWidgetTokenOwner owner, int priority)(Code)



setDocumentPartitioning
public void setDocumentPartitioning(String partitioning)(Code)
Sets the document partitioning to be used by this information presenter.
Parameters:
  partitioning - the document partitioning to be used by this information presenter
since:
   3.0



setFocus
public boolean setFocus(IWidgetTokenOwner owner)(Code)



setInformationProvider
public void setInformationProvider(IInformationProvider provider, String contentType)(Code)
Registers a given information provider for a particular content type. If there is already a provider registered for this type, the new provider is registered instead of the old one.
Parameters:
  provider - the information provider to register, or null to remove an existing one
Parameters:
  contentType - the content type under which to register



setOffset
public void setOffset(int offset)(Code)
Sets a offset to override the selection. Setting the value to -1 will disable overriding.
Parameters:
  offset - the offset to override selection or -1



showInformationControl
protected void showInformationControl(Rectangle subjectArea)(Code)



uninstall
public void uninstall()(Code)



Fields inherited from org.eclipse.jface.text.AbstractInformationControlManager
final public static Anchor ANCHOR_BOTTOM(Code)(Java Doc)
final public static Anchor ANCHOR_GLOBAL(Code)(Java Doc)
final public static Anchor ANCHOR_LEFT(Code)(Java Doc)
final public static Anchor ANCHOR_RIGHT(Code)(Java Doc)
final public static Anchor ANCHOR_TOP(Code)(Java Doc)
final public static String STORE_LOCATION_X(Code)(Java Doc)
final public static String STORE_LOCATION_Y(Code)(Java Doc)
final public static String STORE_SIZE_HEIGHT(Code)(Java Doc)
final public static String STORE_SIZE_WIDTH(Code)(Java Doc)
protected boolean fDisposed(Code)(Java Doc)
protected IInformationControl fInformationControl(Code)(Java Doc)
protected IInformationControlCloser fInformationControlCloser(Code)(Java Doc)
protected IInformationControlCreator fInformationControlCreator(Code)(Java Doc)

Methods inherited from org.eclipse.jface.text.AbstractInformationControlManager
protected Rectangle computeAvailableArea(Rectangle subjectArea, Rectangle bounds, Anchor anchor)(Code)(Java Doc)
abstract protected void computeInformation()(Code)(Java Doc)
protected Point computeInformationControlLocation(Rectangle subjectArea, Point controlSize)(Code)(Java Doc)
protected Point computeLocation(Rectangle subjectArea, Point controlSize, Anchor anchor)(Code)(Java Doc)
protected Point computeSizeConstraints(Control subjectControl, IInformationControl informationControl)(Code)(Java Doc)
protected Point computeSizeConstraints(Control subjectControl, Rectangle subjectArea, IInformationControl informationControl)(Code)(Java Doc)
public void dispose()(Code)(Java Doc)
public void disposeInformationControl()(Code)(Java Doc)
protected void doShowInformation()(Code)(Java Doc)
protected IInformationControl getInformationControl()(Code)(Java Doc)
protected Anchor getNextFallbackAnchor(Anchor anchor)(Code)(Java Doc)
protected Rectangle getSubjectArea()(Code)(Java Doc)
protected Control getSubjectControl()(Code)(Java Doc)
protected void handleInformationControlDisposed()(Code)(Java Doc)
protected void handleSubjectControlDisposed()(Code)(Java Doc)
protected void hideInformationControl()(Code)(Java Doc)
public void install(Control subjectControl)(Code)(Java Doc)
protected boolean isEnabled()(Code)(Java Doc)
protected void presentInformation()(Code)(Java Doc)
protected Rectangle restoreInformationControlBounds()(Code)(Java Doc)
public void setAnchor(Anchor anchor)(Code)(Java Doc)
protected void setCloser(IInformationControlCloser closer)(Code)(Java Doc)
protected void setCustomInformationControlCreator(IInformationControlCreator informationControlCreator)(Code)(Java Doc)
public void setEnabled(boolean enabled)(Code)(Java Doc)
public void setFallbackAnchors(Anchor[] fallbackAnchors)(Code)(Java Doc)
final protected void setInformation(String information, Rectangle subjectArea)(Code)(Java Doc)
final protected void setInformation(Object information, Rectangle subjectArea)(Code)(Java Doc)
public void setMargins(int xMargin, int yMargin)(Code)(Java Doc)
public void setRestoreInformationControlBounds(IDialogSettings dialogSettings, boolean restoreLocation, boolean restoreSize)(Code)(Java Doc)
public void setSizeConstraints(int widthInChar, int heightInChar, boolean enforceAsMinimalSize, boolean enforceAsMaximalSize)(Code)(Java Doc)
public void showInformation()(Code)(Java Doc)
protected void showInformationControl(Rectangle subjectArea)(Code)(Java Doc)
protected void storeInformationControlBounds()(Code)(Java Doc)
public void takesFocusWhenVisible(boolean takesFocus)(Code)(Java Doc)
protected boolean updateLocation(Point location, Point size, Rectangle displayArea, Anchor anchor)(Code)(Java Doc)

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.