public VirtualContactList() { super(""); RosterContent rc = new RosterContent(this); rc.setModel(rc.getUpdater().createModel()); content = rc; // #sijapp cond.if modules_TOUCH is "true"# softBar = new RosterToolBar(); // #sijapp cond.end # softBar.setSoftBarLabels("menu", "context_menu", "context_menu", false); updateOption(); }
// #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 final void update() { ((RosterContent) content).update(); }
protected void restoring() { content.setTopByOffset(content.getTopOffset()); ((RosterContent) content).update(); }
public void updateOfflineStatus() { getUpdater().getModel().hideOffline = Options.getBoolean(Options.OPTION_CL_HIDE_OFFLINE); ((RosterContent) content).setModel(getUpdater().getModel()); }
public void setModel(ContactListModel model) { ((RosterContent) content).setAllToTop(); ((RosterContent) content).setModel(model); updateTitle(); invalidate(); }
public void setCLListener(ContactListListener listener) { ((RosterContent) content).setCLListener(listener); }
public final void setActiveContact(Contact cItem) { ((RosterContent) content).setActiveContact(cItem); }
public void updateOption() { ((RosterContent) content).updateOption(); }