Package com.qspin.qtaste.tools.converter.model.event

Examples of com.qspin.qtaste.tools.converter.model.event.DocumentEvent


class PythonDocumentEventFactory extends PythonEventFactory {

  @Override
  public String createPythonEvent(Event pEvent, long pPreviousTimestamp) {
    DocumentEvent evt = (DocumentEvent) pEvent;
    StringBuilder builder = new StringBuilder();

    String command = "javaguiMI.setText(" + getComponentIdentifier(evt.getComponentName()) + ", \"";
    if (!evt.getChange().contains(LINE_BREAK)) {
       command += evt.getChange();
    } else {
      command += evt.getChange().replace(LINE_BREAK, "\\n");
    }
    command += "\")";
    insertSleep(pEvent, pPreviousTimestamp, builder);
    builder.append(getPythonIndentation(1) + command + LINE_BREAK);
    return builder.toString();
View Full Code Here


  private void updateEvent() {
    if (mEvent.getType().equals("PropertyChangeEvent")) {
      mEvent = new PropertyChangeEvent(mEvent);
    } else if (mEvent.getType().contains("DocumentEvent")) {
      mEvent = new DocumentEvent(mEvent);
      mEvent.setType("DocumentEvent");
    } else if (mEvent.getType().equals("ActionEvent")) {
      mEvent = new ActionEvent(mEvent);
    } else if (mEvent.getType().equals("ItemEvent")) {
      mEvent = new ItemEvent(mEvent);
View Full Code Here

TOP

Related Classes of com.qspin.qtaste.tools.converter.model.event.DocumentEvent

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.