Class AbstractDeviceButton


  • public abstract class AbstractDeviceButton
    extends java.lang.Object
    a base class for document viewing buttons
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected byte code
      The code.
      protected boolean newState
      The new state.
      protected java.lang.Boolean state
      The state.
    • Constructor Summary

      Constructors 
      Constructor Description
      AbstractDeviceButton​(byte code)
      Instantiates a new abstract device button.
    • Field Detail

      • code

        protected byte code
        The code.
      • state

        protected java.lang.Boolean state
        The state.
      • newState

        protected boolean newState
        The new state.
    • Constructor Detail

      • AbstractDeviceButton

        public AbstractDeviceButton​(byte code)
        Instantiates a new abstract device button.
        Parameters:
        code - the code
    • Method Detail

      • handleCode

        public void handleCode​(byte state)
        Handle state.
        Parameters:
        state - the state
      • pressed

        public abstract void pressed()
        Pressed.
      • postProcess

        public void postProcess()
        Post process.