Package com.kolakcc.loljclient.model

Examples of com.kolakcc.loljclient.model.Status


  public void updateStatus(String status) {
    //TODO: totally editable messages
    Configuration.setStatus(status);
    Configuration.flushConfig();
    String statusXML = String.format("<body><level>99</level><profileIcon>28</profileIcon><wins>9001</wins><rankedWins>9001</rankedWins><statusMsg>%s</statusMsg></body>", status);
    Status selectedStatus = (Status) this.view.presenceComboBox.getSelectedItem();
    Mode presenceMode = Presence.Mode.chat;
    if (selectedStatus.getDisplay().equals("Away")) presenceMode = Presence.Mode.away;
    Presence newPresence = new Presence(Presence.Type.available,statusXML,1,presenceMode);
    XMPPWrapper.getConnection().sendPacket(newPresence);
  }
View Full Code Here


public class StatusComboBoxModel implements ComboBoxModel<Status> {
  ArrayList<Status> data;
  Status selected;
  public StatusComboBoxModel() {
    data = new ArrayList<Status>();
    Status available = new Status("Available", StatusIcon.getAvailable());
    data.add(available);
    data.add(new Status("Away", StatusIcon.getAway()));
    selected = available;
  }
View Full Code Here

TOP

Related Classes of com.kolakcc.loljclient.model.Status

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.