com.mtp.pounder
Class KeyIdentifier

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

public class KeyIdentifier
extends Object
implements ComponentIdentifier

Finds Component's using a generated key.

Author:
Matthew Pekar

Field Summary
protected  int[] key
           
 
Constructor Summary
KeyIdentifier()
           
KeyIdentifier(Component c)
           
KeyIdentifier(String data)
           
 
Method Summary
 String asString()
          Should return String of form :.
 boolean equals(Object o)
           
protected  int[] generateKey(Component c)
           
 Component getComponent(Window w)
          Get Component we identify from given Window.
protected  int getHeight(Component c)
           
protected  int getHeight(Component c, int curHeight)
           
protected  int getIndexInParent(Component c)
           
protected  int[] getKeyForString(String s)
           
protected  Component getRoot(Component c)
           
protected  String getStringForKey(int[] key)
           
static KeyIdentifier instantiate(String s)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

key

protected int[] key
Constructor Detail

KeyIdentifier

public KeyIdentifier()

KeyIdentifier

public KeyIdentifier(Component c)

KeyIdentifier

public KeyIdentifier(String data)
Method Detail

instantiate

public static KeyIdentifier 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

getRoot

protected Component getRoot(Component c)

getHeight

protected int getHeight(Component c)

getHeight

protected int getHeight(Component c,
                        int curHeight)

getIndexInParent

protected int getIndexInParent(Component c)

generateKey

protected int[] generateKey(Component c)

getStringForKey

protected String getStringForKey(int[] key)

getKeyForString

protected int[] getKeyForString(String s)


Copyright © 2002 Matthew Pekar. All Rights Reserved.