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


java.lang.Object
   org.eclipse.ui.part.DrillDownAdapter

DrillDownAdapter
public class DrillDownAdapter implements ISelectionChangedListener(Code)
Implements a simple web style navigation metaphor for a TreeViewer. Home, back, and "drill into" functions are supported for the viewer,

To use the DrillDownAdapter ..

  • Create an instance of TreeViewer.
  • Create a DrillDownAdapter for the viewer.
  • Create a container for your viewer with a toolbar or a popup menu. Add actions for "goBack", "goHome", and "goInto" to either one by calling addNavigationActions with the popup menu or toolbar.
  • If the input for the underlying viewer is changed by something other than the adapter the reset method should be called. This will clear the drill stack and update the navigation buttons to reflect the new state of the underlying viewer.




Constructor Summary
public  DrillDownAdapter(TreeViewer tree)
     Allocates a new DrillDownTreePart.

Method Summary
public  voidaddNavigationActions(IMenuManager manager)
     Adds actions for "go back", "go home", and "go into" to a menu manager.
public  voidaddNavigationActions(IToolBarManager toolBar)
     Adds actions for "go back", "go home", and "go into" to a tool bar manager.
public  booleancanExpand(Object element)
     Returns whether expansion is possible for the current selection.
public  booleancanGoBack()
     Returns whether "go back" is possible for child tree.
public  booleancanGoHome()
     Returns whether "go home" is possible for child tree.
public  booleancanGoInto()
     Returns whether "go into" is possible for child tree.
public  voidgoBack()
     Reverts the input for the tree back to the state when goInto was last called.

A frame is removed from the drill stack.

public  voidgoHome()
     Reverts the input for the tree back to the state when the adapter was created.

All of the frames are removed from the drill stack.

public  voidgoInto()
     Sets the input for the tree to the current selection.

The current input and expansion state are saved in a frame and added to the drill stack.

public  voidgoInto(Object newInput)
     Sets the input for the tree to a particular item in the tree.

The current input and expansion state are saved in a frame and added to the drill stack.

public  voidreset()
     Resets the drill down adapter.
public  voidselectionChanged(SelectionChangedEvent event)
     Updates the navigation buttons when a selection change occurs in the tree.
protected  voidupdateNavigationButtons()
     Updates the enabled state for each navigation button.


Constructor Detail
DrillDownAdapter
public DrillDownAdapter(TreeViewer tree)(Code)
Allocates a new DrillDownTreePart.
Parameters:
  tree - the target tree for refocusing




Method Detail
addNavigationActions
public void addNavigationActions(IMenuManager manager)(Code)
Adds actions for "go back", "go home", and "go into" to a menu manager.
Parameters:
  manager - is the target manager to update



addNavigationActions
public void addNavigationActions(IToolBarManager toolBar)(Code)
Adds actions for "go back", "go home", and "go into" to a tool bar manager.
Parameters:
  toolBar - is the target manager to update



canExpand
public boolean canExpand(Object element)(Code)
Returns whether expansion is possible for the current selection. This will only be true if it has children.
Parameters:
  element - the object to test for expansion true if expansion is possible; otherwise return false



canGoBack
public boolean canGoBack()(Code)
Returns whether "go back" is possible for child tree. This is only possible if the client has performed one or more drilling operations. true if "go back" is possible; false otherwise



canGoHome
public boolean canGoHome()(Code)
Returns whether "go home" is possible for child tree. This is only possible if the client has performed one or more drilling operations. true if "go home" is possible; false otherwise



canGoInto
public boolean canGoInto()(Code)
Returns whether "go into" is possible for child tree. This is only possible if the current selection in the client has one item and it has children. true if "go into" is possible; false otherwise



goBack
public void goBack()(Code)
Reverts the input for the tree back to the state when goInto was last called.

A frame is removed from the drill stack. Then that frame is used to reset the input and expansion state for the child tree.




goHome
public void goHome()(Code)
Reverts the input for the tree back to the state when the adapter was created.

All of the frames are removed from the drill stack. Then the oldest frame is used to reset the input and expansion state for the child tree.




goInto
public void goInto()(Code)
Sets the input for the tree to the current selection.

The current input and expansion state are saved in a frame and added to the drill stack. Then the input for the tree is changed to be the current selection. The expansion state for the tree is maintained during the operation.

On return the client may revert back to the previous state by invoking goBack or goHome.




goInto
public void goInto(Object newInput)(Code)
Sets the input for the tree to a particular item in the tree.

The current input and expansion state are saved in a frame and added to the drill stack. Then the input for the tree is changed to be newInput. The expansion state for the tree is maintained during the operation.

On return the client may revert back to the previous state by invoking goBack or goHome.


Parameters:
  newInput - the new input element



reset
public void reset()(Code)
Resets the drill down adapter.

This method is typically called when the input for the underlying view is reset by something other than the adapter. On return the drill stack has been cleared and the navigation buttons reflect the new state of the underlying viewer.




selectionChanged
public void selectionChanged(SelectionChangedEvent event)(Code)
Updates the navigation buttons when a selection change occurs in the tree.



updateNavigationButtons
protected void updateNavigationButtons()(Code)
Updates the enabled state for each navigation button.



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.