org.springframework.richclient.selection.dialog
Class ListSelectionDialog

java.lang.Object
  extended by org.springframework.richclient.application.support.ApplicationServicesAccessor
      extended by org.springframework.richclient.dialog.ApplicationDialog
          extended by org.springframework.richclient.selection.dialog.AbstractSelectionDialog
              extended by org.springframework.richclient.selection.dialog.ListSelectionDialog
All Implemented Interfaces:
Guarded, TitleConfigurable
Direct Known Subclasses:
FilterListSelectionDialog

public class ListSelectionDialog
extends AbstractSelectionDialog

A ListSelectionDialog can be used to select an item from a list.

Author:
Peter De Bruycker

Field Summary
 
Fields inherited from class org.springframework.richclient.dialog.ApplicationDialog
DEFAULT_CANCEL_COMMAND_ID, DEFAULT_FINISH_COMMAND_ID, DEFAULT_FINISH_SUCCESS_MESSAGE_KEY, DEFAULT_FINISH_SUCCESS_TITLE_KEY, logger, SUCCESS_FINISH_MESSAGE_KEY, SUCCESS_FINISH_TITLE_KEY
 
Constructor Summary
ListSelectionDialog(String title, List items)
           
ListSelectionDialog(String title, Window parent, ca.odell.glazedlists.EventList items)
           
ListSelectionDialog(String title, Window parent, List items)
           
 
Method Summary
protected  JComponent createSelectionComponent()
           
protected  JList getList()
           
protected  Object getSelectedObject()
           
 void setRenderer(ListCellRenderer renderer)
           
 
Methods inherited from class org.springframework.richclient.selection.dialog.AbstractSelectionDialog
createDialogContentPane, onAboutToShow, onFinish, onSelect, setDescription, setOnAboutToShow, setOnSelectAction
 
Methods inherited from class org.springframework.richclient.dialog.ApplicationDialog
addActionKeyBinding, addActionKeyBinding, addDialogComponents, attachListeners, componentsChanged, createButtonBar, createDialog, dispose, disposeDialogContentPane, getActionMap, getCallingCommand, getCancelCommand, getCancelCommandId, getCommandGroupMembers, getDialog, getDialogContentPane, getDisplayFinishSuccessMessage, getFinishCommand, getFinishCommandId, getFinishSecurityControllerId, getFinishSuccessMessage, getFinishSuccessMessageArguments, getFinishSuccessTitle, getFinishSuccessTitleArguments, getInputMap, getLocation, getLocationRelativeTo, getParentComponent, getParentWindow, getPreferredSize, getTitle, getWindowForComponent, hide, init, isControlCreated, isEnabled, isShowing, onCancel, onInitialized, onWindowActivated, onWindowClosing, onWindowGainedFocus, onWindowLostFocus, registerCancelCommandAsDefault, registerDefaultCommand, registerDefaultCommand, setCallingCommand, setCloseAction, setDefaultEnabled, setDisplayFinishSuccessMessage, setEnabled, setFinishEnabled, setLocation, setLocationRelativeTo, setModal, setParentComponent, setPreferredSize, setResizable, setTitle, showDialog, showFinishSuccessMessageDialog
 
Methods inherited from class org.springframework.richclient.application.support.ApplicationServicesAccessor
getActiveWindow, getApplication, getApplicationContext, getApplicationName, getApplicationServices, getCommandConfigurer, getComponentFactory, getConversionService, getIconSource, getImageSource, getMessage, getMessage, getMessage, getMessage, getMessages, getMessageSource, getObjectConfigurer, getService
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ListSelectionDialog

public ListSelectionDialog(String title,
                           List items)

ListSelectionDialog

public ListSelectionDialog(String title,
                           Window parent,
                           List items)

ListSelectionDialog

public ListSelectionDialog(String title,
                           Window parent,
                           ca.odell.glazedlists.EventList items)
Method Detail

setRenderer

public void setRenderer(ListCellRenderer renderer)

createSelectionComponent

protected JComponent createSelectionComponent()
Specified by:
createSelectionComponent in class AbstractSelectionDialog

getSelectedObject

protected Object getSelectedObject()
Specified by:
getSelectedObject in class AbstractSelectionDialog

getList

protected final JList getList()


Copyright © 2004-2008 The Spring Framework. All Rights Reserved.