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


java.lang.Object
   org.eclipse.jface.viewers.CellEditor
      org.eclipse.jface.viewers.TextCellEditor

TextCellEditor
public class TextCellEditor extends CellEditor (Code)
A cell editor that manages a text entry field. The cell editor's value is the text string itself.

This class may be instantiated; it is not intended to be subclassed.



Field Summary
protected  Texttext
     The text control; initially null.

Constructor Summary
public  TextCellEditor()
     Creates a new text string cell editor with no control The cell editor value is the string itself, which is initially the empty string.
public  TextCellEditor(Composite parent)
     Creates a new text string cell editor parented under the given control. The cell editor value is the string itself, which is initially the empty string.
public  TextCellEditor(Composite parent, int style)
     Creates a new text string cell editor parented under the given control. The cell editor value is the string itself, which is initially the empty string.

Method Summary
protected  ControlcreateControl(Composite parent)
    
 booleandependsOnExternalFocusListener()
    
protected  ObjectdoGetValue()
     The TextCellEditor implementation of this CellEditor framework method returns the text string.
protected  voiddoSetFocus()
    
protected  voiddoSetValue(Object value)
     The TextCellEditor implementation of this CellEditor framework method accepts a text string (type String).
protected  voideditOccured(ModifyEvent e)
     Processes a modify event that occurred in this text cell editor. This framework method performs validation and sets the error message accordingly, and then reports a change via fireEditorValueChanged. Subclasses should call this method at appropriate times.
public  LayoutDatagetLayoutData()
     Since a text editor field is scrollable we don't set a minimumSize.
protected  voidhandleDefaultSelection(SelectionEvent event)
     Handles a default selection event from the text control by applying the editor value and deactivating this cell editor.
public  booleanisCopyEnabled()
     The TextCellEditor implementation of this CellEditor method returns true if the current selection is not empty.
public  booleanisCutEnabled()
     The TextCellEditor implementation of this CellEditor method returns true if the current selection is not empty.
public  booleanisDeleteEnabled()
     The TextCellEditor implementation of this CellEditor method returns true if there is a selection or if the caret is not positioned at the end of the text.
public  booleanisPasteEnabled()
     The TextCellEditor implementation of this CellEditor method always returns true.
public  booleanisSaveAllEnabled()
    
public  booleanisSelectAllEnabled()
     Returns true if this cell editor is able to perform the select all action.
protected  voidkeyReleaseOccured(KeyEvent keyEvent)
     Processes a key release event that occurred in this cell editor.

The TextCellEditor implementation of this framework method ignores when the RETURN key is pressed since this is handled in handleDefaultSelection. An exception is made for Ctrl+Enter for multi-line texts, since a default selection event is not sent in this case.

public  voidperformCopy()
     The TextCellEditor implementation of this CellEditor method copies the current selection to the clipboard.
public  voidperformCut()
     The TextCellEditor implementation of this CellEditor method cuts the current selection to the clipboard.
public  voidperformDelete()
     The TextCellEditor implementation of this CellEditor method deletes the current selection or, if there is no selection, the character next character from the current position.
public  voidperformPaste()
     The TextCellEditor implementation of this CellEditor method pastes the the clipboard contents over the current selection.
public  voidperformSelectAll()
     The TextCellEditor implementation of this CellEditor method selects all of the current text.

Field Detail
text
protected Text text(Code)
The text control; initially null.




Constructor Detail
TextCellEditor
public TextCellEditor()(Code)
Creates a new text string cell editor with no control The cell editor value is the string itself, which is initially the empty string. Initially, the cell editor has no cell validator.
since:
   2.1



TextCellEditor
public TextCellEditor(Composite parent)(Code)
Creates a new text string cell editor parented under the given control. The cell editor value is the string itself, which is initially the empty string. Initially, the cell editor has no cell validator.
Parameters:
  parent - the parent control



TextCellEditor
public TextCellEditor(Composite parent, int style)(Code)
Creates a new text string cell editor parented under the given control. The cell editor value is the string itself, which is initially the empty string. Initially, the cell editor has no cell validator.
Parameters:
  parent - the parent control
Parameters:
  style - the style bits
since:
   2.1




Method Detail
createControl
protected Control createControl(Composite parent)(Code)



dependsOnExternalFocusListener
boolean dependsOnExternalFocusListener()(Code)



doGetValue
protected Object doGetValue()(Code)
The TextCellEditor implementation of this CellEditor framework method returns the text string. the text string



doSetFocus
protected void doSetFocus()(Code)



doSetValue
protected void doSetValue(Object value)(Code)
The TextCellEditor implementation of this CellEditor framework method accepts a text string (type String).
Parameters:
  value - a text string (type String)



editOccured
protected void editOccured(ModifyEvent e)(Code)
Processes a modify event that occurred in this text cell editor. This framework method performs validation and sets the error message accordingly, and then reports a change via fireEditorValueChanged. Subclasses should call this method at appropriate times. Subclasses may extend or reimplement.
Parameters:
  e - the SWT modify event



getLayoutData
public LayoutData getLayoutData()(Code)
Since a text editor field is scrollable we don't set a minimumSize.



handleDefaultSelection
protected void handleDefaultSelection(SelectionEvent event)(Code)
Handles a default selection event from the text control by applying the editor value and deactivating this cell editor.
Parameters:
  event - the selection event
since:
   3.0



isCopyEnabled
public boolean isCopyEnabled()(Code)
The TextCellEditor implementation of this CellEditor method returns true if the current selection is not empty.



isCutEnabled
public boolean isCutEnabled()(Code)
The TextCellEditor implementation of this CellEditor method returns true if the current selection is not empty.



