Java Doc for IDocumentNavigator.java in  » IDE » DrJava » edu » rice » cs » util » docnavigation » 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 » DrJava » edu.rice.cs.util.docnavigation 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


edu.rice.cs.util.docnavigation.IDocumentNavigator

IDocumentNavigator
public interface IDocumentNavigator extends IAWTContainerNavigatorActor(Code)
IDocumentNavigator provides a framework through which individual IDocuments can be navigated.


Field Summary
final public static  StringMODEL_INITIATED_PROPERTY_NAME
     The name of the client property that determines whether a change is model- or user-initiated.


Method Summary
public  voidaddDocument(ItemT doc)
     Adds an IDocuemnt to this navigator.
public  voidaddDocument(ItemT doc, String path)
     Adds an INavigatorItem into this navigator in a position relative to a given path.
public  voidaddFocusListener(FocusListener e)
     Add FocusListener to navigator.
public  voidaddNavigationListener(INavigationListener<? super ItemT> listener)
     Adds an INavigationListener to this navigator.
public  voidaddTopLevelGroup(String name, INavigatorItemFilter<? super ItemT> f)
     Adds the top level group with the specified name and filter.
public  ContainerasContainer()
    
public  voidclear()
     Removes all INavigatorItems from this IDocumentNavigator.
public  booleancontains(ItemT doc)
     Tests to see if a given document is contained in this navigator.
Parameters:
  doc - the document to test for containment.
public  ReturnTypeexecute(IDocumentNavigatorAlgo<ItemT, InType, ReturnType> algo, InType input)
     Visitor pattern hook method.
public  ItemTgetCurrent()
     Returns the currently selected navigator item, or null if no navigator item is selected.
public  intgetDocumentCount()
    
public  intgetDocumentSelectedCount()
     the number of documents selected.
public  Enumeration<ItemT>getDocuments()
     Returns all the IDocuments in the collection in enumeration order.
public  Enumeration<ItemT>getDocumentsInBin(String binName)
     Returns all the IDocuments contained in the specified bin.
public  ItemTgetFirst()
    
public  FocusListener[]getFocusListeners()
     Gets the FocustListeners.
public  intgetGroupSelectedCount()
     the number of groups selected.
public  ItemTgetLast()
    
public  ObjectgetModelLock()
     Returns the model lock for this navigator.
public  java.util.Set<String>getNamesOfSelectedTopLevelGroup()
     Returns the names of the top level groups that the selected items descend from.
public  Collection<INavigationListener<? super ItemT>>getNavigatorListeners()
     Returns a collection of all listeners registered with this navigator.
public  ItemTgetNext(ItemT doc)
     The following five operations impose a natural ordering on the documents in the navigator. For lists, it is order of insertion.
public  ItemTgetPrevious(ItemT doc)
    
public  java.util.List<ItemT>getSelectedDocuments()
     the documents currently selected.
public  java.util.List<File>getSelectedFolders()
     the folders currently selected.
public  intgetSelectionCount()
     the number of selected items.
public  booleanisDocumentSelected()
     true if at least one document is selected.
public  booleanisEmpty()
     Returns whether this IDocumentNavigator contains any INavigatorItems.
public  booleanisGroupSelected()
     true if at least one group of INavigatorItems is selected.
public  booleanisNextChangeModelInitiated()
     whether the next selection change is model-initiated (true) or user-initiated (false).
public  booleanisRootSelected()
     Returns true if the root is selected.
public  booleanisSelectedAt(int x, int y)
     Returns true if the item at the x,y coordinate of the navigator pane is currently selected.
public  booleanisSelectedInGroup(ItemT i)
     true if the INavigatorItem is in a selected group, ifat least one group is selected.
public  booleanisTopLevelGroupSelected()
     Returns true if at least one top level group is selected, false otherwise.
public  voidrefreshDocument(ItemT doc, String path)
     Resets a given INavigatorItem in the tree.
public  ItemTremoveDocument(ItemT doc)
     Removes a given INavigatorItem from this navigator.
public  voidremoveFocusListener(FocusListener e)
     Remove FocusListener from navigator.
public  voidremoveNavigationListener(INavigationListener<? super ItemT> listener)
     Removes the given listener from observing this navigator.
public  voidrepaint()
     The standard swing repaint() method.
