Class SetValueHandler

  • All Implemented Interfaces:
    java.awt.event.ActionListener, java.util.EventListener

    public class SetValueHandler
    extends java.lang.Object
    implements java.awt.event.ActionListener
    Creates a handler that sets a dialog's value and then disposes it when activated
    • Method Detail

      • createSetValueListener

        public static java.awt.event.ActionListener createSetValueListener​(SecurityDialog dialog,
                                                                           DialogResult returnValue)
        Create an ActionListener suitable for use with buttons. When this ActionListener is invoked, it will set the value of the SecurityDialog and then disposed.
        Parameters:
        dialog - dialog responsible for actual operation
        returnValue - may contain also information about default, preselected button
        Returns:
        the ActionListener instance.
      • actionPerformed

        public void actionPerformed​(java.awt.event.ActionEvent e)
        Specified by:
        actionPerformed in interface java.awt.event.ActionListener