Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 


Eclipse Platform
Release 3.5

org.eclipse.jface.viewers
Interface ICellEditorListener


public interface ICellEditorListener

A listener which is notified of significant events in the life of a cell editor.

This interface should be implemented by classes that wish to react to cell editor activity.

Note: the cell editor is not passed as a parameter to any of these methods; so the assumption is that the listener knows which cell editor is talking to it.


Method Summary
 void applyEditorValue ()
          Notifies that the end user has requested applying a value.
 void cancelEditor ()
          Notifies that the end user has canceled editing.
 void editorValueChanged (boolean oldValidState, boolean newValidState)
          Notifies that the end user is changing the value in the cell editor.
 

Method Detail

applyEditorValue

void applyEditorValue()
Notifies that the end user has requested applying a value. All cell editors send this notification.

The normal reaction is to update the model with the current cell editor value. However, if the value is not valid, it should not be applied. A typical text-based cell editor would send this message when the end user hits Return, whereas other editors would send it whenever their value changes.


cancelEditor

void cancelEditor()
Notifies that the end user has canceled editing. All cell editors send this notification. A listener should not update the model based on this notification; see applyEditorValue.


editorValueChanged

void editorValueChanged(boolean oldValidState,
                        boolean newValidState)
Notifies that the end user is changing the value in the cell editor. This notification is normally sent only by text-based editors in response to a keystroke, so that the listener may show an error message reflecting the current valid state. This notification is sent while the value is being actively edited, before the value is applied or canceled. A listener should not update the model based on this notification; see applyEditorValue.

If the newValidState parameter is true, the new value may be retrieved by calling ICellEditor.getValue on the appropriate cell editor.

Parameters:
oldValidState - the valid state before the end user changed the value
newValidState - the current valid state

Eclipse Platform
Release 3.5

Guidelines for using Eclipse APIs.

Copyright (c) Eclipse contributors and others 2000, 2008. All rights reserved.


 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire