com.mtp.pounder
Class NameIdentifier

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

public class NameIdentifier
extends Object
implements ComponentIdentifier

Finds Component's using their name.

Author:
Matthew Pekar

Field Summary
protected  String name
           
 
Constructor Summary
NameIdentifier(String name)
           
 
Method Summary
 String asString()
          Should return String of form :.
 boolean equals(Object o)
           
protected  Component findComponentNamed(Component c, String s)
           
 Component getComponent(Window w)
          Get Component we identify from given Window.
static NameIdentifier instantiate(String s)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

name

protected String name
Constructor Detail

NameIdentifier

public NameIdentifier(String name)
Method Detail

instantiate

public static NameIdentifier instantiate(String s)

getComponent

public Component getComponent(Window w)
Description copied from interface: ComponentIdentifier
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

findComponentNamed

protected Component findComponentNamed(Component c,
                                       String s)


Copyright © 2002 Matthew Pekar. All Rights Reserved.