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
Answertopia.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
Class TreeViewerEditor


java.lang.Object
  extended by 

org.eclipse.jface.viewers.ColumnViewerEditor
      extended by 
org.eclipse.jface.viewers.TreeViewerEditor

public class TreeViewerEditor
extends ColumnViewerEditor

This is an editor implementation for Tree

Since:
3.3

Field Summary
 
Fields inherited from class org.eclipse.jface.viewers. ColumnViewerEditor
DEFAULT, KEEP_EDITOR_ON_DOUBLE_CLICK, KEYBOARD_ACTIVATION, TABBING_CYCLE_IN_ROW, TABBING_HORIZONTAL, TABBING_MOVE_TO_ROW_NEIGHBOR, TABBING_VERTICAL
 
Method Summary
static void create ( TreeViewer viewer, ColumnViewerEditorActivationStrategy editorActivationStrategy, int feature)
          Create a customized editor whose activation process is customized
static void create ( TreeViewer viewer, org.eclipse.jface.viewers.SWTFocusCellManager focusCellManager, ColumnViewerEditorActivationStrategy editorActivationStrategy, int feature)
          Create a customized editor with focusable cells
  ViewerCell getFocusCell ()
           
protected  void setEditor ( Control w, Item item, int fColumnNumber)
          Position the editor inside the control
protected  void setLayoutData ( CellEditor.LayoutData layoutData)
          set the layout data for the editor
protected  void updateFocusCell ( ViewerCell focusCell, ColumnViewerEditorActivationEvent event)
           
 
Methods inherited from class org.eclipse.jface.viewers. ColumnViewerEditor
addEditorActivationListener, getViewer, processTraverseEvent, removeEditorActivationListener
 
Methods inherited from class java.lang. Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

create

public static void create(
TreeViewer viewer,
                          org.eclipse.jface.viewers.SWTFocusCellManager focusCellManager,
                          
ColumnViewerEditorActivationStrategy editorActivationStrategy,
                          int feature)
Create a customized editor with focusable cells

Parameters:
viewer - the viewer the editor is created for
focusCellManager - the cell focus manager if one needed else null
editorActivationStrategy - activation strategy to control if an editor activated
feature - bit mask controlling the editor
See Also:
create(TreeViewer, ColumnViewerEditorActivationStrategy, int)

create

public static void create(
TreeViewer viewer,
                          
ColumnViewerEditorActivationStrategy editorActivationStrategy,
                          int feature)
Create a customized editor whose activation process is customized

Parameters:
viewer - the viewer the editor is created for
editorActivationStrategy - activation strategy to control if an editor activated
feature - bit mask controlling the editor

setEditor

protected void setEditor(
Control w,
                         
Item item,
                         int fColumnNumber)
Description copied from class: ColumnViewerEditor
Position the editor inside the control

Specified by:
setEditor in class ColumnViewerEditor
Parameters:
w - the editor control
item - the item (row) in which the editor is drawn in
fColumnNumber - the column number in which the editor is shown

setLayoutData

protected void setLayoutData(
CellEditor.LayoutData layoutData)
Description copied from class: ColumnViewerEditor
set the layout data for the editor

Specified by:
setLayoutData in class ColumnViewerEditor
Parameters:
layoutData - the layout data used when editor is displayed

getFocusCell

public 
ViewerCell getFocusCell()
Overrides:
getFocusCell in class ColumnViewerEditor
Returns:
the cell currently holding the focus if no cell has the focus or the viewer implementation doesn't support null is returned

updateFocusCell

protected void updateFocusCell(
ViewerCell focusCell,
                               
ColumnViewerEditorActivationEvent event)
Specified by:
updateFocusCell in class ColumnViewerEditor
Parameters:
focusCell - updates the cell with the current input focus
event - the event requesting to update the focusCell

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