Package com.kolakcc.loljclient.model.swing

Examples of com.kolakcc.loljclient.model.swing.FriendsListModel


    }
    this.view = new FriendsListView();
    this.setView(this.view);
    this.initializeWorkers(username, password);
   
    this.onlineModel = new FriendsListModel(FriendsListModel.ShowMode.ONLINE);
    this.view.onlineList.setModel(onlineModel);
    this.view.onlineList.addMouseListener(this);
   
    this.offlineModel = new FriendsListModel(FriendsListModel.ShowMode.OFFLINE);
    this.view.offlineList.setModel(offlineModel);
   
    this.view.presenceComboBox.setModel(new StatusComboBoxModel());
    this.view.presenceStatusField.getDocument().addDocumentListener(this);
    this.connectionWorker.execute();
View Full Code Here


  public void refreshLists() {
    SwingUtilities.invokeLater(new Runnable() {
      @Override
      public void run() { //TODO: find out why I can't update the model instead of replacing the model
        onlineModel = new FriendsListModel(FriendsListModel.ShowMode.ONLINE);
        FriendsListController.this.view.onlineList.setModel(onlineModel);
        offlineModel = new FriendsListModel(FriendsListModel.ShowMode.OFFLINE);
        FriendsListController.this.view.offlineList.setModel(offlineModel);
      }
    });
  }
View Full Code Here

TOP

Related Classes of com.kolakcc.loljclient.model.swing.FriendsListModel

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.