Class Key_P

  • All Implemented Interfaces:
    net.sourceforge.uiq3.calculator.IClear, net.sourceforge.uiq3.calculator.IOperation, net.sourceforge.uiq3.calculator.IOwned_Operation

    final class Key_P
    extends Key_Simple
    The Mode key was clicked
    Author:
    "Martin Krischik" «krischik@users.sourceforge.net»
    • Field Detail

      • Logger

        private static final Logger Logger

        class Logger instance

      • P1_Text

        private static final short[] P1_Text
        Text to be displayed when P1_ was selected.
      • TAG

        private static final String TAG

        class Logger tag.

    • Constructor Detail

      • Key_P

        Key_P​(Calculator Owner,
              short Normal,
              short Inv_Normal,
              short Alpha,
              short Inv_Alpha)
        Parameters:
        Owner - Calculator owning the key
        Normal - Normal operations
        Inv_Normal - Inverse operation
        Alpha - Normal_Alpha characters
        Inv_Alpha - Invers Normal_Alpha characters
    • Method Detail

      • Clear

        public void Clear​(boolean All_Clear)
        Clean Key state.
        Specified by:
        Clear in interface net.sourceforge.uiq3.calculator.IClear
        Overrides:
        Clear in class Keyboard
        Parameters:
        All_Clear - make no difference
        See Also:
        IClear.Clear(boolean)
      • Execute

        public void Execute​(short Key_Code)
                     throws net.sourceforge.uiq3.calculator.Error
        Specified by:
        Execute in interface net.sourceforge.uiq3.calculator.IOperation
        Overrides:
        Execute in class Key_Simple
        Throws:
        Error - something went wrong
        net.sourceforge.uiq3.calculator.Error
        See Also:
        IOperation.Execute(short)
      • Execute_Digit

        public void Execute_Digit​(short Key_Code)
                           throws net.sourceforge.uiq3.calculator.Error

        Execute the Digit after the P_ key

        Throws:
        net.sourceforge.uiq3.calculator.Error
      • Execute_P1_

        public void Execute_P1_()
                         throws Error

        Execute the P_ key

        Throws:
        Error
      • Execute_Pn

        private void Execute_Pn​(@NotNull
                                Calculator.Program_Type Program)
                         throws M_Error

        Execute P1 … P9 operation

        Parameters:
        Program - operation to store or execute
        Throws:
        M_Error