net.sf.doolin.gui.field.list.multi
Class FieldMultiCombo<V,E>

java.lang.Object
  extended by net.sf.doolin.bus.bean.Bean
      extended by net.sf.doolin.gui.field.AbstractFieldDescriptor<V>
          extended by net.sf.doolin.gui.field.AbstractPropertyFieldDescriptor<V>
              extended by net.sf.doolin.gui.field.list.AbstractListPropertyFieldDescriptor<V,E>
                  extended by net.sf.doolin.gui.field.list.multi.FieldMultiCombo<V,E>
Type Parameters:
V - Type of object for the view
E - Type of object in the item list
All Implemented Interfaces:
Serializable, IBean, FieldDescriptor<V>

public class FieldMultiCombo<V,E>
extends AbstractListPropertyFieldDescriptor<V,E>

Field descriptor for the selection of several items in a list.

Author:
Damien Coraboeuf
See Also:
Serialized Form

Constructor Summary
FieldMultiCombo()
           
 
Method Summary
 Field<V> createField(GUIView<V> view)
          Creates a field.
 int getColumns()
           
 ActionDelegate<String> getCreationDelegate()
           
 ActionDelegate<Collection<E>> getDeleteDelegate()
           
protected  String getText(ca.odell.glazedlists.EventList<E> selectionList)
          Gets a text summary for the selected list of items
 int getTimeOut()
           
 ActionDelegate<EditableValue<E>> getUpdateDelegate()
           
 int getVisibleRows()
           
 boolean isCanClose()
           
 boolean isEditable()
           
 void setCanClose(boolean canClose)
           
 void setColumns(int columns)
           
 void setCreationDelegate(ActionDelegate<String> creationDelegate)
           
 void setDeleteDelegate(ActionDelegate<Collection<E>> deleteDelegate)
           
 void setTimeOut(int timeOut)
           
 void setUpdateDelegate(ActionDelegate<EditableValue<E>> updateDelegate)
           
 void setVisibleRows(int visibleRows)
           
 
Methods inherited from class net.sf.doolin.gui.field.list.AbstractListPropertyFieldDescriptor
createListWithNull, getActualCellRenderer, getInitialListValueModel, getItemListFactory, getLabelInfoProvider, getListModel, getRenderer, isItemListAddNull, setItemListAddNull, setItemListFactory, setLabelInfoProvider, setRenderer
 
Methods inherited from class net.sf.doolin.gui.field.AbstractPropertyFieldDescriptor
getAdapter, getProperty, getPropertyPath, setAdapter, setProperty, setPropertyPath, subscribe, subscribe
 
Methods inherited from class net.sf.doolin.gui.field.AbstractFieldDescriptor
getActionFactory, getConstraint, getDisplayStateHandler, getIconService, getName, getStyle, getTransferHandler, onInit, onShow, setActionFactory, setConstraint, setDisplayState, setDisplayStateHandler, setIconService, setName, setStyle, setTransferHandler
 
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, toString, wait, wait, wait
 

Constructor Detail

FieldMultiCombo

public FieldMultiCombo()
Method Detail

createField

public Field<V> createField(GUIView<V> view)
Description copied from interface: FieldDescriptor
Creates a field.

Parameters:
view - Owning view
Returns:
Created field

getColumns

public int getColumns()
Returns:
the columns

getCreationDelegate

public ActionDelegate<String> getCreationDelegate()

getDeleteDelegate

public ActionDelegate<Collection<E>> getDeleteDelegate()
Returns:
the deleteDelegate

getText

protected String getText(ca.odell.glazedlists.EventList<E> selectionList)
Gets a text summary for the selected list of items

Parameters:
selectionList - Selected list of items
Returns:
Text summary

getTimeOut

public int getTimeOut()
Returns:
the timeOut

getUpdateDelegate

public ActionDelegate<EditableValue<E>> getUpdateDelegate()
Returns:
the updateDelegate

getVisibleRows

public int getVisibleRows()
Returns:
the visibleRows

isCanClose

public boolean isCanClose()
Returns:
the canClose

isEditable

public boolean isEditable()

setCanClose

public void setCanClose(boolean canClose)
Parameters:
canClose - the canClose to set

setColumns

public void setColumns(int columns)
Parameters:
columns - the columns to set

setCreationDelegate

public void setCreationDelegate(ActionDelegate<String> creationDelegate)

setDeleteDelegate

public void setDeleteDelegate(ActionDelegate<Collection<E>> deleteDelegate)
Parameters:
deleteDelegate - the deleteDelegate to set

setTimeOut

public void setTimeOut(int timeOut)
Parameters:
timeOut - the timeOut to set

setUpdateDelegate

public void setUpdateDelegate(ActionDelegate<EditableValue<E>> updateDelegate)
Parameters:
updateDelegate - the updateDelegate to set

setVisibleRows

public void setVisibleRows(int visibleRows)
Parameters:
visibleRows - the visibleRows to set


Copyright © 2011. All Rights Reserved.