Interface TextViewOwner
All Packages Class Hierarchy This Package Previous Next Index
Interface TextViewOwner
public interface netscape.application.TextViewOwner
{
/* Methods
*/
public abstract void attributesDidChange(TextView, Range);
public abstract void attributesWillChange(TextView, Range);
public abstract void linkWasSelected(TextView, Range, String);
public abstract void selectionDidChange(TextView);
public abstract void textDidChange(TextView, Range);
public abstract void textEditingDidBegin(TextView);
public abstract void textEditingDidEnd(TextView);
public abstract void textWillChange(TextView, Range);
}
Interface implemented by objects wanting information on important TextView
events, such as when the selection has changed. An object implementing
this interface must make itself the TextView's owner using TextView's
setOwner() method.
Methods
textEditingDidBegin
public abstract void textEditingDidBegin(TextView textView)
- Sent by textView upon entering edit mode.
textEditingDidEnd
public abstract void textEditingDidEnd(TextView textView)
- Sent by textView when text editing has completed.
textWillChange
public abstract void textWillChange(TextView textView,
Range aRange)
- Sent by textView before textView replaces the characters
defined by aRange with a different string.
textDidChange
public abstract void textDidChange(TextView textView,
Range aRange)
- Sent by textView after textView has replaced a range
of characters with new characters. aRange represents the
range of new characters.
attributesWillChange
public abstract void attributesWillChange(TextView textView,
Range aRange)
- Sent by textView before textView changes the attributes
of characters within the range aRange.
attributesDidChange
public abstract void attributesDidChange(TextView textView,
Range aRange)
- Sent by textView after textView has changed the
attributes of characters within the range aRange.
selectionDidChange
public abstract void selectionDidChange(TextView textView)
- Sent by textView after the selection changes. Use
selectedRange() to determine the current selection range.
linkWasSelected
public abstract void linkWasSelected(TextView sender,
Range linkRange,
String stringURL)
- Sent by textView when the user clicks an HTML link within the
TextView. linkRange is the link's range within the TextView.
stringURL contains the link's URL, which can be relative.
All Packages Class Hierarchy This Package Previous Next Index