Package scratch

Examples of scratch.Answer


    public ScratchNameValidator(Scratch scratch) {
      this.scratch = scratch;
    }

    @Override public boolean checkInput(String inputString) {
      Answer answer = mrScratchManager().checkIfUserCanRename(scratch, inputString);
      return answer.isYes;
    }
View Full Code Here


      Answer answer = mrScratchManager().checkIfUserCanRename(scratch, inputString);
      return answer.isYes;
    }

    @Nullable @Override public String getErrorText(String inputString) {
      Answer answer = mrScratchManager().checkIfUserCanRename(scratch, inputString);
      return answer.explanation;
    }
View Full Code Here

      @Override public boolean checkInput(String scratchName) {
        return ScratchComponent.mrScratchManager().checkIfUserCanCreateScratchWithName(scratchName).isYes;
      }

      @Nullable @Override public String getErrorText(String scratchName) {
        Answer answer = ScratchComponent.mrScratchManager().checkIfUserCanCreateScratchWithName(scratchName);
        return answer.explanation;
      }

      @Override public boolean canClose(String inputString) {
        return true;
View Full Code Here

TOP

Related Classes of scratch.Answer

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.