public interface IEditableText
All graphical components which inherit from JTextComponent
can enhance their functionality with graphical edition options support implementing
this interface.
Modifier and Type | Method and Description |
---|---|
void |
addUndoRedoEditListener(UndoRedoEditListener listener)
Adds a listener for notification of an undo or redo operation executed.
|
UndoRedoEditListener[] |
getUndoRedoEditListeners()
Returns an array of all the
UndoRedoEditListener
registered on this text component. |
int |
getUndoRedoLimitActions()
Gets the limit of actions that can hold the UndoManager.
|
void |
removeUndoRedoEditListener(UndoRedoEditListener listener)
Removes a listener for notification of an undo or redo operation executed.
|
void |
setUndoRedoLimitActions(int limit)
Sets the limit of actions that can hold the UndoManager of this component.
|
void setUndoRedoLimitActions(int limit)
limit
- sets the limit of actions that can holdint getUndoRedoLimitActions()
void addUndoRedoEditListener(UndoRedoEditListener listener)
listener
- the listener to be addedUndoRedoEditEvent
void removeUndoRedoEditListener(UndoRedoEditListener listener)
listener
- the listener to be removedUndoRedoEditEvent
UndoRedoEditListener[] getUndoRedoEditListeners()
UndoRedoEditListener
registered on this text component.UndoRedoEditListener
s
or an empty
array if no listeners of that kind are currently registeredaddUndoRedoEditListener(org.gvsig.gui.beans.editabletextcomponent.event.UndoRedoEditListener)
,
removeUndoRedoEditListener(org.gvsig.gui.beans.editabletextcomponent.event.UndoRedoEditListener)