public ChatRoomButton createOtrButton() { return new ChatRoomButton(); } }
protected void removeListeners() { // Remove info listener infoButton.removeActionListener(this); addToRosterButton.removeActionListener(this); SparkManager.getConnection().removeSyncStanzaListener(this); }
infoButton = new ChatRoomButton("", SparkRes.getImageIcon(SparkRes.PROFILE_IMAGE_24x24)); infoButton.setToolTipText(Res.getString("message.view.information.about.this.user")); infoButton.addActionListener(this); addToRosterButton = new ChatRoomButton("", SparkRes.getImageIcon(SparkRes.ADD_IMAGE_24x24)); if (entry == null && !privateChat) { addToRosterButton.setToolTipText(Res.getString("message.add.this.user.to.your.roster")); if (!Default.getBoolean("ADD_CONTACT_DISABLED") && Enterprise.containsFeature(Enterprise.ADD_CONTACTS_FEATURE)) addChatRoomButton(addToRosterButton); addToRosterButton.addActionListener(this);
public void decorate() { // Add Conference Invite Button. inviteButton = UIComponentRegistry.getButtonFactory().createInviteConferenceButton(); inviteButton.setToolTipText(Res.getString("title.invite.to.conference")); chatRoom.addChatRoomButton(inviteButton); inviteButton.addActionListener(this); }
button.setEnabled(true);
public ChatRoomTransferDecorator(final ChatRoom chatRoom) { this.chatRoom = chatRoom; chatRoom.addFileDropListener(this); chatRoom.getChatInputEditor().addKeyListener(this); chatRoom.addClosingListener(this); sendFileButton = UIComponentRegistry.getButtonFactory().createSendFileButton(); sendFileButton.setToolTipText(Res.getString("message.send.file.to.user")); chatRoom.addChatRoomButton(sendFileButton); sendFileButton.addActionListener(this); sendScreenShotButton = UIComponentRegistry.getButtonFactory().createScreenshotButton(); sendScreenShotButton.setToolTipText(Res.getString("message.send.picture")); chatRoom.addChatRoomButton(sendScreenShotButton); sendScreenShotButton.addActionListener(this); }
public void sendScreenshot(final ChatRoomButton button, final ChatRoom room) { button.setEnabled(false);
public ChatRoomDecorator(ChatRoom chatRoom) { this.chatRoom = chatRoom; chatRoom.addClosingListener(this); // Add History Button localPreferences = SettingsManager.getLocalPreferences(); if (!localPreferences.isChatHistoryEnabled()) { return; } chatHistoryButton = UIComponentRegistry.getButtonFactory().createChatTranscriptButton(); if (!Default.getBoolean("HISTORY_DISABLED") && Enterprise.containsFeature(Enterprise.HISTORY_TRANSCRIPTS_FEATURE)) chatRoom.addChatRoomButton(chatHistoryButton); chatHistoryButton.setToolTipText(Res.getString("tooltip.view.history")); chatHistoryButton.addActionListener(this); }
public ChatRoomButton createInviteConferenceButton() { return new ChatRoomButton("", SparkRes.getImageIcon(SparkRes.CONFERENCE_IMAGE_24x24)); }
public void closing() { inviteButton.removeActionListener(this); chatRoom.removeClosingListener(this); }
public ChatRoomButton createSendFileButton() { return new ChatRoomButton("", SparkRes.getImageIcon(SparkRes.SEND_FILE_24x24)); }
public void closing() { if (localPreferences.isChatHistoryEnabled()) { chatHistoryButton.removeActionListener(this); } chatRoom.removeClosingListener(this); chatRoom = null; chatHistoryButton = null; }
public ChatRoomButton createScreenshotButton() { return new ChatRoomButton("", SparkRes.getImageIcon(SparkRes.PHOTO_IMAGE)); }
public void closing() { chatRoom.removeFileDropListener(this); chatRoom.getChatInputEditor().removeKeyListener(this); chatRoom.removeClosingListener(this); sendFileButton.removeActionListener(this); sendScreenShotButton.removeActionListener(this); } }
public ChatRoomButton createChatTranscriptButton() { return new ChatRoomButton(SparkRes.getImageIcon(SparkRes.HISTORY_24x24_IMAGE)); }