com.sas.swing.visuals.dataselectors.qualifiers
Class QualifiersDialog

com.sas.swing.visuals.dataselectors.qualifiers.QualifiersDialog
All Implemented Interfaces:
LayoutConstants, java.awt.event.ActionListener, java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, java.util.EventListener, javax.accessibility.Accessible, javax.swing.event.ListSelectionListener, javax.swing.event.TreeSelectionListener, javax.swing.RootPaneContainer, javax.swing.WindowConstants

public class QualifiersDialog
implements java.awt.event.ActionListener, javax.swing.event.ListSelectionListener, javax.swing.event.TreeSelectionListener

Is the Swing dialog that displays the user interface (UI) of the Qualifiers Editor.

Since:
3.1
See Also:
SwingQualifiersEditor, Serialized Form

Field Summary
 
Fields inherited from class com.sas.swing.visuals.OptionsDialog
buttons
 
Fields inherited from interface com.sas.swing.visuals.util.LayoutConstants
DOTS_BUTTON_INSETS, EMPTY_INSETS, HGAP, HMARGIN, INDENTED_BORDER, TAB_BORDER, TEXTFIELD_INSETS, VGAP, VMARGIN
 
Constructor Summary
QualifiersDialog(java.awt.Frame parent, java.lang.String title, boolean modal)
          Constructor
QualifiersDialog(java.awt.Frame parent, java.lang.String title, boolean modal, com.sas.dataselectors.qualifiers.QualifiersSelectorInterface adapter)
          Constructor
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent event)
          To handle the click on the Ok and Clear JButtons
 void adapter(com.sas.dataselectors.qualifiers.QualifiersSelectorInterface adapter)
          Sets the adapter used by the Qualifiers Editor
 void clearButtonText(java.lang.String text)
           
 void initialValues(java.util.Map values)
           
 boolean isEditOK()
           
 void itemLabel(java.lang.String label)
           
 void itemName(java.lang.String name)
           
 void itemsLabel(java.lang.String label)
           
 void itemsListHeight(int height)
           
 void itemsNameColumnLabel(java.lang.String label)
           
 void itemsValueColumnLabel(java.lang.String label)
           
 void onCancel()
          Handles the "cancel" action which usually occurs whenever the button for the CommonButtons.CANCEL_BUTTON identifier is pressed.
 void onOK()
          Handles the "ok" action.
 java.util.Map selectedValues()
           
 void skipItem(java.lang.String itemID)
           
 void valueChanged(javax.swing.event.ListSelectionEvent e)
          To handle the selection in the JTable.
 void valueChanged(javax.swing.event.TreeSelectionEvent e)
          To handle the selection of a node in the JTree.
 
Methods inherited from class com.sas.swing.visuals.OptionsDialog
addButton, createButtons, getButton, getButtonLocation, getHelpID, getMainPanel, getPanel, onApply, onClose, onHelp, processWindowEvent, setButtonLocation, setButtons, setHelpID, setPanel, setVisible, updateButtonsForPanel, wasCancelled
 

Constructor Detail

QualifiersDialog

public QualifiersDialog(java.awt.Frame parent,
                        java.lang.String title,
                        boolean modal,
                        com.sas.dataselectors.qualifiers.QualifiersSelectorInterface adapter)
Constructor

Parameters:
parent - The parent Frame
title - The title of the Qualifiers Editor
modal - to set to dialog to modal or non modal
adapter - The adapter used by the Qualifiers Editor

QualifiersDialog

public QualifiersDialog(java.awt.Frame parent,
                        java.lang.String title,
                        boolean modal)
Constructor

Parameters:
parent - The parent Frame
title - The title of the Qualifiers Editor
modal - to set to dialog to modal or non modal
Method Detail

adapter

public void adapter(com.sas.dataselectors.qualifiers.QualifiersSelectorInterface adapter)
Sets the adapter used by the Qualifiers Editor

Parameters:
adapter - The adapter used by the Qualifiers Editor

isEditOK

public boolean isEditOK()

onOK

public void onOK()
Description copied from class: OptionsDialog
Handles the "ok" action. This occurs whenever the button for the CommonButtons.OK_BUTTON identifier is pressed. This method first applies any changes by calling the onApply() method and then it hides the dialog by calling the onClose() method.

Overrides:
onOK in class OptionsDialog

onCancel

public void onCancel()
Description copied from class: OptionsDialog
Handles the "cancel" action which usually occurs whenever the button for the CommonButtons.CANCEL_BUTTON identifier is pressed. This method hides the dialog by calling the onClose() method. If this dialog hosts an instance of PanelInterface its onCancel() method will first be called.

Overrides:
onCancel in class OptionsDialog

itemLabel

public void itemLabel(java.lang.String label)

itemName

public void itemName(java.lang.String name)

itemsLabel

public void itemsLabel(java.lang.String label)

itemsNameColumnLabel

public void itemsNameColumnLabel(java.lang.String label)

itemsValueColumnLabel

public void itemsValueColumnLabel(java.lang.String label)

clearButtonText

public void clearButtonText(java.lang.String text)

skipItem

public void skipItem(java.lang.String itemID)

initialValues

public void initialValues(java.util.Map values)

selectedValues

public java.util.Map selectedValues()

itemsListHeight

public void itemsListHeight(int height)

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent event)
To handle the click on the Ok and Clear JButtons

Specified by:
actionPerformed in interface java.awt.event.ActionListener
Overrides:
actionPerformed in class OptionsDialog
See Also:
JButton, ActionListener

valueChanged

public void valueChanged(javax.swing.event.ListSelectionEvent e)
To handle the selection in the JTable.

Specified by:
valueChanged in interface javax.swing.event.ListSelectionListener
See Also:
TreeSelectionListener, JTable

valueChanged

public void valueChanged(javax.swing.event.TreeSelectionEvent e)
To handle the selection of a node in the JTree.

Specified by:
valueChanged in interface javax.swing.event.TreeSelectionListener
See Also:
TreeSelectionListener, JTree



Copyright © 2009 SAS Institute Inc. All Rights Reserved.