public interface EditableComponent
FIXME - Investigate if we can replace this interface by querying the TransferHandler of a component and retrieve its cut/copy/paste actions. See http://java.sun.com/docs/books/tutorial/uiswing/dnd/intro.html#cut
Framework
The interfaces and classes listed below work together:
Contract: EditableComponent
, JTextComponent
.
Client: AbstractSelectionAction
,
DeleteAction
,
DuplicateAction
,
SelectAllAction
,
ClearSelectionAction
.
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
SELECTION_EMPTY_PROPERTY
The name of the "selectionEmpty" property.
|
Modifier and Type | Method and Description |
---|---|
void |
addPropertyChangeListener(java.beans.PropertyChangeListener l)
Adds a property change listener.
|
void |
clearSelection()
Selects nothing.
|
void |
delete()
Deletes the selected components or the component at (or after) the
caret position.
|
void |
duplicate()
Duplicates the selected region.
|
boolean |
isSelectionEmpty()
Returns true if the selection is empty.
|
void |
removePropertyChangeListener(java.beans.PropertyChangeListener l)
Removes a property change listener.
|
void |
selectAll()
Selects all.
|
static final java.lang.String SELECTION_EMPTY_PROPERTY
void delete()
void duplicate()
void selectAll()
void clearSelection()
boolean isSelectionEmpty()
void addPropertyChangeListener(java.beans.PropertyChangeListener l)
void removePropertyChangeListener(java.beans.PropertyChangeListener l)