net.sf.jzeno.echo.script
Class PositionFromNearestPropertyComponent

java.lang.Object
  extended by net.sf.jzeno.echo.script.AbstractIdentifier
      extended by net.sf.jzeno.echo.script.PositionFromNearestPropertyComponent
All Implemented Interfaces:
Identifier

public class PositionFromNearestPropertyComponent
extends AbstractIdentifier

Identification strategy that


Constructor Summary
PositionFromNearestPropertyComponent()
           
 
Method Summary
protected  java.lang.String escapeDouble(java.lang.String s)
           
 java.util.List getComponent(java.lang.String label)
           Retrieve the (unique) component that is identified by the given label.
 java.lang.String getLabel(Component c)
           Create a string representation (called a label) of a given component according to this identifier's strategy.
protected  java.lang.String restoreDouble(java.lang.String s)
           
 
Methods inherited from class net.sf.jzeno.echo.script.AbstractIdentifier
escape, findAllChildren, findAllChildrenOfType, findComponents, getClass, getLayout, isAssignable, restore
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PositionFromNearestPropertyComponent

public PositionFromNearestPropertyComponent()
Method Detail

getComponent

public java.util.List getComponent(java.lang.String label)
Description copied from interface: Identifier

Retrieve the (unique) component that is identified by the given label.

Should return null if it was unable to retrieve the component

Returns:

getLabel

public java.lang.String getLabel(Component c)
Description copied from interface: Identifier

Create a string representation (called a label) of a given component according to this identifier's strategy. Do not use the '|' character in the generated string, as it is used to seperate multiple labels of different identifier strategies.

This method should return null if it was unable to create a label for the given component

Returns:

escapeDouble

protected java.lang.String escapeDouble(java.lang.String s)

restoreDouble

protected java.lang.String restoreDouble(java.lang.String s)