Package domain

Examples of domain.TextController


        else showError ("The username and password you have entered do not match, please try again");
        return false;
    }

    public void enter () {
        TextController textContrl = TextController.getInstance();
        textContrl.newText(_id);
        goToEdit();
    }
View Full Code Here


    // NOMINALIZE

    public ArrayList< Pair<String,Float> > nominalize(String text) {
        ArrayList< Pair<String,Float> > result = new ArrayList< Pair<String,Float> >();
  TextController tCntrl = TextController.getInstance();
  tCntrl.enterText(text);
  result = tCntrl.startNominalization();
  return result;
    }
View Full Code Here

  return result;
    }

    public ArrayList< Pair<String,Float> > nextVerb() {
        ArrayList< Pair<String,Float> > result = new ArrayList< Pair<String,Float> >();
  TextController tCntrl = TextController.getInstance();
  result = tCntrl.nextNominalization();
  return result;
    }
View Full Code Here

  return result;
    }

    public ArrayList< Pair<String,Float> > previousVerb() {
        ArrayList< Pair<String,Float> > result = new ArrayList< Pair<String,Float> >();
  TextController tCntrl = TextController.getInstance();
  result = tCntrl.previousNominalization();
  return result;
    }
View Full Code Here

  return result;
    }

    public ArrayList< Pair<String,Float> > clickVerb(int pos) {
        ArrayList< Pair<String,Float> > result = new ArrayList< Pair<String,Float> >();
  TextController tCntrl = TextController.getInstance();
  result = tCntrl.clickNominalization(pos);
  return result;
    }
View Full Code Here

  result = tCntrl.clickNominalization(pos);
  return result;
    }

    public ArrayList<Integer> getPositions () {
  TextController tCntrl = TextController.getInstance();
  return tCntrl.getPositions();
    }
View Full Code Here

  return tCntrl.getPositions();
    }


    public void increasePreference (int index) {
  TextController tCntrl = TextController.getInstance();
  tCntrl.favoriteNominalization(index);
    }
View Full Code Here

    }

    //CONTEXT

    public void saveContext(String text, boolean nominalized) {
  TextController tCntrl = TextController.getInstance();
  _contextNominalized = nominalized;
  if (_contextNominalized) _contextPosition = tCntrl.getCurrentNominalizationPosition();
  else tCntrl.enterTextOnly(text);
    }
View Full Code Here

    public int getContextCurrentPosition() {
  return _contextPosition;
    }

    public int getCurrentPosition() {
  TextController tCntrl = TextController.getInstance();
  return tCntrl.getCurrentNominalizationPosition();
    }
View Full Code Here

  TextController tCntrl = TextController.getInstance();
  return tCntrl.getCurrentNominalizationPosition();
    }

    public String getText() {
  TextController tCntrl = TextController.getInstance();
  return tCntrl.getText();
    }
View Full Code Here

TOP

Related Classes of domain.TextController

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.