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


edu.rice.cs.drjava.model.RegionManager

RegionManager
public interface RegionManager (Code)
Interface for a region manager.
version:
   $Id$




Method Summary
public  voidaddListener(RegionManagerListener<R> listener)
     Adds a listener to the notifier.
public  voidaddRegion(R region)
     Add the supplied DocumentRegion to the manager.
public  voidchangeRegion(R region, Lambda<Object, R> cmd)
     Apply the given command to the specified region to change it.
Parameters:
  region - the region to find and change
Parameters:
  cmd - command that mutates the region.
public  voidclearRegions()
     Tells the manager to remove all regions.
public  RgetCurrentRegion()
    
public  intgetCurrentRegionIndex()
    
public  intgetMaximumSize()
     the maximum number of regions that can be stored in this manager.
public  RgetRegionAt(OpenDefinitionsDocument odd, int offset)
     Returns the region in this manager at the given offset, or null if one does not exist.
public  RgetRegionOverlapping(OpenDefinitionsDocument odd, int startOffset, int endOffset)
     Get the DocumentRegion that is stored in this RegionsTreePanel overlapping the area for the given document, or null if it doesn't exist.
public  Vector<R>getRegions()
     a Vector containing the DocumentRegion objects in this mangager.
public  booleanisCurrentRegionFirst()
     true if the current region is the first in the list, i.e.
public  booleanisCurrentRegionLast()
     true if the current region is the last in the list, i.e.
public  RnextCurrentRegion()
     Make the region that is more recent the current region.
public  RprevCurrentRegion()
     Make the region that is less recent the current region.
public  voidremoveAllListeners()
     Removes all listeners from this notifier.
public  voidremoveListener(RegionManagerListener<R> listener)
     Removes a listener from the notifier.
public  voidremoveRegion(R region)
     Remove the given DocumentRegion from the manager.
public  voidsetCurrentRegion(R region)
     Set the current region.
public  voidsetMaximumSize(int size)
     Set the maximum number of regions that can be stored in this manager.



Method Detail
addListener
public void addListener(RegionManagerListener<R> listener)(Code)
Adds a listener to the notifier.
Parameters:
  listener - a listener that reacts on events



addRegion
public void addRegion(R region)(Code)
Add the supplied DocumentRegion to the manager.
Parameters:
  region - the DocumentRegion to be inserted into the manager



changeRegion
public void changeRegion(R region, Lambda<Object, R> cmd)(Code)
Apply the given command to the specified region to change it.
Parameters:
  region - the region to find and change
Parameters:
  cmd - command that mutates the region.



clearRegions
public void clearRegions()(Code)
Tells the manager to remove all regions.



getCurrentRegion
public R getCurrentRegion()(Code)
the current region or null if none selected



getCurrentRegionIndex
public int getCurrentRegionIndex()(Code)
the index of the current region or -1 if none selected



getMaximumSize
public int getMaximumSize()(Code)
the maximum number of regions that can be stored in this manager.



getRegionAt
public R getRegionAt(OpenDefinitionsDocument odd, int offset)(Code)
Returns the region in this manager at the given offset, or null if one does not exist.
Parameters:
  odd - the document
Parameters:
  offset - the offset in the document the DocumentRegion at the given line number, or null if it does not exist.



getRegionOverlapping
public R getRegionOverlapping(OpenDefinitionsDocument odd, int startOffset, int endOffset)(Code)
Get the DocumentRegion that is stored in this RegionsTreePanel overlapping the area for the given document, or null if it doesn't exist.
Parameters:
  odd - the document
Parameters:
  startOffset - the start offset
Parameters:
  endOffset - the end offset the DocumentRegion or null



getRegions
public Vector<R> getRegions()(Code)
a Vector containing the DocumentRegion objects in this mangager.



isCurrentRegionFirst
public boolean isCurrentRegionFirst()(Code)
true if the current region is the first in the list, i.e. prevCurrentRegion is without effect



isCurrentRegionLast
public boolean isCurrentRegionLast()(Code)
true if the current region is the last in the list, i.e. nextCurrentRegion is without effect



nextCurrentRegion
public R nextCurrentRegion()(Code)
Make the region that is more recent the current region. new current region



prevCurrentRegion
public R prevCurrentRegion()(Code)
Make the region that is less recent the current region. new current region



removeAllListeners
public void removeAllListeners()(Code)
Removes all listeners from this notifier.



removeListener
public void removeListener(RegionManagerListener<R> listener)(Code)
Removes a listener from the notifier.
Parameters:
  listener - a listener that reacts on events



removeRegion
public void removeRegion(R region)(Code)
Remove the given DocumentRegion from the manager.
Parameters:
  region - the DocumentRegion to be removed.



setCurrentRegion
public void setCurrentRegion(R region)(Code)
Set the current region.
Parameters:
  region - new current region



setMaximumSize
public void setMaximumSize(int size)(Code)
Set the maximum number of regions that can be stored in this manager. If the maximum capacity has been reached and another region is added, the region at the end farther away from the insertion location will be discarded.
Parameters:
  size - maximum number of regions, or 0 if no maximum



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