Package hamsam.api

Examples of hamsam.api.SmileyComponent


        url = cl.getResource("hamsam/protocol/msn/images/0" + i + ".gif");
      else
        url = cl.getResource("hamsam/protocol/msn/images/" + i + ".gif");

      if(url == null)
        smileys[i - 1] = new SmileyComponent(null, smileyTexts[i - 1], smileyNames[i - 1]);
      else
      {
        Icon icon = new ImageIcon(url);
        smileys[i - 1] = new SmileyComponent(icon, smileyTexts[i - 1], smileyNames[i - 1]);
      }
    }

    return smileys;
  }
View Full Code Here


        }
        ret.append(txt.getSequence());
      }
       else if(comp instanceof SmileyComponent)
       {
         SmileyComponent smiley = (SmileyComponent) comp;
        ret.append(smiley.getText());
       }
       else if(comp instanceof URLComponent)
       {
         URLComponent url = (URLComponent) comp;
        ret.append(url.getLinkText());
View Full Code Here

        url = cl.getResource("hamsam/protocol/yahoo/images/0" + i + ".gif");
      else
        url = cl.getResource("hamsam/protocol/yahoo/images/" + i + ".gif");

      if(url == null)
        smileys[i - 1] = new SmileyComponent(null, smileyTexts[i - 1], smileyNames[i - 1]);
      else
      {
        Icon icon = new ImageIcon(url);
        smileys[i - 1] = new SmileyComponent(icon, smileyTexts[i - 1], smileyNames[i - 1]);
      }
    }

    return smileys;
  }
View Full Code Here

      if (comp instanceof TextComponent) {
        TextComponent txt = (TextComponent) comp;
        System.out.print("<text>" + new String(txt.getSequence()));
      }
      else if (comp instanceof SmileyComponent) {
        SmileyComponent sml = (SmileyComponent) comp;
        System.out.print("<smiley>" + sml.getName());
      }
      else if (comp instanceof URLComponent) {
        URLComponent url = (URLComponent) comp;
        System.out.print("<url>" + url.getLinkText());
      }
View Full Code Here

          color = text.getColor();
        buff.append(text.getSequence());
      }
      else if(comp instanceof SmileyComponent)
      {
        SmileyComponent smiley = (SmileyComponent) comp;
        buff.append(smiley.getText());
      }
      else if(comp instanceof URLComponent)
      {
        URLComponent url = (URLComponent) comp;
        buff.append(url.getLinkURL());
View Full Code Here

TOP

Related Classes of hamsam.api.SmileyComponent

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.