com.ibm.cics.zos.ui
Class DataSetSelectionTree

java.lang.Object
  extended by com.ibm.cics.zos.ui.DataSetSelectionTree

public class DataSetSelectionTree
extends java.lang.Object

Class was embeddeding a dataset selection tree inside some UI. Provides an instruction label, a filter (with refresh button) and a tree displaying datasets.


Constructor Summary
DataSetSelectionTree(Composite parent, boolean showOnlyPDS, boolean multiSelect)
          Constructor of selection UI which includes an instruction label, a filter (with refresh button) and a tree displaying datasets.
DataSetSelectionTree(Composite parent, java.lang.String initialFilter, boolean showOnlyPDS, boolean multiSelect)
          Constructor of selection UI which includes a instruction label, a filter (with refresh button) and a tree displaying datasets
 
Method Summary
 void addTreeSelectionListener(SelectionListener selectionListener)
          Adds a selection listener, so that users can get a call back when selection changes Note: on receiving this event getSelections will contain a sanitised version of the selection
 java.util.List<DataEntry> getSelections()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataSetSelectionTree

public DataSetSelectionTree(Composite parent,
                            boolean showOnlyPDS,
                            boolean multiSelect)
Constructor of selection UI which includes an instruction label, a filter (with refresh button) and a tree displaying datasets. Convenience constructor for when no filter is supplied. Instead the last data in history is used. If this is blank the userid of the signed in user is used.

Parameters:
parent - - the composite that the UI will be created in
showOnlyPDS - - true if only Partioned Data Sets should be shown
multiSelect - - true if multiple selection is allowed

DataSetSelectionTree

public DataSetSelectionTree(Composite parent,
                            java.lang.String initialFilter,
                            boolean showOnlyPDS,
                            boolean multiSelect)
Constructor of selection UI which includes a instruction label, a filter (with refresh button) and a tree displaying datasets

Parameters:
parent - - the composite that the UI will be created in
initialFilter - - the initial filter to be used. Note: If this is null the last data in history is used. If this is blank the userid of the signed in user is used.
showOnlyPDS - - true if only Partioned Data Sets should be shown
multiSelect - - true if multiple selection is allowed
Method Detail

getSelections

public java.util.List<DataEntry> getSelections()
Returns:
a list of the dataEntries that were selected in the dialog

addTreeSelectionListener

public void addTreeSelectionListener(SelectionListener selectionListener)
Adds a selection listener, so that users can get a call back when selection changes Note: on receiving this event getSelections will contain a sanitised version of the selection

Parameters:
selectionListener - - the listener that widgetSelected will be called on


Copyright © 2013 IBM Corp. All Rights Reserved.