Package com.anzsoft.client.utils.emotions

Examples of com.anzsoft.client.utils.emotions.Emoticons$App


        message = replace(message, new String[] { ":-\\)", ":\\)" }, SMILE);
        return message;
    }

    private static String formatEmoticons(String message) {
        final Emoticons img = Emoticons.App.getInstance();

        message = preFormatEmoticons(message);
       
        message = message.replaceAll(SMILE, getImgHtml(img.smile()));
        message = message.replaceAll(CRYING, getImgHtml(img.crying()));
        message = message.replaceAll(SURPRISED, getImgHtml(img.surprised()));
        message = message.replaceAll(ANGEL, getImgHtml(img.angel()));
        message = message.replaceAll(HAPPY, getImgHtml(img.happy()));
        message = message.replaceAll(GRIN, getImgHtml(img.grin()));
        message = message.replaceAll(JOYFUL, getImgHtml(img.joyful()));
        message = message.replaceAll(UNCERTAIN, getImgHtml(img.uncertain()));
        message = message.replaceAll(ANGRY, getImgHtml(img.angry()));
        message = message.replaceAll(TONGUE, getImgHtml(img.tongue()));
        message = message.replaceAll(LOVE, getImgHtml(img.love()));
        message = message.replaceAll(SLEEPING, getImgHtml(img.sleeping()));
        message = message.replaceAll(COOL, getImgHtml(img.cool()));
        message = message.replaceAll(KISSING, getImgHtml(img.kissing()));
        message = message.replaceAll(SAD, getImgHtml(img.sad()));
        message = message.replaceAll(ALIEN, getImgHtml(img.alien()));
        message = message.replaceAll(ANDY, getImgHtml(img.andy()));
        message = message.replaceAll(BANDIT, getImgHtml(img.bandit()));
        message = message.replaceAll(BLUSHING, getImgHtml(img.blushing()));
        message = message.replaceAll(DEVIL, getImgHtml(img.devil()));
        message = message.replaceAll(HEART, getImgHtml(img.heart()));
        message = message.replaceAll(LOL, getImgHtml(img.lol()));
        message = message.replaceAll(NINJA, getImgHtml(img.ninja()));
        message = message.replaceAll(PINCHED, getImgHtml(img.pinched()));
        message = message.replaceAll(POLICEMAN, getImgHtml(img.policeman()));
        message = message.replaceAll(POUTY, getImgHtml(img.pouty()));
        message = message.replaceAll(SICK, getImgHtml(img.sick()));
        message = message.replaceAll(SIDEWAYS, getImgHtml(img.sideways()));
        message = message.replaceAll(UNSURE, getImgHtml(img.unsure()));
        message = message.replaceAll(W00T, getImgHtml(img.w00t()));
        message = message.replaceAll(WINK, getImgHtml(img.wink()));
        message = message.replaceAll(WONDERING, getImgHtml(img.wondering()));
        message = message.replaceAll(WHISTLING, getImgHtml(img.whistling()));
        message = message.replaceAll(WIZARD, getImgHtml(img.wizard()));

        return message;
    }
View Full Code Here


    scpd.setDescription(MusicMessages.MEI_documentation_app_select);
    descriptors.add(scpd);
  }

  private void createDefaultApp() {
    setMeiNode(new App());
  }
