Java Doc for Registers.java in  » Swing-Library » jEdit » org » gjt » sp » jedit » 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 » Swing Library » jEdit » org.gjt.sp.jedit 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.gjt.sp.jedit.Registers

Registers
public class Registers (Code)
jEdit's registers are an extension of the clipboard metaphor.

A Registers.Register is string of text indexed by a single character. Typically the text is taken from selected buffer text and the index character is a keyboard character selected by the user.

This class defines a number of static methods that give each register the properties of a virtual clipboard.

Two classes implement the Registers.Register interface. A Registers.ClipboardRegister is tied to the contents of the system clipboard. jEdit assigns a Registers.ClipboardRegister to the register indexed under the character $. A Registers.StringRegister is created for registers assigned by the user. In addition, jEdit assigns % to the last text segment selected in the text area. On Windows this is a Registers.StringRegister , on Unix under Java 2 version 1.4, a Registers.ClipboardRegister .
author:
   Slava Pestov
author:
   John Gellene (API documentation)
version:
   $Id: Registers.java 7367 2006-10-08 21:08:04Z kpouer $


Inner Class :public interface Register
Inner Class :public static class ClipboardRegister implements Register
Inner Class :public static class StringRegister implements Register



Method Summary
public static  voidappend(TextArea textArea, char register)
     Appends the text selected in the text area to the specified register, with a newline between the old and new text.
public static  voidappend(TextArea textArea, char register, String separator)
     Appends the text selected in the text area to the specified register.
public static  voidappend(TextArea textArea, char register, String separator, boolean cut)
     Appends the text selected in the text area to the specified register.
public static  voidclearRegister(char name)
     Sets the value of the specified register to null.
public static  voidcopy(TextArea textArea, char register)
     Copies the text selected in the text area into the specified register.
public static  voidcut(TextArea textArea, char register)
     Copies the text selected in the text area into the specified register, and then removes it from the buffer.
protected static  voiddebugListDataFlavors(Transferable transferable)
    
public static  RegistergetRegister(char name)
     Returns the specified register.
public static  StringgetRegisterNameString()
     Returns a string of all defined registers, used by the status bar (eg, "a b $ % ^").
public static  StringgetRegisterStatusPrompt(String action)
     Returns the status prompt for the given register action.
public static  Register[]getRegisters()
     Returns an array of all available registers.
public static  booleanisLoading()
    
public static  voidpaste(TextArea textArea, char register)
     Insets the contents of the specified register into the text area.
public static  voidpaste(TextArea textArea, char register, boolean vertical)
     Inserts the contents of the specified register into the text area.
public static  voidsaveRegisters()
    
public static  voidsetListener(RegistersListener listener)
    
public static  voidsetLoading(boolean loading)
    
public static  voidsetRegister(char name, Register newRegister)
     Sets the specified register.
public static  voidsetRegister(char name, String value)
     Sets the specified register.
public static  voidsetSaver(RegisterSaver saver)
    



Method Detail
append
public static void append(TextArea textArea, char register)(Code)
Appends the text selected in the text area to the specified register, with a newline between the old and new text.
Parameters:
  textArea - The text area
Parameters:
  register - The register



append
public static void append(TextArea textArea, char register, String separator)(Code)
Appends the text selected in the text area to the specified register.
Parameters:
  textArea - The text area
Parameters:
  register - The register
Parameters:
  separator - The separator to insert between the old and new text



append
public static void append(TextArea textArea, char register, String separator, boolean cut)(Code)
Appends the text selected in the text area to the specified register.
Parameters:
  textArea - The text area
Parameters:
  register - The register
Parameters:
  separator - The text to insert between the old and new text
Parameters:
  cut - Should the current selection be removed?
since:
   jEdit 3.2pre1



clearRegister
public static void clearRegister(char name)(Code)
Sets the value of the specified register to null.
Parameters:
  name - The register name



copy
public static void copy(TextArea textArea, char register)(Code)
Copies the text selected in the text area into the specified register. This will replace the existing contents of the designated register.
Parameters:
  textArea - The text area
Parameters:
  register - The register
since:
   jEdit 2.7pre2



cut
public static void cut(TextArea textArea, char register)(Code)
Copies the text selected in the text area into the specified register, and then removes it from the buffer.
Parameters:
  textArea - The text area
Parameters:
  register - The register
since:
   jEdit 2.7pre2



debugListDataFlavors
protected static void debugListDataFlavors(Transferable transferable)(Code)



getRegister
public static Register getRegister(char name)(Code)
Returns the specified register.
Parameters:
  name - The name



getRegisterNameString
public static String getRegisterNameString()(Code)
Returns a string of all defined registers, used by the status bar (eg, "a b $ % ^").
since:
   jEdit 4.2pre2



getRegisterStatusPrompt
public static String getRegisterStatusPrompt(String action)(Code)
Returns the status prompt for the given register action. Only intended to be called from actions.xml.
since:
   jEdit 4.2pre2



getRegisters
public static Register[] getRegisters()(Code)
Returns an array of all available registers. Some of the elements of this array might be null.



isLoading
public static boolean isLoading()(Code)



paste
public static void paste(TextArea textArea, char register)(Code)
Insets the contents of the specified register into the text area.
Parameters:
  textArea - The text area
Parameters:
  register - The register
since:
   jEdit 2.7pre2



paste
public static void paste(TextArea textArea, char register, boolean vertical)(Code)
Inserts the contents of the specified register into the text area.
Parameters:
  textArea - The text area
Parameters:
  register - The register
Parameters:
  vertical - Vertical (columnar) paste
since:
   jEdit 4.1pre1



saveRegisters
public static void saveRegisters()(Code)



setListener
public static void setListener(RegistersListener listener)(Code)



setLoading
public static void setLoading(boolean loading)(Code)



setRegister
public static void setRegister(char name, Register newRegister)(Code)
Sets the specified register.
Parameters:
  name - The name
Parameters:
  newRegister - The new value



setRegister
public static void setRegister(char name, String value)(Code)
Sets the specified register.
Parameters:
  name - The name
Parameters:
  value - The new value



setSaver
public static void setSaver(RegisterSaver saver)(Code)



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.