JHotDraw 7.6

org.jhotdraw.gui
Interface EditableComponent

All Known Implementing Classes:
DefaultDrawingView

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


Design Patterns

Framework
The interfaces and classes listed below work together:
Contract: EditableComponent, JTextComponent.
Client: AbstractSelectionAction, DeleteAction, DuplicateAction, SelectAllAction, ClearSelectionAction.


Version:
$Id: EditableComponent.java 717 2010-11-21 12:30:57Z rawcoder $
Author:
Werner Randelshofer

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

SELECTION_EMPTY_PROPERTY

static final java.lang.String SELECTION_EMPTY_PROPERTY
The name of the "selectionEmpty" property.

See Also:
Constant Field Values
Method Detail

delete

void delete()
Deletes the selected components or the component at (or after) the caret position.


duplicate

void duplicate()
Duplicates the selected region.


selectAll

void selectAll()
Selects all.


clearSelection

void clearSelection()
Selects nothing.


isSelectionEmpty

boolean isSelectionEmpty()
Returns true if the selection is empty. This is a bound property.


addPropertyChangeListener

void addPropertyChangeListener(java.beans.PropertyChangeListener l)
Adds a property change listener.


removePropertyChangeListener

void removePropertyChangeListener(java.beans.PropertyChangeListener l)
Removes a property change listener.


Copyright 1996-2010 (c) by the authors and contributors of the JHotDraw project.
Some rights reserved.