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

All known Subclasses:   org.eclipse.jface.viewers.ColorCellEditor,
DialogCellEditor
abstract public class DialogCellEditor extends CellEditor (Code)
An abstract cell editor that uses a dialog. Dialog cell editors usually have a label control on the left and a button on the right. Pressing the button opens a dialog window (for example, a color dialog or a file dialog) to change the cell editor's value. The cell editor's value is the value of the dialog.

Subclasses may override the following methods:

  • createButton: creates the cell editor's button control
  • createContents: creates the cell editor's 'display value' control
  • updateContents: updates the cell editor's 'display value' control after its value has changed
  • openDialogBox: opens the dialog box when the end user presses the button



Field Summary
final public static  StringCELL_EDITOR_IMG_DOTS_BUTTON
     Image registry key for three dot image (value "cell_editor_dots_button_image").

Constructor Summary
public  DialogCellEditor()
    
protected  DialogCellEditor(Composite parent)
     Creates a new dialog cell editor parented under the given control.
protected  DialogCellEditor(Composite parent, int style)
     Creates a new dialog cell editor parented under the given control.

Method Summary
protected  ButtoncreateButton(Composite parent)
     Creates the button for this cell editor under the given parent control.

The default implementation of this framework method creates the button display on the right hand side of the dialog cell editor.

protected  ControlcreateContents(Composite cell)
     Creates the controls used to show the value of this cell editor.

The default implementation of this framework method creates a label widget, using the same font and background color as the parent control.

Subclasses may reimplement.

protected  ControlcreateControl(Composite parent)
    
public  voiddeactivate()
    
protected  ObjectdoGetValue()
    
protected  voiddoSetFocus()
    
protected  voiddoSetValue(Object value)
    
protected  LabelgetDefaultLabel()
     Returns the default label widget created by createContents.
abstract protected  ObjectopenDialogBox(Control cellEditorWindow)
     Opens a dialog box under the given parent control and returns the dialog's value when it closes, or null if the dialog was canceled or no selection was made in the dialog.
protected  voidupdateContents(Object value)
     Updates the controls showing the value of this cell editor.

The default implementation of this framework method just converts the passed object to a string using toString and sets this as the text of the label widget.

Subclasses may reimplement.


Field Detail
CELL_EDITOR_IMG_DOTS_BUTTON
final public static String CELL_EDITOR_IMG_DOTS_BUTTON(Code)
Image registry key for three dot image (value "cell_editor_dots_button_image").




Constructor Detail
DialogCellEditor
public DialogCellEditor()(Code)
Creates a new dialog cell editor with no control
since:
   2.1



DialogCellEditor
protected DialogCellEditor(Composite parent)(Code)
Creates a new dialog cell editor parented under the given control. The cell editor value is null initially, and has no validator.
Parameters:
  parent - the parent control



DialogCellEditor
protected DialogCellEditor(Composite parent, int style)(Code)
Creates a new dialog cell editor parented under the given control. The cell editor value is null initially, and has no validator.
Parameters:
  parent - the parent control
Parameters:
  style - the style bits
since:
   2.1




Method Detail
createButton
protected Button createButton(Composite parent)(Code)
Creates the button for this cell editor under the given parent control.

The default implementation of this framework method creates the button display on the right hand side of the dialog cell editor. Subclasses may extend or reimplement.


Parameters:
  parent - the parent control the new button control



createContents
protected Control createContents(Composite cell)(Code)
Creates the controls used to show the value of this cell editor.

The default implementation of this framework method creates a label widget, using the same font and background color as the parent control.

Subclasses may reimplement. If you reimplement this method, you should also reimplement updateContents.


Parameters:
  cell - the control for this cell editor the underlying control



createControl
protected Control createControl(Composite parent)(Code)



deactivate
public void deactivate()(Code)



doGetValue
protected Object doGetValue()(Code)



doSetFocus
protected void doSetFocus()(Code)



doSetValue
protected void doSetValue(Object value)(Code)



getDefaultLabel
protected Label getDefaultLabel()(Code)
Returns the default label widget created by createContents. the default label widget



openDialogBox
abstract protected Object openDialogBox(Control cellEditorWindow)(Code)
Opens a dialog box under the given parent control and returns the dialog's value when it closes, or null if the dialog was canceled or no selection was made in the dialog.

This framework method must be implemented by concrete subclasses. It is called when the user has pressed the button and the dialog box must pop up.


Parameters:
  cellEditorWindow - the parent control cell editor's windowso that a subclass can adjust the dialog box accordingly the selected value, or null if the dialog was canceled or no selection was made in the dialog



updateContents
protected void updateContents(Object value)(Code)
Updates the controls showing the value of this cell editor.

The default implementation of this framework method just converts the passed object to a string using toString and sets this as the text of the label widget.

Subclasses may reimplement. If you reimplement this method, you should also reimplement createContents.


Parameters:
  value - the new value of this cell editor



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.