com.jurismarches.vradi.ui.widgets
Class MultipleSelectionHandler<D,B extends org.nuiton.wikitty.entities.BusinessEntity,H>

java.lang.Object
  extended by com.jurismarches.vradi.ui.widgets.MultipleSelectionHandler<D,B,H>
Direct Known Subclasses:
MultipleSelectionFileHandler, RelatedFormHandler, ReplaceFormHandler

public abstract class MultipleSelectionHandler<D,B extends org.nuiton.wikitty.entities.BusinessEntity,H>
extends Object

Author:
sletellier

Field Summary
protected  Map<String,D> addedDatas
           
protected  Class<H> handlerClass
           
protected  MultipleSelectionPane<D,B> ui
           
 
Constructor Summary
MultipleSelectionHandler(MultipleSelectionPane<D,B> ui, Class<H> handlerClass)
           
 
Method Summary
abstract  void add()
           
protected  void addToList(D addedData, String data)
           
protected  void fillList(Collection<String> datas)
           
 D getAddedData(String id)
           
 Collection<D> getAddedDatas()
           
protected  B getBean()
           
 H getHandler()
           
protected  JList getList()
           
protected  DefaultListModel getListModel()
           
protected  List<String> getSelectedInList()
           
abstract  void init()
           
abstract  void openSelected(String selected)
           
abstract  void remove()
           
protected  void removeFromList(List<String> datas)
           
protected  void removeFromList(String data)
           
protected  void setBean(B bean)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ui

protected MultipleSelectionPane<D,B extends org.nuiton.wikitty.entities.BusinessEntity> ui

addedDatas

protected Map<String,D> addedDatas

handlerClass

protected Class<H> handlerClass
Constructor Detail

MultipleSelectionHandler

public MultipleSelectionHandler(MultipleSelectionPane<D,B> ui,
                                Class<H> handlerClass)
Method Detail

getHandler

public H getHandler()

getList

protected JList getList()

getListModel

protected DefaultListModel getListModel()

getBean

protected B getBean()

setBean

protected void setBean(B bean)

getAddedDatas

public Collection<D> getAddedDatas()

getAddedData

public D getAddedData(String id)

init

public abstract void init()

add

public abstract void add()

remove

public abstract void remove()

openSelected

public abstract void openSelected(String selected)

addToList

protected void addToList(D addedData,
                         String data)

removeFromList

protected void removeFromList(List<String> datas)

removeFromList

protected void removeFromList(String data)

fillList

protected void fillList(Collection<String> datas)

getSelectedInList

protected List<String> getSelectedInList()


Copyright © 2009-2011 JurisMarches. All Rights Reserved.