示例#1
0
 // ! Create new virtual list with default values
 public VirtualList(String capt) {
   setCaption(capt);
   setSoftBarLabels("menu", null, "back", false);
   fontSet = GraphicsEx.chatFontSet;
   setSize(
       Jimm.getJimm().getDisplay().getScreenWidth(),
       Jimm.getJimm().getDisplay().getScreenHeight());
 }
 // #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();
   }
 }
示例#3
0
文件: Notify.java 项目: fin-nick/fj
  // #sijapp cond.end #
  private void vibrate(int duration) {

    Jimm.getJimm().getDisplay().vibrate(duration);
    // #sijapp cond.if modules_ANDROID is "true" #
    if (0 < duration) {
      new Timer().schedule(new StopVibro(), duration);
    }
    // #sijapp cond.end #
  }
示例#4
0
 private void setTop(int item, int offset) {
   set_Top(item, offset);
   if (this == Jimm.getJimm().getDisplay().getNativeCanvas().getCanvas()) {
     MyScrollBar.showScroll();
   }
 }
示例#5
0
 public final void select(Select select, MenuModel model, int cmd) {
   String resource = model.getItemText(cmd);
   setActiveResource(resource);
   Jimm.getJimm().getDisplay().closeMenus();
 }