public  voidrequestSelectionUpdate(ItemT i)
     Switches the selection to the given INavigatorItem if the current selection is not already on an INavigatorItem.
public  booleanselectDocumentAt(int x, int y)
     Selects the document at the x,y coordinates of the navigator pane and makes it the active document.
public  voidsetActiveDoc(ItemT doc)
     Sets the active document as specified.
public  voidsetNextChangeModelInitiated(boolean b)
     Marks the next selection change as model-initiated (true) or user-initiated (false; default).

Field Detail
MODEL_INITIATED_PROPERTY_NAME
final public static String MODEL_INITIATED_PROPERTY_NAME(Code)
The name of the client property that determines whether a change is model- or user-initiated.





Method Detail
addDocument
public void addDocument(ItemT doc)(Code)
Adds an IDocuemnt to this navigator.
Parameters:
  doc - the document to be added into this navigator.



addDocument
public void addDocument(ItemT doc, String path)(Code)
Adds an INavigatorItem into this navigator in a position relative to a given path.
Parameters:
  doc - the document to be added into this navigator.
Parameters:
  path - the relative path to insert this INavigatorItem at.



addFocusListener
public void addFocusListener(FocusListener e)(Code)
Add FocusListener to navigator.



addNavigationListener
public void addNavigationListener(INavigationListener<? super ItemT> listener)(Code)
Adds an INavigationListener to this navigator. After invoking this method, the passed listener will observe events generated this navigator. If the provided listener is already observing this navigator (==), no action is taken.
Parameters:
  listener - the listener to be added to this navigator.



addTopLevelGroup
public void addTopLevelGroup(String name, INavigatorItemFilter<? super ItemT> f)(Code)
Adds the top level group with the specified name and filter.



asContainer
public Container asContainer()(Code)
an AWT component which interacts with this document navigator



clear
public void clear()(Code)
Removes all INavigatorItems from this IDocumentNavigator.



contains
public boolean contains(ItemT doc)(Code)
Tests to see if a given document is contained in this navigator.
Parameters:
  doc - the document to test for containment. true if this contains a document "equal" (.equals(...) method)to the passed document, else false.



execute
public ReturnType execute(IDocumentNavigatorAlgo<ItemT, InType, ReturnType> algo, InType input)(Code)
Visitor pattern hook method.
Parameters:
  algo - the algorithm to run on this navigator
Parameters:
  input - the input to the algorithm



getCurrent
public ItemT getCurrent()(Code)
Returns the currently selected navigator item, or null if no navigator item is selected.



getDocumentCount
public int getDocumentCount()(Code)
Returns the number of INavigatorItems contained by this IDocumentNavigator the number of documents within this navigator.



getDocumentSelectedCount
public int getDocumentSelectedCount()(Code)
the number of documents selected.



getDocuments
public Enumeration<ItemT> getDocuments()(Code)
Returns all the IDocuments in the collection in enumeration order. an INavigatorItem enumeration of this navigator's contents.



getDocumentsInBin
public Enumeration<ItemT> getDocumentsInBin(String binName)(Code)
Returns all the IDocuments contained in the specified bin.
Parameters:
  binName - name of bin an INavigatorItem enumeration of this navigator's contents.



getFirst
public ItemT getFirst()(Code)
the INavigatorItem which comes first in the enumeration



getFocusListeners
public FocusListener[] getFocusListeners()(Code)
Gets the FocustListeners.



getGroupSelectedCount
public int getGroupSelectedCount()(Code)
the number of groups selected.



getLast
public ItemT getLast()(Code)
the INavigatorItem which comes last in the enumeration



getModelLock
public Object getModelLock()(Code)
Returns the model lock for this navigator. Only used for locking in code external to the implementing class.



getNamesOfSelectedTopLevelGroup
public java.util.Set<String> getNamesOfSelectedTopLevelGroup() throws GroupNotSelectedException(Code)
Returns the names of the top level groups that the selected items descend from. Throws a GroupNotSelectedException if no top level group is selected



getNavigatorListeners
public Collection<INavigationListener<? super ItemT>> getNavigatorListeners()(Code)
Returns a collection of all listeners registered with this navigator. the collection of nav listeners listening to this navigator.



