Interface IEditableText
- All Known Implementing Classes:
AbstractFilterQueryJPanel.JEditableTextAreaML,EditableTextDecorator,JEditableTextArea,JEditableTextField
public interface IEditableText
All graphical components which inherit from JTextComponent
can enhance their functionality with graphical edition options support implementing
this interface.
- Version:
- 03/01/2008
- Author:
- Pablo Piqueras Bartolomé (pablo.piqueras@iver.es)
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddUndoRedoEditListener(UndoRedoEditListener listener) Adds a listener for notification of an undo or redo operation executed.Returns an array of all theUndoRedoEditListenerregistered on this text component.intGets the limit of actions that can hold the UndoManager.voidRemoves a listener for notification of an undo or redo operation executed.voidsetUndoRedoLimitActions(int limit) Sets the limit of actions that can hold the UndoManager of this component.
-
Method Details
-
setUndoRedoLimitActions
void setUndoRedoLimitActions(int limit) Sets the limit of actions that can hold the UndoManager of this component.- Parameters:
limit- sets the limit of actions that can hold
-
getUndoRedoLimitActions
int getUndoRedoLimitActions()Gets the limit of actions that can hold the UndoManager.- Returns:
- int limit of actions that can hold
-
addUndoRedoEditListener
Adds a listener for notification of an undo or redo operation executed.- Parameters:
listener- the listener to be added- See Also:
-
removeUndoRedoEditListener
Removes a listener for notification of an undo or redo operation executed.- Parameters:
listener- the listener to be removed- See Also:
-
getUndoRedoEditListeners
UndoRedoEditListener[] getUndoRedoEditListeners()Returns an array of all theUndoRedoEditListenerregistered on this text component.- Returns:
- all of this component's
UndoRedoEditListeners or an empty array if no listeners of that kind are currently registered - See Also:
-