View Full Code Here

            handleScoreChild(contentChildForm, saveAllVariants));
      }
      return contentNode;
    } else if (childForm instanceof AppForm) {
      AppForm contentForm = (AppForm) childForm;
      App contentNode = (App) contentForm.getMeiNode();
      contentNode.getRdgs().clear();
      for (BasicElement contentChildForm : contentForm.getChildren()) {
        contentNode.getRdgs().add(
            (Rdg) handleScoreChild(contentChildForm,
                saveAllVariants));
      }
      if (contentNode.isSetRdgs() && contentNode.getRdgs().isEmpty())
        contentNode.unsetRdgs();
      if (contentNode.isSetN() && contentNode.getN().isEmpty())
        contentNode.setN(null);
      if (!saveAllVariants) {
        for (BasicElement contentChildForm : contentForm.getChildren()) {
          if(contentChildForm instanceof ReadingForm && ((ReadingForm)contentChildForm).isActive() ) {
            MeiNode parentMeiNode = contentForm.getParent().getMeiNode();
            for(BasicElement grandChild : ((ReadingForm)contentChildForm).getChildren()){
              MeiNodeNavigator.addMeiNodeAsChild(parentMeiNode, grandChild.getMeiNode());
            }           
          }
        }
        return null;

      }
      return contentNode;
    } else if (childForm instanceof ReadingForm) {
      Rdg contentNode;
      ReadingForm contentForm = (ReadingForm) childForm;
      if (!saveAllVariants && !contentForm.isActive()) {
        // ignore this very reading
        return null;
      }
      contentNode = (Rdg) contentForm.getMeiNode();
      contentNode.getSources().clear();
      for (SourceBindingWrapper sbw : contentForm
          .getSourceBindingWrappers()) { // insert the wrapped sources
        contentNode.getSources().add(sbw.getSource().getId());
      }
      if (contentNode.getSources().isEmpty())
        contentNode.unsetSources();
      contentNode.getMRestsAndKeySigsAndProports().clear();
      for (BasicElement contentChildForm : contentForm.getChildren()) {
        contentNode.getMRestsAndKeySigsAndProports().add(
            handleScoreChild(contentChildForm, saveAllVariants));
      }
      return contentNode;
    } else if (childForm instanceof LayerForm) {
      LayerForm contentForm = (LayerForm) childForm;
      Layer contentNode = (Layer) contentForm.getMeiNode();
      contentNode.getBarLinesAndSyllablesAndGaps().clear();
      for (BasicElement contentChildForm : contentForm.getChildren()) {
        contentNode.getBarLinesAndSyllablesAndGaps().add(
            handleScoreChild(contentChildForm, saveAllVariants));
      }
      return contentNode;
    } else if (childForm instanceof ChordGroupForm) {
      ChordGroupForm contentForm = (ChordGroupForm) childForm;
      Chord contentNode = (Chord) contentForm.getMeiNode();
      contentNode.getRestoresAndArticsAndUnclears().clear();
      for (BasicElement contentChildForm : contentForm.getChildren()) {
        contentNode.getRestoresAndArticsAndUnclears().add(
            handleScoreChild(contentChildForm, saveAllVariants));
      }
      if(contentNode.getArtics().isEmpty()) {
        contentNode.unsetArtics();
      }
      return contentNode;
    } else if (childForm instanceof BeamGroupForm) {
      BeamGroupForm contentForm = (BeamGroupForm) childForm;
      Beam contentNode = (Beam) contentForm.getMeiNode();
      contentNode.getFTremsAndChordsAndDamages().clear();
      for (BasicElement contentChildForm : contentForm.getChildren()) {
        contentNode.getFTremsAndChordsAndDamages().add(
            handleScoreChild(contentChildForm, saveAllVariants));
      }
      return contentNode;
    } else if (childForm instanceof NoteForm) {
      NoteForm contentForm = (NoteForm) childForm;
      Note contentNode = (Note) contentForm.getMeiNode();
      if (contentNode.getArtics().isEmpty())
        contentNode.unsetArtics();
      return contentNode;
    } else if (childForm instanceof RestForm) {
      RestForm contentForm = (RestForm) childForm;
      Rest contentNode = (Rest) contentForm.getMeiNode();
      return contentNode;
    } else if (childForm instanceof MRestForm) {
      MRestForm contentForm = (MRestForm) childForm;
      MRest contentNode = (MRest) contentForm.getMeiNode();
      return contentNode;
    } else if (childForm instanceof SpaceForm) {
      SpaceForm contentForm = (SpaceForm) childForm;
      Space contentNode = (Space) contentForm.getMeiNode();
      return contentNode;
    } else if (childForm instanceof DynamForm) {
      DynamForm contentForm = (DynamForm) childForm;
      Dynam contentNode = (Dynam) contentForm.getMeiNode();
      for (BasicElement contentChildForm : contentForm.getChildren()) {
        contentNode.getContent().add(
            handleScoreChild(contentChildForm, saveAllVariants));
      }
      return contentNode;
    } else if (childForm instanceof TieForm) {
      TieForm contentForm = (TieForm) childForm;
View Full Code Here

TOP

Related Classes of com.anzsoft.client.utils.emotions.Emoticons$App

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.