Class Key_Simple_2nd

  • All Implemented Interfaces:
    net.sourceforge.uiq3.calculator.IClear, net.sourceforge.uiq3.calculator.IOperation, net.sourceforge.uiq3.calculator.IOwned_Operation
    Direct Known Subclasses:
    Key_AC_SAC_MAC, Key_EXE, Key_GOTO_SAVE_POKE, Key_GSB_LOAD_PEEK, Key_HLT_PAUSE_VER, Key_LBL_IND_PRT

    class Key_Simple_2nd
    extends Key_Simple
    A simple key with 2nd function was clicked. A simple key is a key which can be directly mapped to four operations and two alpha characters.
    Author:
    "Martin Krischik" «krischik@users.sourceforge.net»
    • Field Detail

      • TAG

        private static final String TAG

        class logger tag.

      • logger

        private static final Logger logger

        class logger instance

      • Second

        private final short Second
        Hyperbol operation
    • Constructor Detail

      • Key_Simple_2nd

        Key_Simple_2nd​(Calculator Owner,
                       short Normal,
                       short Shift,
                       short Second,
                       short Normal_Alpha,
                       short Inv_Alpha)
        Create Key and attach to owner calculator.
        Parameters:
        Owner - Calculator owning the key
        Normal - Normal operations
        Shift - Inverse operation
        Second - Hyperbolic opeartions
        Normal_Alpha - Normal_Alpha characters
        Inv_Alpha - Invers Normal_Alpha characters
    • Method Detail

      • 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 - some error
        net.sourceforge.uiq3.calculator.Error
        See Also:
        IOperation.Execute(short)
      • toString

        @NotNull
        public @NotNull String toString()
        Description copied from class: Owned_Operation
        Operation as java string
        Overrides:
        toString in class Key_Simple
        Returns:
        String representation