Class SetValueHandler
- java.lang.Object
-
- net.adoptopenjdk.icedteaweb.client.parts.dialogs.security.SetValueHandler
-
- All Implemented Interfaces:
java.awt.event.ActionListener,java.util.EventListener
public class SetValueHandler extends java.lang.Object implements java.awt.event.ActionListenerCreates a handler that sets a dialog's value and then disposes it when activated
-
-
Field Summary
Fields Modifier and Type Field Description private SecurityDialogdialogprivate DialogResultreturnValue
-
Constructor Summary
Constructors Modifier Constructor Description privateSetValueHandler(SecurityDialog dialog, DialogResult returnValue)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidactionPerformed(java.awt.event.ActionEvent e)static java.awt.event.ActionListenercreateSetValueListener(SecurityDialog dialog, DialogResult returnValue)Create an ActionListener suitable for use with buttons.
-
-
-
Field Detail
-
returnValue
private final DialogResult returnValue
-
dialog
private final SecurityDialog dialog
-
-
Constructor Detail
-
SetValueHandler
private SetValueHandler(SecurityDialog dialog, DialogResult returnValue)
-
-
Method Detail
-
createSetValueListener
public static java.awt.event.ActionListener createSetValueListener(SecurityDialog dialog, DialogResult returnValue)
Create an ActionListener suitable for use with buttons. When thisActionListeneris invoked, it will set the value of theSecurityDialogand then disposed.- Parameters:
dialog- dialog responsible for actual operationreturnValue- may contain also information about default, preselected button- Returns:
- the ActionListener instance.
-
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent e)
- Specified by:
actionPerformedin interfacejava.awt.event.ActionListener
-
-