Extension SDK 10.1.3.36.73

oracle.javatools.compare
Interface EditableContributor

All Known Implementing Classes:
TextNodeContributor

public interface EditableContributor

A CompareContributor that can be edited implements this interface.

Since:
10.0.3

Field Summary
static java.lang.String PROPERTY_EDITABLE
          Property name for whether the contributor is currently editable.
static java.lang.String PROPERTY_MODIFIED
          Property name for whether the contributor is currently modified.
 
Method Summary
 void addChangeListener(javax.swing.event.ChangeListener cl)
          Add a listener that will be notified when the content of this contributor changes.
 boolean isEditable()
          Get whether this contributor is currently editable.
 boolean isModified()
          Get whether this contributor is currently modified, i.e. has unsaved changes pending.
 void removeChangeListener(javax.swing.event.ChangeListener cl)
          Remove a previously added change listener
 

Field Detail

PROPERTY_EDITABLE

public static final java.lang.String PROPERTY_EDITABLE
Property name for whether the contributor is currently editable. Contributors should fire a propertyChangeEvent if the editable property changes.

See Also:
Constant Field Values

PROPERTY_MODIFIED

public static final java.lang.String PROPERTY_MODIFIED
Property name for whether the contributor is currently modified. Contributors should fire a propertyChangeEvent if the modified property changes.

See Also:
Constant Field Values
Method Detail

isEditable

public boolean isEditable()
Get whether this contributor is currently editable. This is to support contributors that are normally editable, but may be read-only under certain states (e.g. a checked in file.).

Returns:
true if this contributor can currently be edited.

isModified

public boolean isModified()
Get whether this contributor is currently modified, i.e. has unsaved changes pending.

Returns:
true if this contributor has unsaved changes.

addChangeListener

public void addChangeListener(javax.swing.event.ChangeListener cl)
Add a listener that will be notified when the content of this contributor changes.


removeChangeListener

public void removeChangeListener(javax.swing.event.ChangeListener cl)
Remove a previously added change listener


Extension SDK 10.1.3.36.73

 

Copyright © 1997, 2005, Oracle.All rights reserved.