示例#1
0
 public void Inject(Object owner) {
   GfuiBtn btn = GfuiBtn_.cast(owner);
   IptBnd_.cmd_to_(
       IptCfg_.Null, btn, this, MovePrev_cmd, IptKey_.add_(IptKey_.Ctrl, IptKey_.Left));
   IptBnd_.cmd_to_(
       IptCfg_.Null, btn, this, MoveNext_cmd, IptKey_.add_(IptKey_.Ctrl, IptKey_.Right));
 }
示例#2
0
 public Object Invk(GfsCtx ctx, int ikey, String k, GfoMsg m) {
   if (ctx.Match(k, MoveNext_cmd)) MoveTab(GfuiBtn_.cast(ctx.MsgSrc()), 1);
   else if (ctx.Match(k, MovePrev_cmd)) MoveTab(GfuiBtn_.cast(ctx.MsgSrc()), -1);
   else return Gfo_invk_.Rv_unhandled;
   return this;
 }