Class Calculator_Frame

    • Field Detail

      • logger

        @NotNull
        private static final Logger logger
        class logger instance
      • TAG

        @NotNull
        private static final @NotNull String TAG
        class logger tag.
      • HP45_Bundle

        private static final ResourceBundle HP45_Bundle
        Resource Bundle used for I18N
      • Calculator_Bundle

        private static final ResourceBundle Calculator_Bundle
      • owner

        @Nullable
        private final net.sourceforge.uiq3.calculator.IMain owner
      • desktopCalculator

        private net.sourceforge.uiq3.hp45.Desktop_Calculator desktopCalculator
        Calculator to be displayed
      • aboutDialog

        @Nullable
        private About_Dialog aboutDialog
        About Dialog
      • preferencesDialog

        @Nullable
        private @Nullable Preferences_Dialog preferencesDialog
        Preferences Dialog
      • helpDialog

        @Nullable
        private Help_Dialog helpDialog
        Help Dialog
      • Calculator_ScrollPane

        final JScrollPane Calculator_ScrollPane
      • Menu_Edit

        final JMenu Menu_Edit
      • Menu_Edit_Copy

        final JMenuItem Menu_Edit_Copy
      • Menu_File

        final JMenu Menu_File
      • Menu_File_Preferences

        final JMenuItem Menu_File_Preferences
      • Menu_File_Quit

        final JMenuItem Menu_File_Quit
      • Menu_Help

        final JMenu Menu_Help
      • Menu_Help_About

        final JMenuItem Menu_Help_About
      • Menu_Help_Homepage

        private final JMenuItem Menu_Help_Homepage
      • Menu_Help_Index

        final JMenuItem Menu_Help_Index
      • Menu_Help_Manuals

        private final JMenuItem Menu_Help_Manuals
      • Menu_Help_SourceForge

        final JMenuItem Menu_Help_SourceForge
      • Menu_Help_YouTube

        final JMenuItem Menu_Help_YouTube
      • Printer_Canvas

        final net.sourceforge.uiq3.hp45.PrinterCanvas Printer_Canvas
    • 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
      • getCalculatorCanvas

        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
      • setCalculator

        public void setCalculator​(net.sourceforge.uiq3.hp45.Desktop_Calculator Engine)
        Set the calculator engine used - needed for status related display.
        Parameters:
        Engine - calculator engine
      • 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)

        display additional information on the error. this is device and setup dependent.

        Specified by:
        displayException in interface net.sourceforge.uiq3.ui.ICalculatorCanvas
        Parameters:
        exception - exception to display
      • getPressedKey

        public short getPressedKey()
        Specified by:
        getPressedKey in interface net.sourceforge.uiq3.ui.ICalculatorCanvas
        Overrides:
        getPressedKey in class net.sourceforge.uiq3.calculator.Frame<Calculator_Canvas>
      • getReadKey

        public short getReadKey()
        Specified by:
        getReadKey in interface net.sourceforge.uiq3.ui.ICalculatorCanvas
        Overrides:
        getReadKey in class net.sourceforge.uiq3.calculator.Frame<Calculator_Canvas>
      • isReadKeyAvailable

        public boolean isReadKeyAvailable()
        Specified by:
        isReadKeyAvailable in interface net.sourceforge.uiq3.ui.ICalculatorCanvas
        Overrides:
        isReadKeyAvailable in class net.sourceforge.uiq3.calculator.Frame<Calculator_Canvas>
      • setIndicators

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

        @TestOnly
        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>
      • getDisplayText

        @TestOnly
        public short @NotNull [] getDisplayText​(int Row)
        Fet 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)
        Specified by:
        getJavaText in interface net.sourceforge.uiq3.ui.ICalculatorCanvas
        Overrides:
        getJavaText in class net.sourceforge.uiq3.calculator.Frame<Calculator_Canvas>
      • getJavaText

        @TestOnly
        @NotNull
        public @NotNull String getJavaText()
        Fet 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>
      • 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.
      • formWindowClosing

        private void formWindowClosing​(WindowEvent evt)
      • Menu_File_PreferencesActionPerformed

        private void Menu_File_PreferencesActionPerformed​(ActionEvent evt)
      • Menu_Help_AboutActionPerformed

        private void Menu_Help_AboutActionPerformed​(ActionEvent evt)
      • Menu_Help_HomepageActionPerformed

        private void Menu_Help_HomepageActionPerformed​(ActionEvent evt)
      • Menu_Help_SourceForgeActionPerformed

        private void Menu_Help_SourceForgeActionPerformed​(ActionEvent evt)
      • Menu_Help_YouTubeActionPerformed

        private void Menu_Help_YouTubeActionPerformed​(ActionEvent evt)
      • Menu_Help_ManualsActionPerformed

        private void Menu_Help_ManualsActionPerformed​(ActionEvent evt)
      • Menu_File_QuitActionPerformed

        private void Menu_File_QuitActionPerformed​(ActionEvent evt)
      • Menu_Help_IndexActionPerformed

        private void Menu_Help_IndexActionPerformed​(ActionEvent evt)