SRJRCFrames
v0.1.296

de.schwarzrot.ui.service
Interface SelectionPopupProvider<E extends Entity>

Type Parameters:
E - the entity of elements, that should build the selection

public interface SelectionPopupProvider<E extends Entity>

useful for Applications to offer a selection-popup as ApplicationServcie, so other applications may use that popup to create a user-based selection.

Author:
Reinhard Mantey
See Also:
SelectionPopupFactory, ApplicationServiceProvider

Method Summary
 List<E> showSelectionPopup(Window parent, String resID, int selectionMode, List<ConditionElement> initialFilter, ProgressPublisher pp, List<E> initialSelection)
          creates a Dialog with a JTable showing a list of Entitys.
 

Method Detail

showSelectionPopup

List<E> showSelectionPopup(Window parent,
                           String resID,
                           int selectionMode,
                           List<ConditionElement> initialFilter,
                           ProgressPublisher pp,
                           List<E> initialSelection)
creates a Dialog with a JTable showing a list of Entitys. Entity-elements can be selected and after pressing OK, the selected elements will be returned as List. The returned list is not bound to the application, that created the popup.

Parameters:
parent - the component, that is used as parent for modal dialogs
resID - resource id to get description and title for application-page
selectionMode - may be single or multi-selection
initialFilter - list of condition elements to build the read condition
Returns:
a new created list containing the selected Entity-elements

SRJRCFrames
v0.1.296

hosted at
Find SRJRCFrames at SourceForge.net. Fast, secure and free:
           Open Source Software download
Submit a bug or request a feature

SRJRCFrames is published according to the GNU General Public License
Copyright 2005-2012 Reinhard Mantey - some rights reserved.