Class Calculator_Frame

    • Constructor Detail

      • Calculator_Frame

        public Calculator_Frame()

        Creates new form Calculator_Frame

      • Calculator_Frame

        public Calculator_Frame​(@NotNull
                                net.sourceforge.uiq3.calculator.IMain owner)
        Creates new form Calculator_Frame
        Parameters:
        owner - Instance of main class
    • Method Detail

      • initPre

        private void initPre()
      • initPost

        private void initPost()
      • calculateMinimumSize

        private void calculateMinimumSize()
      • saveStatus

        public void saveStatus()
        Save Window Status
      • restoreStatus

        public void restoreStatus()
        Save Window Status
      • displayAboutBox

        public void displayAboutBox()

        Display about box.

        Specified by:
        displayAboutBox in interface net.sourceforge.uiq3.ui.IFrame
      • displayHelpIndex

        public void displayHelpIndex()

        Display about box.

        Specified by:
        displayHelpIndex in interface net.sourceforge.uiq3.ui.IFrame
      • displayPreferencesBox

        public void displayPreferencesBox()

        display preferences

        Specified by:
        displayPreferencesBox in interface net.sourceforge.uiq3.ui.IFrame
      • setCalculator

        public void setCalculator​(Desktop_Calculator Engine)
        Set the calculator engine used - needed for status related display.
        Parameters:
        Engine - calculator engine
      • getCalculatorCanvas

        @Contract(pure=true)
        public Calculator_Canvas getCalculatorCanvas()
        Get Calculator Canvas - interface needed by calculator engine.
        Specified by:
        getCalculatorCanvas in class net.sourceforge.uiq3.calculator.Frame<Calculator_Canvas>
        Returns:
        calculator canvas
      • bindCPUThread

        public void bindCPUThread​(@Nullable
                                  @Nullable Thread CPU_Thread)
        Specified by:
        bindCPUThread in interface net.sourceforge.uiq3.ui.ICalculatorCanvas
      • displayException

        public void displayException​(@NotNull
                                     @NotNull Throwable exception)
        Specified by:
        displayException in interface net.sourceforge.uiq3.ui.ICalculatorCanvas
      • setIndicators

        public void setIndicators​(boolean @NotNull [] Indicators)
        Specified by:
        setIndicators in interface net.sourceforge.uiq3.ui.ICalculatorCanvas
      • getIndicators

        public boolean @NotNull [] getIndicators()
        Specified by:
        getIndicators in interface net.sourceforge.uiq3.ui.ICalculatorCanvas
      • setOnOff

        public void setOnOff​(boolean on)
        Specified by:
        setOnOff in interface net.sourceforge.uiq3.ui.ICalculatorCanvas
      • setDisplayText

        public void setDisplayText​(int Row,
                                   short @NotNull [] Text)
        Specified by:
        setDisplayText in interface net.sourceforge.uiq3.ui.ICalculatorCanvas
      • setJavaText

        public void setJavaText​(@NotNull
                                @NotNull String Text)
        Specified by:
        setJavaText in interface net.sourceforge.uiq3.ui.ICalculatorCanvas
        Overrides:
        setJavaText in class net.sourceforge.uiq3.calculator.Frame<Calculator_Canvas>
      • toggleHelp

        public void toggleHelp()
        Specified by:
        toggleHelp in interface net.sourceforge.uiq3.ui.ICalculatorCanvas
      • setSelectedComponent

        @BeanProperty(bound=false,
                      preferred=true,
                      description="The tabbedpane\'s selected component.")
        public void setSelectedComponent​(Component c)
        Sets the selected component for this tabbedpane. This will automatically set the selectedIndex to the index corresponding to the specified component.
        Specified by:
        setSelectedComponent in interface net.sourceforge.uiq3.ui.IFrame
        Parameters:
        c - the selected Component for this TabbedPane
        Throws:
        IllegalArgumentException - if component not found in tabbed pane
      • initComponents

        private void initComponents()
        This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor.
      • Menu_File_PreferencesActionPerformed

        private void Menu_File_PreferencesActionPerformed​(ActionEvent evt)
      • Menu_Help_AboutActionPerformed

        private void Menu_Help_AboutActionPerformed​(ActionEvent evt)
      • Menu_File_QuitActionPerformed

        private void Menu_File_QuitActionPerformed​(ActionEvent evt)
      • formWindowClosing

        private void formWindowClosing​(WindowEvent evt)
      • Menu_File_OpenActionPerformed

        private void Menu_File_OpenActionPerformed​(ActionEvent evt)
      • Menu_Help_HomepageActionPerformed

        private void Menu_Help_HomepageActionPerformed​(ActionEvent evt)
      • Menu_Help_ManualsActionPerformed

        private void Menu_Help_ManualsActionPerformed​(ActionEvent evt)
      • Menu_Help_YouTubeActionPerformed

        private void Menu_Help_YouTubeActionPerformed​(ActionEvent evt)
      • Menu_Help_SourceForgeActionPerformed

        private void Menu_Help_SourceForgeActionPerformed​(ActionEvent evt)
      • Menu_Help_IndexActionPerformed

        private void Menu_Help_IndexActionPerformed​(ActionEvent evt)
      • getDisplayText

        @TestOnly
        public short @NotNull [] getDisplayText​(int Row)
        Get text currently displayed (as one java string).
        Specified by:
        getDisplayText in interface net.sourceforge.uiq3.ui.ICalculatorCanvas
        Overrides:
        getDisplayText in class net.sourceforge.uiq3.calculator.Frame<Calculator_Canvas>
        Parameters:
        Row - Display row to set
        Returns:
        text currently displayed
      • getJavaText

        @TestOnly
        @NotNull
        public @NotNull String getJavaText​(int Row)
        Get text currently displayed (as one java string).
        Specified by:
        getJavaText in interface net.sourceforge.uiq3.ui.ICalculatorCanvas
        Overrides:
        getJavaText in class net.sourceforge.uiq3.calculator.Frame<Calculator_Canvas>
        Parameters:
        Row - Display row to set
        Returns:
        text currently displayed
      • getJavaText

        @TestOnly
        @NotNull
        public @NotNull String getJavaText()
        Get text currently displayed (as one java string).
        Specified by:
        getJavaText in interface net.sourceforge.uiq3.ui.ICalculatorCanvas
        Overrides:
        getJavaText in class net.sourceforge.uiq3.calculator.Frame<Calculator_Canvas>