isDeleteEnabled
public boolean isDeleteEnabled()(Code)
The TextCellEditor implementation of this CellEditor method returns true if there is a selection or if the caret is not positioned at the end of the text.



isPasteEnabled
public boolean isPasteEnabled()(Code)
The TextCellEditor implementation of this CellEditor method always returns true.



isSaveAllEnabled
public boolean isSaveAllEnabled()(Code)
Check if save all is enabled true if it is



isSelectAllEnabled
public boolean isSelectAllEnabled()(Code)
Returns true if this cell editor is able to perform the select all action.

This default implementation always returns false.

Subclasses may override

true if select all is possible,false otherwise



keyReleaseOccured
protected void keyReleaseOccured(KeyEvent keyEvent)(Code)
Processes a key release event that occurred in this cell editor.

The TextCellEditor implementation of this framework method ignores when the RETURN key is pressed since this is handled in handleDefaultSelection. An exception is made for Ctrl+Enter for multi-line texts, since a default selection event is not sent in this case.


Parameters:
  keyEvent - the key event



performCopy
public void performCopy()(Code)
The TextCellEditor implementation of this CellEditor method copies the current selection to the clipboard.



performCut
public void performCut()(Code)
The TextCellEditor implementation of this CellEditor method cuts the current selection to the clipboard.



performDelete
public void performDelete()(Code)
The TextCellEditor implementation of this CellEditor method deletes the current selection or, if there is no selection, the character next character from the current position.



performPaste
public void performPaste()(Code)
The TextCellEditor implementation of this CellEditor method pastes the the clipboard contents over the current selection.



performSelectAll
public void performSelectAll()(Code)
The TextCellEditor implementation of this CellEditor method selects all of the current text.



Fields inherited from org.eclipse.jface.viewers.CellEditor
final public static String COPY(Code)(Java Doc)
final public static String CUT(Code)(Java Doc)
final public static String DELETE(Code)(Java Doc)
final public static String FIND(Code)(Java Doc)
final public static String PASTE(Code)(Java Doc)
final public static String REDO(Code)(Java Doc)
final public static String SELECT_ALL(Code)(Java Doc)
final public static String UNDO(Code)(Java Doc)

Methods inherited from org.eclipse.jface.viewers.CellEditor
public void activate()(Code)(Java Doc)
public void activate(ColumnViewerEditorActivationEvent activationEvent)(Code)(Java Doc)
public void addListener(ICellEditorListener listener)(Code)(Java Doc)
public void addPropertyChangeListener(IPropertyChangeListener listener)(Code)(Java Doc)
public void create(Composite parent)(Code)(Java Doc)
abstract protected Control createControl(Composite parent)(Code)(Java Doc)
public void deactivate()(Code)(Java Doc)
boolean dependsOnExternalFocusListener()(Code)(Java Doc)
public void dispose()(Code)(Java Doc)
abstract protected Object doGetValue()(Code)(Java Doc)
abstract protected void doSetFocus()(Code)(Java Doc)
abstract protected void doSetValue(Object value)(Code)(Java Doc)
protected void fireApplyEditorValue()(Code)(Java Doc)
protected void fireCancelEditor()(Code)(Java Doc)
protected void fireEditorValueChanged(boolean oldValidState, boolean newValidState)(Code)(Java Doc)
protected void fireEnablementChanged(String actionId)(Code)(Java Doc)
protected void focusLost()(Code)(Java Doc)
public Control getControl()(Code)(Java Doc)
public String getErrorMessage()(Code)(Java Doc)
public LayoutData getLayoutData()(Code)(Java Doc)
public int getStyle()(Code)(Java Doc)
public ICellEditorValidator getValidator()(Code)(Java Doc)
final public Object getValue()(Code)(Java Doc)
public boolean isActivated()(Code)(Java Doc)
public boolean isCopyEnabled()(Code)(Java Doc)
protected boolean isCorrect(Object value)(Code)(Java Doc)
public boolean isCutEnabled()(Code)(Java Doc)
public boolean isDeleteEnabled()(Code)(Java Doc)
public boolean isDirty()(Code)(Java Doc)
public boolean isFindEnabled()(Code)(Java Doc)
public boolean isPasteEnabled()(Code)(Java Doc)
public boolean isRedoEnabled()(Code)(Java Doc)
public boolean isSelectAllEnabled()(Code)(Java Doc)
public boolean isUndoEnabled()(Code)(Java Doc)
public boolean isValueValid()(Code)(Java Doc)
protected void keyReleaseOccured(KeyEvent keyEvent)(Code)(Java Doc)
protected void markDirty()(Code)(Java Doc)
public void performCopy()(Code)(Java Doc)
public void performCut()(Code)(Java Doc)
public void performDelete()(Code)(Java Doc)
public void performFind()(Code)(Java Doc)
public void performPaste()(Code)(Java Doc)
public void performRedo()(Code)(Java Doc)
public void performSelectAll()(Code)(Java Doc)
public void performUndo()(Code)(Java Doc)
public void removeListener(ICellEditorListener listener)(Code)(Java Doc)
public void removePropertyChangeListener(IPropertyChangeListener listener)(Code)(Java Doc)
protected void setErrorMessage(String message)(Code)(Java Doc)
public void setFocus()(Code)(Java Doc)
public void setStyle(int style)(Code)(Java Doc)
public void setValidator(ICellEditorValidator validator)(Code)(Java Doc)
final public void setValue(Object value)(Code)(Java Doc)
protected void setValueValid(boolean valid)(Code)(Java Doc)
protected void valueChanged(boolean oldValidState, boolean newValidState)(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.