lazyj.widgets
Interface Option<K,V>

Type Parameters:
K - key type (usually Integer or String)
V - value type (usually String)

public interface Option<K,V>

Each option is identified by a key (unique or not) and a value that is to be displayed. The key is what will be sent to the server. The optional level will be used to indent options, for example when you display a tree (categories...).

Since:
Nov 26, 2007 (1.0.4)
Author:
costing

Method Summary
 K getKey()
          Get the identifier for this entry
 int getLevel()
          Indentation level (>= 0)
 V getValue()
          Get the value to be displayed
 

Method Detail

getKey

K getKey()
Get the identifier for this entry

Returns:
id

getValue

V getValue()
Get the value to be displayed

Returns:
value

getLevel

int getLevel()
Indentation level (>= 0)

Returns:
level