net.sf.doolin.gui.field.list.multi
Class SelectableItem<T>

java.lang.Object
  extended by net.sf.doolin.bus.bean.Bean
      extended by net.sf.doolin.gui.field.list.multi.SelectableItem<T>
Type Parameters:
T - Type of item
All Implemented Interfaces:
Serializable, IBean

public class SelectableItem<T>
extends Bean

Item that can be selected

Author:
Damien Coraboeuf
See Also:
Serialized Form

Field Summary
static String SELECTED
          selected property
 
Constructor Summary
SelectableItem(T t)
          Constructor
SelectableItem(T t, boolean selected)
          Constructor
 
Method Summary
 T getItem()
           
 boolean isSelected()
           
 void setSelected(boolean selected)
           
 String toString()
           
 
Methods inherited from class net.sf.doolin.bus.bean.Bean
getBeanNotificationSupport, getParentBean, notify, setParentBean
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

SELECTED

public static final String SELECTED
selected property

See Also:
Constant Field Values
Constructor Detail

SelectableItem

public SelectableItem(T t)
Constructor

Parameters:
t - Associated item

SelectableItem

public SelectableItem(T t,
                      boolean selected)
Constructor

Parameters:
t - Associated item
selected - Initial selection status
Method Detail

getItem

public T getItem()
Returns:
Returns the item.

isSelected

public boolean isSelected()
Returns:
Returns the selected.

setSelected

public void setSelected(boolean selected)
Parameters:
selected - The selected to set.

toString

public String toString()
Overrides:
toString in class Object
See Also:
Object.toString()


Copyright © 2011. All Rights Reserved.