public MainPanel() { try { jbInit(); } catch (Exception exception) { Debug.displayStack(this, exception); } }
public SettingsPrivacyWindow() { super(); try { jbInit(); } catch (Exception exception) { Debug.displayStack(this, exception); } }
private void _htmlPaneUserFeed_hyperlinkUpdate(HyperlinkEvent hyperlinkEvent) { try { if (hyperlinkEvent.getEventType() == HyperlinkEvent.EventType.ACTIVATED) { WebBrowser.openURL(hyperlinkEvent.getURL().toString()); } } catch (Exception exception) { Debug.displayStack(this, exception); } }
public SendToContactListWindow(ItemVO itemVO, MessageType messageType) { super(); try { _itemVO = itemVO; _messageType = messageType; jbInit(); } catch (Exception exception) { Debug.displayStack(this, exception); } }
public ContactDetailsWindow(ItemVO itemVO, InfoContactTypeVO infoVO, boolean allowSendMessage) { super(); try { _allowSendMessage = allowSendMessage; _itemVO = itemVO; _infoVO = infoVO; jbInit(); } catch (Exception exception) { Debug.displayStack(this, exception); } }
private void _buttonSendVoiceNote_actionPerformed(ActionEvent actionEvent) { try { if (API.getInstance().getSocial().canMessageSend(_itemVO.getService())) getParentPanel().showWindow(new VoiceNoteSendWindow(_itemVO, null, null)); else getParentPanel() .showWindow( new WarningWindow( "Cannot send message", "The service \"" + _itemVO.getService() + "\" does not let you send private messages to \"" + _itemVO.getName() + "\". Please select another contact.", 30, "send-message-contact-list-can-not-send.wav")); } catch (APICommunicationException apiCommunicationException) { Debug.displayStack(this, apiCommunicationException); } catch (APIProtocolException apiProtocolException) { Debug.displayStack(this, apiProtocolException); } }
private void _listContactList_valueChanged(ListSelectionEvent listSelectionEvent) { try { if (!listSelectionEvent.getValueIsAdjusting()) { ItemVO contactItemVO = (ItemVO) _listContactList.getSelectedValue(); if (API.getInstance().getSocial().canMessageSend(contactItemVO.getService())) { if (_messageType == MessageType.TEXT) getParentPanel() .discardAndShowWindow( new MessageSendWindow( (ItemVO) _listContactList.getSelectedValue(), _itemVO, null)); else if (_messageType == MessageType.VOICE) getParentPanel() .discardAndShowWindow( new VoiceNoteSendWindow( (ItemVO) _listContactList.getSelectedValue(), _itemVO, null)); } else { getParentPanel() .showWindow( new WarningWindow( "Cannot send message", "The service \"" + contactItemVO.getService() + "\" does not let you send private messages to \"" + contactItemVO.getName() + "\". Please select another contact.", 30, "send-message-contact-list-can-not-send.wav")); _listContactList.clearSelection(); } } } catch (APICommunicationException apiCommunicationException) { Debug.displayStack(this, apiCommunicationException); } catch (APIProtocolException apiProtocolException) { Debug.displayStack(this, apiProtocolException); } }
private void _buttonOkay_actionPerformed(ActionEvent actionEvent) { InfoUserTypeVO newInfoUserTypeVO = new InfoUserTypeVO(); newInfoUserTypeVO.setLocationIsVisible(!_checkBoxInvisible.isChecked()); try { API.getInstance().getUser().infoSet(Session.getInstance().getUserInfo(), newInfoUserTypeVO); } catch (Exception exception) { getParentPanel() .showWindow( new WarningWindow( "Unable to save", "Unable to save privacy settings. Please try it later.", 30, "privacy-settings-unable-to-save-warning.wav")); return; } try { Session.getInstance().setUserInfo(API.getInstance().getUser().infoGet(null)); } catch (Exception exception) { Debug.displayStack(this, exception); } Settings.getInstance().getDTO().setUpdateMyLocation(_checkBoxUpdateLocation.isChecked()); Settings.getInstance().save(); _buttonWindowClose_actionPerformed(null); }