|
JHotDraw 7.5.1 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
@NotNull public interface EditableComponent
This interface must be implemented by components which are editable.
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
.
Field Summary | |
---|---|
static java.lang.String |
SELECTION_EMPTY_PROPERTY
The name of the "selectionEmpty" property. |
Method Summary | |
---|---|
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. |
Field Detail |
---|
static final java.lang.String SELECTION_EMPTY_PROPERTY
Method Detail |
---|
void delete()
void duplicate()
void selectAll()
void clearSelection()
boolean isSelectionEmpty()
void addPropertyChangeListener(java.beans.PropertyChangeListener l)
void removePropertyChangeListener(java.beans.PropertyChangeListener l)
|
Copyright 1996-2010 (c) by the authors and contributors of the JHotDraw project. Some rights reserved. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |