com.mtp.pounder
Class WindowIdentifier

java.lang.Object
  |
  +--com.mtp.pounder.WindowIdentifier
All Implemented Interfaces:
ComponentIdentifier

public class WindowIdentifier
extends Object
implements ComponentIdentifier

When an event is detected in a Window, it should just use itself as the Component.

Author:
Matthew Pekar

Constructor Summary
WindowIdentifier()
           
 
Method Summary
 String asString()
          Should return String of form :.
 boolean equals(Object o)
           
 Component getComponent(Window w)
          Get Component we identify from given Window.
static ComponentIdentifier instantiate(String s)
          Instantiate a new instance from String that was given from asString().
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

WindowIdentifier

public WindowIdentifier()
Method Detail

instantiate

public static ComponentIdentifier instantiate(String s)
Instantiate a new instance from String that was given from asString(). Although I can't make it required, it is!


getComponent

public Component getComponent(Window w)
Get Component we identify from given Window.

Specified by:
getComponent in interface ComponentIdentifier

asString

public String asString()
Description copied from interface: ComponentIdentifier
Should return String of form :.

Specified by:
asString in interface ComponentIdentifier

toString

public String toString()
Overrides:
toString in class Object

equals

public boolean equals(Object o)
Overrides:
equals in class Object


Copyright © 2002 Matthew Pekar. All Rights Reserved.