// #sijapp cond.if modules_TOUCH is "true"# protected void stylusXMoved(TouchState state) { if (getWidth() / 2 < Math.abs(state.fromX - state.x)) { boolean isTrue = state.fromX < state.x; int currentModel = 0; if (Options.getBoolean(Options.OPTION_CL_HIDE_OFFLINE)) currentModel = 1; if (((RosterContent) content).getModel() == getUpdater().getChatModel()) currentModel = 2; currentModel = (currentModel + 3 + (isTrue ? -1 : +1)) % 3; switch (currentModel) { case 0: Options.setBoolean(Options.OPTION_CL_HIDE_OFFLINE, false); updateOfflineStatus(); Options.safeSave(); break; case 1: Options.setBoolean(Options.OPTION_CL_HIDE_OFFLINE, true); updateOfflineStatus(); Options.safeSave(); break; case 2: ((RosterContent) content).setModel(getUpdater().getChatModel()); break; } updateTitle(); Jimm.getJimm().getCL().activate(); } }
public static void changeSoundMode(boolean showPopup) { boolean newValue = !Options.getBoolean(Options.OPTION_SILENT_MODE); if (showPopup) { PopupWindow.showShadowPopup( "Jimm", ResourceBundle.getString(newValue ? "#sound_is_off" : "#sound_is_on")); } getSound().vibrate(newValue ? 0 : 100); getSound().closePlayer(); Options.setBoolean(Options.OPTION_SILENT_MODE, newValue); Options.safeSave(); }