Class ViwableDialog
java.lang.Object
net.adoptopenjdk.icedteaweb.client.parts.dialogs.security.ViwableDialog
This class encapsulate viwable part of SecurityDialog, so it do not need to
extend it.
It is accepting commons setters for jdialog, but actually applying them right before it is created.
Obviously it do not have getters, but jdialog itself should not be keeper of any information. SecurityPanel is.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(SecurityDialogPanel panel, String constraints) voidaddActionListener(ActionListener listener) Adds anActionListenerwhich will be notified if the user makes a choice using this SecurityDialog.voidaddWindowFocusListener(WindowAdapter adapter) voidaddWindowListener(WindowAdapter adapter) voidprivate static voidcenterDialog(JDialog dialog) private JDialogvoiddispose()Called when the SecurityDialog is hidden - either because the user made a choice (Ok, Cancel, etc) or closed the windowprivate voidNotify all the listeners that the user has made a decision using this security dialog.voidpack()voidsetDefaultCloseOperation(int op) voidvoidsetMinimumSize(Dimension minimumSize) voidsetModalityType(Dialog.ModalityType modalityType) voidsetResizable(boolean b) voidvoidshow()
-
Field Details
-
jd
-
operations
-
listeners
-
-
Constructor Details
-
ViwableDialog
public ViwableDialog()
-
-
Method Details
-
createJDialog
-
setMinimumSize
-
pack
public void pack() -
setLocationRelativeTo
-
show
public void show() -
dispose
public void dispose()Called when the SecurityDialog is hidden - either because the user made a choice (Ok, Cancel, etc) or closed the window -
notifySelectionMade
private void notifySelectionMade()Notify all the listeners that the user has made a decision using this security dialog. -
addActionListener
Adds anActionListenerwhich will be notified if the user makes a choice using this SecurityDialog. The listener should use getValue() to actually get the user's response.- Parameters:
listener- another action listener to be listen to
-
add
-
setModalityType
-
setTitle
-
setDefaultCloseOperation
public void setDefaultCloseOperation(int op) -
centerDialog
-
centerDialog
public void centerDialog() -
setResizable
public void setResizable(boolean b) -
addWindowListener
-
addWindowFocusListener
-