Java Code Examples for org.jxmpp.util.XmppStringUtils#parseBareJid()
The following examples show how to use
org.jxmpp.util.XmppStringUtils#parseBareJid() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: GrowlTalker.java From Spark with Apache License 2.0 | 5 votes |
@Override public void onClickCallback( GntpNotification notification ) { Log.debug( "Callback clicked: " + notification ); final String jid = XmppStringUtils.parseBareJid( (String) notification.getContext() ); final ChatRoom room = SparkManager.getChatManager().getChatRoom( jid ); SparkManager.getChatManager().getChatContainer().activateChatRoom( room ); SparkManager.getChatManager().getChatContainer().requestFocusInWindow(); }
Example 2
Source File: IncomingCallUI.java From Spark with Apache License 2.0 | 4 votes |
public IncomingCallUI(String jid) { setLayout(new GridBagLayout()); this.jid = XmppStringUtils.parseBareJid(jid); vcard = SparkManager.getVCardManager().getVCardFromMemory(XmppStringUtils.parseBareJid(jid)); final JLabel topLabel = new JLabel(); topLabel.setIcon(JinglePhoneRes.getImageIcon("INCOMING_CALL_IMAGE")); topLabel.setHorizontalTextPosition(JLabel.RIGHT); topLabel.setFont(new Font("Dialog", Font.BOLD, 15)); topLabel.setText(JingleResources.getString("label.voice.request.from")); topLabel.setForeground(Color.DARK_GRAY); // Add Top Label add(topLabel, new GridBagConstraints(0, 0, 1, 1, 1.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.HORIZONTAL, new Insets(5, 5, 5, 5), 0, 0)); // Add Calller Block buildCallerBlock(); // Add Buttons addButtons(); }