Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | Related Pages

ItemSelection Class Reference

A widget which can be used for selecting/deselecting (add/remove) some items. The user is presented with two lists. One with addable items and a list of added items. More...

Collaboration diagram for ItemSelection:

Collaboration graph
[legend]
List of all members.

Public Member Functions

void SetAddedList (ArrayList items)
 Sets the list of added items.
void SetAddableList (ArrayList items)
 Sets the list of addable items.
delegate string OnAddHandler (string item)
delegate bool OnRemoveHandler (string item)

Public Attributes

SelectionFrame AddedItems
SelectionFrame ItemsToAdd

Private Member Functions

internal ItemSelection (string itemName, bool keepItems, OnAddHandler addHandler, OnRemoveHandler removeHandler)
void onAddClicked (object o, EventArgs args)
void onRemoveClicked (object o, EventArgs args)

Private Attributes

OnAddHandler onAdd
OnRemoveHandler onRemove
bool _keepItems

Detailed Description

A widget which can be used for selecting/deselecting (add/remove) some items. The user is presented with two lists. One with addable items and a list of added items.


Constructor & Destructor Documentation

internal ItemSelection::ItemSelection string  itemName,
bool  keepItems,
OnAddHandler  addHandler,
OnRemoveHandler  removeHandler
[inline, private]
 

Parameters:
itemName The typename of the item to add / remove (select/deselect).
keepItems If true items deleted from AddedItems list will be moved to ItemsToAdd list.
addHandler The method to be called when an item is added.
removeHandler The method to be called when an item is removed.


Member Function Documentation

void ItemSelection::onAddClicked object  o,
EventArgs  args
[inline, private]
 

delegate string ItemSelection::OnAddHandler string  item  ) 
 

void ItemSelection::onRemoveClicked object  o,
EventArgs  args
[inline, private]
 

delegate bool ItemSelection::OnRemoveHandler string  item  ) 
 

void ItemSelection::SetAddableList ArrayList  items  )  [inline]
 

Sets the list of addable items.

void ItemSelection::SetAddedList ArrayList  items  )  [inline]
 

Sets the list of added items.


Member Data Documentation

bool ItemSelection::_keepItems [private]
 

SelectionFrame ItemSelection::AddedItems
 

SelectionFrame ItemSelection::ItemsToAdd
 

OnAddHandler ItemSelection::onAdd [private]
 

OnRemoveHandler ItemSelection::onRemove [private]
 


The documentation for this class was generated from the following file: SourceForge.net Logo