Class ViwableDialog

java.lang.Object
net.adoptopenjdk.icedteaweb.client.parts.dialogs.security.ViwableDialog

public class ViwableDialog extends Object
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 Details

  • Constructor Details

    • ViwableDialog

      public ViwableDialog()
  • Method Details

    • createJDialog

      private JDialog createJDialog()
    • setMinimumSize

      public void setMinimumSize(Dimension minimumSize)
    • pack

      public void pack()
    • setLocationRelativeTo

      public void setLocationRelativeTo(Component c)
    • 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

      public void addActionListener(ActionListener listener)
      Adds an ActionListener which 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

      public void add(SecurityDialogPanel panel, String constraints)
    • setModalityType

      public void setModalityType(Dialog.ModalityType modalityType)
    • setTitle

      public void setTitle(String title)
    • setDefaultCloseOperation

      public void setDefaultCloseOperation(int op)
    • centerDialog

      private static void centerDialog(JDialog dialog)
    • centerDialog

      public void centerDialog()
    • setResizable

      public void setResizable(boolean b)
    • addWindowListener

      public void addWindowListener(WindowAdapter adapter)
    • addWindowFocusListener

      public void addWindowFocusListener(WindowAdapter adapter)