public class ItemIdentifier extends Object implements Serializable
| Constructor and Description |
|---|
ItemIdentifier(int index)
Creates an index-based
ItemIdentifier. |
ItemIdentifier(String text)
Creates an item with the given text.
|
ItemIdentifier(String text,
int index)
Creates an
ItemIdentifier with the specified text and index. |
public ItemIdentifier(String text, int index)
ItemIdentifier with the specified text and index.
new ItemIdentifier("MyText", 2) refers to the 3rd item with the text "MyText".text - The text of the item.index - The index of the item starting with 0.
public ItemIdentifier(int index)
ItemIdentifier.index - The absolute index of the item.
public ItemIdentifier(String text)
text - The text of the item.
public int getIndex()
-1 if no index is set.
public String getText()
public boolean isEmpty()
Copyright 2009-2012 Micro Focus. All Rights Reserved.