Example #1
0
  /**
   * Runs clean-up for associated resources which need explicit disposal (e.g. listeners keeping
   * this instance alive because they were added to the model which operationally outlives this
   * instance).
   */
  public void dispose() {
    pluginContainer.dispose();

    historyButton.dispose();

    if (this.chatSession != null && this.chatSession instanceof MetaContactChatSession)
      this.chatSession.removeChatTransportChangeListener(this);

    if (this.chatSession != null && this.chatSession instanceof ConferenceChatSession)
      ((ConferenceChatSession) this.chatSession).removeLocalUserRoleListener(this);
  }
Example #2
0
  /** Reloads icons for buttons. */
  public void loadSkin() {
    inviteButton.setIconImage(ImageLoader.getImage(ImageLoader.ADD_TO_CHAT_ICON));

    historyButton.loadSkin();

    sendFileButton.setIconImage(ImageLoader.getImage(ImageLoader.SEND_FILE_ICON));

    fontButton.setIconImage(ImageLoader.getImage(ImageLoader.FONT_ICON));

    previousButton.setIconImage(ImageLoader.getImage(ImageLoader.PREVIOUS_ICON));

    nextButton.setIconImage(ImageLoader.getImage(ImageLoader.NEXT_ICON));

    leaveChatRoomButton.setIconImage(ImageLoader.getImage(ImageLoader.LEAVE_ICON));

    desktopSharingButton.setIconImage(ImageLoader.getImage(ImageLoader.CHAT_DESKTOP_SHARING));

    optionsButton.setIconImage(ImageLoader.getImage(ImageLoader.CHAT_CONFIGURE_ICON));

    setCallButtonsIcons();
  }