Class AbstractSwingGUI

  • Direct Known Subclasses:

    public abstract class AbstractSwingGUI
    extends java.lang.Object
    • Field Detail

      • openBISService

        protected final IOpenbisServiceFacade openBISService
        The interface for communicating with DSS
      • shutdownHook

        protected final java.lang.Thread shutdownHook
    • Constructor Detail

      • AbstractSwingGUI

        protected AbstractSwingGUI​(DssCommunicationState communicationState)
        Instantiates the Swing GUI with the necessary information to communicate with CIFEX.
        communicationState -
    • Method Detail

      • getWindowFrame

        protected javax.swing.JFrame getWindowFrame()
        The main window
      • logout

        protected void logout()
        Checks if it is safe to quit, if not, asks the user before doing so.
      • getTitle

        protected abstract java.lang.String getTitle()
      • cancel

        protected abstract boolean cancel()
      • notifyUserOfThrowable

        public static java.lang.String notifyUserOfThrowable​(java.awt.Frame parentFrame,
                                                             java.lang.String fileName,
                                                             java.lang.String operationName,
                                                             java.lang.Throwable throwable,
                                                             java.lang.String lastExceptionMessageOrNull)
        Notifies the user of the given throwable, if the error message is different from lastExceptionMessageOrNull.
      • setLookAndFeelToNative

        protected static void setLookAndFeelToNative()
      • setLookAndFeelToMetal

        protected static void setLookAndFeelToMetal()