getNext
public ItemT getNext(ItemT doc)(Code)
The following five operations impose a natural ordering on the documents in the navigator. For lists, it is order of insertion. For trees, it is depth-first enumeration. This convention supports operations setActiveNextDocument() in the global model of DrJava the INavigatorItem which comes after doc
Parameters:
  doc - the INavigatorItem of interest



getPrevious
public ItemT getPrevious(ItemT doc)(Code)
the INavigatorItem which comes before doc
Parameters:
  doc - the INavigatorItem of interest



getSelectedDocuments
public java.util.List<ItemT> getSelectedDocuments()(Code)
the documents currently selected.



getSelectedFolders
public java.util.List<File> getSelectedFolders()(Code)
the folders currently selected.



getSelectionCount
public int getSelectionCount()(Code)
the number of selected items.



isDocumentSelected
public boolean isDocumentSelected()(Code)
true if at least one document is selected.



isEmpty
public boolean isEmpty()(Code)
Returns whether this IDocumentNavigator contains any INavigatorItems. true if this navigator contains one or more documents, else false.



isGroupSelected
public boolean isGroupSelected()(Code)
true if at least one group of INavigatorItems is selected.



isNextChangeModelInitiated
public boolean isNextChangeModelInitiated()(Code)
whether the next selection change is model-initiated (true) or user-initiated (false).



isRootSelected
public boolean isRootSelected()(Code)
Returns true if the root is selected. Only runs in event thread.



isSelectedAt
public boolean isSelectedAt(int x, int y)(Code)
Returns true if the item at the x,y coordinate of the navigator pane is currently selected.
Parameters:
  x - the x coordinate of the navigator pane
Parameters:
  y - the y coordinate of the navigator pane true if the item is currently selected



isSelectedInGroup
public boolean isSelectedInGroup(ItemT i)(Code)
true if the INavigatorItem is in a selected group, ifat least one group is selected.



isTopLevelGroupSelected
public boolean isTopLevelGroupSelected()(Code)
Returns true if at least one top level group is selected, false otherwise.



refreshDocument
public void refreshDocument(ItemT doc, String path)(Code)
Resets a given INavigatorItem in the tree. This may affect the placement of the item or its display to reflect any changes made in the model.
Parameters:
  doc - the docment to be refreshed
throws:
  IllegalArgumentException - if this navigator contains no document that is equal to the passed document.



removeDocument
public ItemT removeDocument(ItemT doc)(Code)
Removes a given INavigatorItem from this navigator. Removes all INavigatorItems from this navigator that are "equal" (.equals(...)) to the passed argument. Any of the removed documents may be returned by this method.
Parameters:
  doc - the docment to be removed doc a document removed from this navigator as a result of invoking this method.
throws:
  IllegalArgumentException - if this navigator contains no document equal to the passed document.



removeFocusListener
public void removeFocusListener(FocusListener e)(Code)
Remove FocusListener from navigator.



removeNavigationListener
public void removeNavigationListener(INavigationListener<? super ItemT> listener)(Code)
Removes the given listener from observing this navigator. After invoking this method, all observers watching this navigator "equal" (==) will no longer receive observable dispatches.
Parameters:
  listener - the listener to be removed from this navigator



repaint
public void repaint()(Code)
The standard swing repaint() method.



requestSelectionUpdate
public void requestSelectionUpdate(ItemT i)(Code)
Switches the selection to the given INavigatorItem if the current selection is not already on an INavigatorItem. Since it may be possible that the currently selected item in the navigator does not correspond to an INavigatorItem, this method forces the navigator to select an item that does; specifically the one given. If the navigator already has an INavigatorItem selected, this method does nothing.
Parameters:
  i - The suggested current INavigatorItem.



selectDocumentAt
public boolean selectDocumentAt(int x, int y)(Code)
Selects the document at the x,y coordinates of the navigator pane and makes it the active document.
Parameters:
  x - the x coordinate of the navigator pane
Parameters:
  y - the y coordinate of the navigator pane



setActiveDoc
public void setActiveDoc(ItemT doc)(Code)
Sets the active document as specified.
Parameters:
  doc - the document to select



setNextChangeModelInitiated
public void setNextChangeModelInitiated(boolean b)(Code)
Marks the next selection change as model-initiated (true) or user-initiated (false; default).



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