Remote Systems
v6.4.1

com.ibm.etools.systems.core.ui.view
Class SystemInheritableTextCellEditor

java.lang.Object
  extended byCellEditor
      extended bycom.ibm.etools.systems.core.ui.view.SystemInheritableTextCellEditor

public class SystemInheritableTextCellEditor
extends CellEditor

A cell editor that manages an inheritable text entry field. The cell editor's value is the text string itself.

See Also:
Serialized Form

Field Summary
static String copyright
           
protected  SystemInheritablePropertyData data
           
protected  Text text
           
protected  InheritableEntryField textField
           
 
Constructor Summary
SystemInheritableTextCellEditor(Composite parent)
          Creates a new text string cell editor parented under the given control.
 
Method Summary
protected  Control createControl(Composite parent)
           
protected  Object doGetValue()
          Return current data.
protected  void doSetFocus()
           
protected  void doSetValue(Object value)
          The TextCellEditor implementation of this CellEditor framework method accepts a SystemInheritablePropertyData data object.
protected  void editOccured(ModifyEvent e)
          Processes a modify event that occurred in this text cell editor.
protected  void focusLost()
           
 String getEntryFieldToolTipText()
          Gets the entryFieldToolTipText
 InheritableEntryField getInheritableEntryField()
           
 LayoutData getLayoutData()
          Since a text editor field is scrollable we don't set a minimumSize.
 String getToggleButtonToolTipText()
          Gets the toggleButtonToolTipText
 boolean isCopyEnabled()
          The TextCellEditor implementation of this CellEditor method returns true if the current selection is not empty.
 boolean isCutEnabled()
          The TextCellEditor implementation of this CellEditor method returns true if the current selection is not empty.
 boolean isDeleteEnabled()
          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.
 boolean isPasteEnabled()
          The TextCellEditor implementation of this CellEditor method always returns true.
 boolean isSaveAllEnabled()
          The TextCellEditor implementation of this CellEditor method always returns true.
 boolean isSelectAllEnabled()
          Returns true if this cell editor is able to perform the select all action.
 void performCopy()
          The TextCellEditor implementation of this CellEditor method copies the current selection to the clipboard.
 void performCut()
          The TextCellEditor implementation of this CellEditor method cuts the current selection to the clipboard.
 void performDelete()
          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.
 void performPaste()
          The TextCellEditor implementation of this CellEditor method pastes the the clipboard contents over the current selection.
 void performSelectAll()
          The TextCellEditor implementation of this CellEditor method selects all of the current text.
 void setEntryFieldToolTipText(String entryFieldToolTipText)
          Sets the entryFieldToolTipText
 void setToggleButtonToolTipText(String toggleButtonToolTipText)
          Sets the toggleButtonToolTipText
 void widgetDefaultSelected(SelectionEvent e)
           
 void widgetSelected(SelectionEvent e)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

copyright

public static final String copyright
See Also:
Constant Field Values

textField

protected InheritableEntryField textField

text

protected Text text

data

protected SystemInheritablePropertyData data
Constructor Detail

SystemInheritableTextCellEditor

public SystemInheritableTextCellEditor(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. Initially, the cell editor has no cell validator.

Parameters:
parent - the parent control
Method Detail

getInheritableEntryField

public InheritableEntryField getInheritableEntryField()

getToggleButtonToolTipText

public String getToggleButtonToolTipText()
Gets the toggleButtonToolTipText

Returns:
Returns a String

setToggleButtonToolTipText

public void setToggleButtonToolTipText(String toggleButtonToolTipText)
Sets the toggleButtonToolTipText

Parameters:
toggleButtonToolTipText - The toggleButtonToolTipText to set

getEntryFieldToolTipText

public String getEntryFieldToolTipText()
Gets the entryFieldToolTipText

Returns:
Returns a String

setEntryFieldToolTipText

public void setEntryFieldToolTipText(String entryFieldToolTipText)
Sets the entryFieldToolTipText

Parameters:
entryFieldToolTipText - The entryFieldToolTipText to set

createControl

protected Control createControl(Composite parent)

focusLost

protected void focusLost()

doGetValue

protected Object doGetValue()
Return current data.

Returns:
the SystemInheritablePropertyData data object

doSetFocus

protected void doSetFocus()

doSetValue

protected void doSetValue(Object value)
The TextCellEditor implementation of this CellEditor framework method accepts a SystemInheritablePropertyData data object.

Parameters:
value - a SystemInheritablePropertyData object

editOccured

protected void editOccured(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. Subclasses may extend or reimplement.

Parameters:
e - the SWT modify event

getLayoutData

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


isCopyEnabled

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


isCutEnabled

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


isDeleteEnabled

public boolean isDeleteEnabled()
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()
The TextCellEditor implementation of this CellEditor method always returns true.


isSaveAllEnabled

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


isSelectAllEnabled

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

This default implementation always returns false.

Subclasses may override

Returns:
true if select all is possible, false otherwise

performCopy

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


performCut

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


performDelete

public void performDelete()
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()
The TextCellEditor implementation of this CellEditor method pastes the the clipboard contents over the current selection.


performSelectAll

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


widgetDefaultSelected

public void widgetDefaultSelected(SelectionEvent e)

widgetSelected

public void widgetSelected(SelectionEvent e)

Remote Systems
v6.4.1

Copyright © 2005 IBM Corp. All Rights Reserved.

Note: This documentation is for part of an interim API that is still under development and expected to change significantly before reaching stability. It is being made available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.