LumiSoft.UI.Controls
Class WComboItems

java.lang.Object
  extended by LumiSoft.UI.Controls.WComboItems
All Implemented Interfaces:
java.lang.Iterable<WComboItem>

public class WComboItems
extends java.lang.Object
implements java.lang.Iterable<WComboItem>

Combobox items collection.


Method Summary
 void Add(java.lang.String text)
          Adds item to items collection.
 void Add(java.lang.String text, java.lang.Object tag)
          Adds item to items collection.
 void Clear()
          Removes all items from collection.
 boolean Contains(WComboItem item)
          Gets if collection contains specified item.
 WComboItem get(int index)
          Gets item from specified index.
 int getCount()
          Gets number of items in collection.
 int IndexOf(WComboItem item)
          Gets item index in collection or -1 if item won't belong to this collection.
 java.util.Iterator<WComboItem> iterator()
          Gets iterator.
 void Remove(WComboItem item)
          Removes specified item from collection.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

Add

public void Add(java.lang.String text)
Adds item to items collection.

Parameters:
text - Item text.

Add

public void Add(java.lang.String text,
                java.lang.Object tag)
Adds item to items collection.

Parameters:
text - Items text.
tag - Item tag.

Contains

public boolean Contains(WComboItem item)
Gets if collection contains specified item.

Parameters:
item - Item to check.
Returns:
Returns true if collection contains specified item.

IndexOf

public int IndexOf(WComboItem item)
Gets item index in collection or -1 if item won't belong to this collection.

Parameters:
item -
Returns:

Remove

public void Remove(WComboItem item)
Removes specified item from collection.

Parameters:
item -

Clear

public void Clear()
Removes all items from collection.


get

public WComboItem get(int index)
Gets item from specified index.

Parameters:
index -
Returns:

getCount

public int getCount()
Gets number of items in collection.

Returns:

iterator

public java.util.Iterator<WComboItem> iterator()
Gets iterator.

Specified by:
iterator in interface java.lang.Iterable<WComboItem>