Java Doc for ColumnViewerEditor.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.ColumnViewerEditor

All known Subclasses:   org.eclipse.jface.viewers.TreeViewerEditor,  org.eclipse.jface.viewers.TableViewerEditor,
ColumnViewerEditor
abstract public class ColumnViewerEditor (Code)
This is the base for all editor implementations of Viewers. ColumnViewer implementators have to subclass this class and implement the missing methods
since:
   3.3
See Also:   TableViewerEditor
See Also:   TreeViewerEditor


Field Summary
final public static  intDEFAULT
    
final public static  intKEYBOARD_ACTIVATION
    
final public static  intTABBING_CYCLE_IN_ROW
    
final public static  intTABBING_HORIZONTAL
    
final public static  intTABBING_MOVE_TO_ROW_NEIGHBOR
    
final public static  intTABBING_VERTICAL
    

Constructor Summary
protected  ColumnViewerEditor(ColumnViewer viewer, ColumnViewerEditorActivationStrategy editorActivationStrategy, int feature)
    

Method Summary
 voidactivateCellEditor()
    
public  voidaddEditorActivationListener(ColumnViewerEditorActivationListener listener)
     Adds the given listener, it is to be notified when the cell editor is activated or deactivated.
 voidapplyEditorValue()
     Applies the current value and deactivates the currently active cell editor.
 voidcancelEditing()
    
public  ViewerCellgetFocusCell()
    
protected  ColumnViewergetViewer()
    
 voidhandleDoubleClickEvent()
    
 voidhandleEditorActivationEvent(ColumnViewerEditorActivationEvent event)
    
 booleanisCellEditorActive()
     Return whether there is an active cell editor.
protected  voidprocessTraverseEvent(int columnIndex, ViewerRow row, TraverseEvent event)
     Process the traverse event and opens the next available editor depending of the implemented strategy.
public  voidremoveEditorActivationListener(ColumnViewerEditorActivationListener listener)
     Removes the given listener.
abstract protected  voidsetEditor(Control w, Item item, int fColumnNumber)
    
abstract protected  voidsetLayoutData(CellEditor.LayoutData layoutData)
    
abstract protected  voidupdateFocusCell(ViewerCell focusCell, ColumnViewerEditorActivationEvent event)
    

Field Detail
DEFAULT
final public static int DEFAULT(Code)
Tabbing from cell to cell is turned off



KEYBOARD_ACTIVATION
final public static int KEYBOARD_ACTIVATION(Code)
Style mask used to enable keyboard activation



TABBING_CYCLE_IN_ROW
final public static int TABBING_CYCLE_IN_ROW(Code)
Should if the end of the row is reach started from the beginning in the same row



TABBING_HORIZONTAL
final public static int TABBING_HORIZONTAL(Code)
Should tabbing from column to column with in one row be supported



TABBING_MOVE_TO_ROW_NEIGHBOR
final public static int TABBING_MOVE_TO_ROW_NEIGHBOR(Code)
Should if the end of the row is reach started from the start/end of the row below/above



TABBING_VERTICAL
final public static int TABBING_VERTICAL(Code)
Support tabbing to Cell above/below the current cell




Constructor Detail
ColumnViewerEditor
protected ColumnViewerEditor(ColumnViewer viewer, ColumnViewerEditorActivationStrategy editorActivationStrategy, int feature)(Code)

Parameters:
  viewer - the viewer this editor is attached to
Parameters:
  editorActivationStrategy - the strategy used to decide about editor activation
Parameters:
  feature - bit mask controlling the editor




Method Detail
activateCellEditor
void activateCellEditor()(Code)



addEditorActivationListener
public void addEditorActivationListener(ColumnViewerEditorActivationListener listener)(Code)
Adds the given listener, it is to be notified when the cell editor is activated or deactivated.
Parameters:
  listener - the listener to add



applyEditorValue
void applyEditorValue()(Code)
Applies the current value and deactivates the currently active cell editor.



cancelEditing
void cancelEditing()(Code)
Cancel editing



getFocusCell
public ViewerCell getFocusCell()(Code)
the cell currently holding the focus if no cell has the focus orthe viewer implementation doesn't support null isreturned



getViewer
protected ColumnViewer getViewer()(Code)
the viewer working for



handleDoubleClickEvent
void handleDoubleClickEvent()(Code)



handleEditorActivationEvent
void handleEditorActivationEvent(ColumnViewerEditorActivationEvent event)(Code)
Enable the editor by mouse down
Parameters:
  event -



isCellEditorActive
boolean isCellEditorActive()(Code)
Return whether there is an active cell editor. true if there is an active cell editor; otherwisefalse is returned.



processTraverseEvent
protected void processTraverseEvent(int columnIndex, ViewerRow row, TraverseEvent event)(Code)
Process the traverse event and opens the next available editor depending of the implemented strategy. The default implementation uses the style constants

Subclasses may overwrite to implement their custom logic to edit the next cell


Parameters:
  columnIndex - the index of the current column
Parameters:
  row - the current row - may only be used for the duration of thismethod call
Parameters:
  event - the traverse event



removeEditorActivationListener
public void removeEditorActivationListener(ColumnViewerEditorActivationListener listener)(Code)
Removes the given listener.
Parameters:
  listener - the listener to remove



setEditor
abstract protected void setEditor(Control w, Item item, int fColumnNumber)(Code)
Position the editor inside the control
Parameters:
  w - the editor control
Parameters:
  item - the item (row) in which the editor is drawn in
Parameters:
  fColumnNumber - the column number in which the editor is shown



setLayoutData
abstract protected void setLayoutData(CellEditor.LayoutData layoutData)(Code)
set the layout data for the editor
Parameters:
  layoutData - the layout data used when editor is displayed



updateFocusCell
abstract protected void updateFocusCell(ViewerCell focusCell, ColumnViewerEditorActivationEvent event)(Code)

Parameters:
  focusCell - updates the cell with the current input focus
Parameters:
  event - the event requesting to update the focusCell



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.