Interface Target
All Packages Class Hierarchy This Package Previous Next Index
Interface Target
public interface netscape.application.Target
{
/* Methods
*/
public abstract void performCommand(String, Object);
}
Interface enabling a generalized object request framework. Objects
need to ask other objects to perform certain actions. It may not be
feasible, however, for the sender to know the exact message to send to the
target object at compile time. With the Target interface, the sender does
not have to know anything about the target except that it implements the
Target interface. The string command describes the action that the
target should perform, with the arbitrary datum data. For example,
when pressed, a Button needs to ask some object to perform a specific
action. Rather than subclass Button to connect it to a specific method in a
specific class, Button sends its messages to a Target instance, passing a
string command (set as appropriate) and itself as the object.
Methods
public abstract void performCommand(String command,
Object data)
- Tells the target to perform the command command, using datum
data.
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