Class AbstractFilterAndReplaceKeyPressHandler

    • Constructor Detail

      • AbstractFilterAndReplaceKeyPressHandler

        protected AbstractFilterAndReplaceKeyPressHandler​(boolean pallowCopyAndPast)
        constructor.
        Parameters:
        pallowCopyAndPast - is copy and paste allowed?
    • Method Detail

      • onKeyPress

        public void onKeyPress​(com.google.gwt.event.dom.client.KeyPressEvent pevent)
        Specified by:
        onKeyPress in interface com.google.gwt.event.dom.client.KeyPressHandler
      • isAllowedCharacter

        public abstract boolean isAllowedCharacter​(char pcharacter)
        check if character is allowed to type in unchanged.
        Parameters:
        pcharacter - character to check
        Returns:
        true if it's allowed
      • isCharacterToReplace

        public abstract boolean isCharacterToReplace​(char pcharacter)
        check if character is one which has to be replaced.
        Parameters:
        pcharacter - character to check
        Returns:
        true if character has to be replaced
      • replaceCharacter

        public abstract char replaceCharacter​(char pcharacter)
        replace character by another.
        Parameters:
        pcharacter - character to replace
        Returns:
        replaced character