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
public abstract void textEditingDidBegin(TextView textView)
- Sent by textView upon entering edit mode.
public abstract void textEditingDidEnd(TextView textView)
- Sent by textView when text editing has completed.
public abstract void textWillChange(TextView textView,
Range aRange)
- Sent by textView before textView replaces the characters
defined by aRange with a different string.
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.
public abstract void attributesWillChange(TextView textView,
Range aRange)
- Sent by textView before textView changes the attributes
of characters within the range aRange.
public abstract void attributesDidChange(TextView textView,
Range aRange)
- Sent by textView after textView has changed the
attributes of characters within the range aRange.
public abstract void selectionDidChange(TextView textView)
- Sent by textView after the selection changes. Use
selectedRange() to determine the current selection range.
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
Copyright © 1997 Netscape Communications Corporation. All rights reserved
Please send any comments or corrections to ifcfeedback@netscape.com
HTML generated on 21 Oct 1997