Package net.bnubot.core

Examples of net.bnubot.core.Profile


  @Override
  public String toString() {
    if(firstConnection == null)
      return null;
    Profile p = firstConnection.getProfile();
    if((p == null) || (p.getConnections().size() == 1))
      return firstConnection.toString();
    return p.getName();
  }
View Full Code Here


  }

  @Override
  public void titleChanged(Connection source) {
    BNetUser myUser = source.getMyUser();
    Profile profile = source.getProfile();

    // Set the menu text to profile name or logon name
    if((myUser == null) || (profile.getConnections().size() != 1))
      menuBar.setText(profile.getName());
    else
      menuBar.setText(myUser.getFullLogonName());

    // Update the settings menu items
    for (Entry<Connection, JMenuItem> item : settingsMenuItems.entrySet())
View Full Code Here

   */
  @Override
  public String toString() {
    if(getFirstConnection() == null)
      return null;
    Profile p = getFirstConnection().getProfile();
    if((p == null) || (p.getConnections().size() == 1))
      return getFirstConnection().toString();
    return p.getName();
  }
View Full Code Here

TOP

Related Classes of net.bnubot.core.Profile

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.