Package com.valhalla.jbother.jabber

Examples of com.valhalla.jbother.jabber.SelfStatus


  public SetStatusMenu(BuddyList blist, boolean useIcon, JButton button) {
    this.button = button;
    this.blist = blist;
    this.useIcon = useIcon;
    Iterator statusIterator = statuses.getContent().iterator();
    SelfStatus curStatus;
    while (statusIterator.hasNext()) {
      curStatus = (SelfStatus) statusIterator.next();
      JCheckBoxMenuItem item = new JCheckBoxMenuItem(curStatus.getTitle());
      if (curStatus.getMode() == blist.getCurrentPresenceMode()) {
        item.setState(true);
      }
      add(item);
    }
View Full Code Here


   * Reloads the status icons (in case the theme changes, etc)
   */
  public void reloadStatusIcons() {
    Iterator statusIterator = statuses.getContent().iterator();
    Presence.Mode mode;
    SelfStatus current;
    int i = 0;
    while (statusIterator.hasNext()) {
      current = (SelfStatus) statusIterator.next();
      mode = current.getMode();

      ((JMenuItem) this.getComponent (i)) .setIcon(StatusIconCache.getStatusIcon(mode));
      if (blist != null && mode == blist.getCurrentPresenceMode()) {
        ((JMenuItem) this.getComponent (i)) .setSelected(true);
        if (useIcon)
View Full Code Here

   */
  public void setModeChecked(Presence.Mode mode) {
    Iterator statusIterator = statuses.getContent().iterator();
    int i = 0;
    while (statusIterator.hasNext()) {
      SelfStatus current = (SelfStatus) statusIterator.next();
      Presence.Mode m = current.getMode();

      if (m == mode) {
        ((JMenuItem) this.getComponent (i)) .setSelected(true);

        if (useIcon)
View Full Code Here

                return;
            }


      JCheckBoxMenuItem item = (JCheckBoxMenuItem) e.getSource();
      SelfStatus status = statuses.getStatus(item.getText());

      if (status.getMode() == null) {
        ConnectorThread.getInstance().setCancelled(true);
        signOffHandler();
      } else {
        ConnectorThread.getInstance().setCancelled(false);
        setStatus(item, status.getMode(), status.getTitle(), true);
      }
    }
View Full Code Here

TOP

Related Classes of com.valhalla.jbother.jabber.SelfStatus

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.