|
Remote Systems v6.4.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectCellEditor
com.ibm.etools.systems.core.ui.view.SystemInheritableTextCellEditor
A cell editor that manages an inheritable text entry field. The cell editor's value is the text string itself.
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 |
public static final String copyright
protected InheritableEntryField textField
protected Text text
protected SystemInheritablePropertyData data
Constructor Detail |
public SystemInheritableTextCellEditor(Composite parent)
parent
- the parent controlMethod Detail |
public InheritableEntryField getInheritableEntryField()
public String getToggleButtonToolTipText()
public void setToggleButtonToolTipText(String toggleButtonToolTipText)
toggleButtonToolTipText
- The toggleButtonToolTipText to setpublic String getEntryFieldToolTipText()
public void setEntryFieldToolTipText(String entryFieldToolTipText)
entryFieldToolTipText
- The entryFieldToolTipText to setprotected Control createControl(Composite parent)
protected void focusLost()
protected Object doGetValue()
protected void doSetFocus()
protected void doSetValue(Object value)
TextCellEditor
implementation of
this CellEditor
framework method accepts
a SystemInheritablePropertyData data object.
value
- a SystemInheritablePropertyData objectprotected void editOccured(ModifyEvent e)
fireEditorValueChanged
.
Subclasses should call this method at appropriate times. Subclasses
may extend or reimplement.
e
- the SWT modify eventpublic LayoutData getLayoutData()
public boolean isCopyEnabled()
TextCellEditor
implementation of this
CellEditor
method returns true
if
the current selection is not empty.
public boolean isCutEnabled()
TextCellEditor
implementation of this
CellEditor
method returns true
if
the current selection is not empty.
public boolean isDeleteEnabled()
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.
public boolean isPasteEnabled()
TextCellEditor
implementation of this
CellEditor
method always returns true
.
public boolean isSaveAllEnabled()
TextCellEditor
implementation of this
CellEditor
method always returns true
.
public boolean isSelectAllEnabled()
true
if this cell editor is
able to perform the select all action.
This default implementation always returns
false
.
Subclasses may override
true
if select all is possible,
false
otherwisepublic void performCopy()
TextCellEditor
implementation of this
CellEditor
method copies the
current selection to the clipboard.
public void performCut()
TextCellEditor
implementation of this
CellEditor
method cuts the
current selection to the clipboard.
public void performDelete()
TextCellEditor
implementation of this
CellEditor
method deletes the
current selection or, if there is no selection,
the character next character from the current position.
public void performPaste()
TextCellEditor
implementation of this
CellEditor
method pastes the
the clipboard contents over the current selection.
public void performSelectAll()
TextCellEditor
implementation of this
CellEditor
method selects all of the
current text.
public void widgetDefaultSelected(SelectionEvent e)
public void widgetSelected(SelectionEvent e)
|
Remote Systems v6.4.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |