コード例 #1
0
 public Object Invk(GfsCtx ctx, int ikey, String k, GfoMsg m) {
   if (ctx.Match(k, Invk_main_page)) this.Main_page();
   else if (ctx.Match(k, Invk_random)) this.Random();
   else if (ctx.Match(k, Invk_sandbox)) this.Sandbox();
   else return Gfo_invk_.Rv_unhandled;
   return this;
 }
コード例 #2
0
ファイル: Xoapi_nav.java プロジェクト: qq98982/xowa
 public Object Invk(GfsCtx ctx, int ikey, String k, GfoMsg m) {
   if (ctx.Match(k, Invk_go_bwd)) this.Go_bwd();
   else if (ctx.Match(k, Invk_go_fwd)) this.Go_fwd();
   else if (ctx.Match(k, Invk_goto)) this.Goto(m.ReadStr("v"));
   else if (ctx.Match(k, Invk_wiki)) return wiki;
   else return GfoInvkAble_.Rv_unhandled;
   return this;
 }
コード例 #3
0
 public Object Invk(GfsCtx ctx, int ikey, String k, GfoMsg m) {
   if (ctx.Match(k, Invk_clear)) this.Clear();
   else if (ctx.Match(k, Invk_separators)) return separators_mgr;
   else if (ctx.Match(k, Invk_digits)) {
     digits_translate = true;
     return digits_mgr;
   } // NOTE: only langes with a digit_transform_table will call digits; DATE:2014-05-28
   else if (ctx.Match(k, Invk_digit_grouping_pattern))
     return String_.new_u8(num_grp_fmtr.Digit_grouping_pattern());
   else if (ctx.Match(k, Invk_digit_grouping_pattern_))
     num_grp_fmtr.Digit_grouping_pattern_(m.ReadBry("v"));
   else return Gfo_invk_.Rv_unhandled;
   return this;
 }
コード例 #4
0
 public Object Invk(GfsCtx ctx, int ikey, String k, GfoMsg m) {
   if (ctx.Match(k, Invk_version)) return Xoa_app_.Version;
   else if (ctx.Match(k, Invk_build_date)) return Xoa_app_.Build_date;
   else if (ctx.Match(k, Invk_free_mem_when_))
     free_mem_when = gplx.core.ios.Io_size_.parse_or(m.ReadStr("v"), Io_mgr.Len_mb * 5);
   else if (ctx.Match(k, Invk_lang)) return lang_key;
   else if (ctx.Match(k, Invk_lang_)) Lang_(m.ReadBry("v"));
   else if (ctx.Match(k, Invk_lang_list)) return Options_lang_list();
   else if (ctx.Match(k, Invk_options_version)) return options_version;
   else if (ctx.Match(k, Invk_options_version_)) options_version = m.ReadInt("v");
   else return Gfo_invk_.Rv_unhandled;
   return this;
 }
コード例 #5
0
ファイル: Xoapi_view.java プロジェクト: qq98982/xowa
 public Object Invk(GfsCtx ctx, int ikey, String k, GfoMsg m) {
   if (ctx.Match(k, Invk_mode_read)) this.Mode_read();
   else if (ctx.Match(k, Invk_mode_edit)) this.Mode_edit();
   else if (ctx.Match(k, Invk_mode_html)) this.Mode_html();
   else if (ctx.Match(k, Invk_reload)) this.Reload();
   else if (ctx.Match(k, Invk_refresh)) this.Refresh();
   else if (ctx.Match(k, Invk_print)) this.Print();
   else if (ctx.Match(k, Invk_save_as)) this.Save_as();
   else return GfoInvkAble_.Rv_unhandled;
   return this;
 }
コード例 #6
0
 public Object Invk(GfsCtx ctx, int ikey, String k, GfoMsg m) {
   if (ctx.Match(k, Invk_mnt_mgr)) return mnt_mgr;
   else return Gfo_invk_.Rv_unhandled;
 }
コード例 #7
0
ファイル: TabBnd.java プロジェクト: gnosygnu/xowa_android
 public Object Invk(GfsCtx ctx, int ikey, String k, GfoMsg m) {
   if (ctx.Match(k, SelectNext_cmd)) Select(m, 1);
   else if (ctx.Match(k, SelectPrev_cmd)) Select(m, -1);
   else return Gfo_invk_.Rv_unhandled;
   return this;
 }
コード例 #8
0
ファイル: TabBnd.java プロジェクト: gnosygnu/xowa_android
 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;
 }
コード例 #9
0
ファイル: Xoapi_tabs.java プロジェクト: qq98982/xowa
 public Object Invk(GfsCtx ctx, int ikey, String k, GfoMsg m) {
   if (ctx.Match(k, Invk_new_dflt__at_dflt__focus_y)) this.New_dflt(Bool_.Y);
   else if (ctx.Match(k, Invk_new_link__at_dflt__focus_n))
     this.New_link(Bool_.N, m.ReadStrOr("v", null));
   else if (ctx.Match(k, Invk_new_link__at_dflt__focus_y))
     this.New_link(Bool_.Y, m.ReadStrOr("v", null));
   else if (ctx.Match(k, Invk_new_href__at_dflt__focus_y)) this.New_href(Bool_.Y);
   else if (ctx.Match(k, Invk_new_dupe__at_dflt__focus_y)) this.New_dupe(Bool_.Y);
   else if (ctx.Match(k, Invk_close_cur)) this.Close_cur();
   else if (ctx.Match(k, Invk_select_bwd)) this.Select_bwd();
   else if (ctx.Match(k, Invk_select_fwd)) this.Select_fwd();
   else if (ctx.Match(k, Invk_move_bwd)) this.Move_bwd();
   else if (ctx.Match(k, Invk_move_fwd)) this.Move_fwd();
   else if (ctx.Match(k, Invk_close_others)) this.Close_others();
   else if (ctx.Match(k, Invk_close_to_bgn)) this.Close_to_bgn();
   else if (ctx.Match(k, Invk_close_to_end)) this.Close_to_end();
   else if (ctx.Match(k, Invk_close_undo)) this.Close_undo();
   else if (ctx.Match(k, Invk_pin_toggle)) this.Pin_toggle();
   else if (ctx.Match(k, Invk_select_by_idx_1)) this.Select_by_idx(1);
   else if (ctx.Match(k, Invk_select_by_idx_2)) this.Select_by_idx(2);
   else if (ctx.Match(k, Invk_select_by_idx_3)) this.Select_by_idx(3);
   else if (ctx.Match(k, Invk_select_by_idx_4)) this.Select_by_idx(4);
   else if (ctx.Match(k, Invk_select_by_idx_5)) this.Select_by_idx(5);
   else if (ctx.Match(k, Invk_select_by_idx_6)) this.Select_by_idx(6);
   else if (ctx.Match(k, Invk_select_by_idx_7)) this.Select_by_idx(7);
   else if (ctx.Match(k, Invk_select_by_idx_8)) this.Select_by_idx(8);
   else if (ctx.Match(k, Invk_select_by_idx_9)) this.Select_by_idx(9);
   else return GfoInvkAble_.Rv_unhandled;
   return this;
 }
コード例 #10
0
 @Override
 public Object Invk(GfsCtx ctx, int ikey, String k, GfoMsg m) {
   if (ctx.Match(k, Invk_tier_id_bmk_)) tier_id_bmk = m.ReadInt("v");
   else if (ctx.Match(k, Invk_page_id_bmk_)) page_id_bmk = m.ReadInt("v");
   else if (ctx.Match(k, Invk_lnki_id_bmk_)) lnki_id_bmk = m.ReadInt("v");
   else if (ctx.Match(k, Invk_select_interval_)) select_interval = m.ReadInt("v");
   else if (ctx.Match(k, Invk_commit_interval_)) commit_interval = m.ReadInt("v");
   else if (ctx.Match(k, Invk_progress_interval_)) progress_interval = m.ReadInt("v");
   else if (ctx.Match(k, Invk_delete_interval_)) delete_interval = m.ReadInt("v");
   else if (ctx.Match(k, Invk_exec_count_max_)) exec_count_max = m.ReadInt("v");
   else if (ctx.Match(k, Invk_exec_fail_max_)) exec_fail_max = m.ReadInt("v");
   else if (ctx.Match(k, Invk_exit_after_commit_)) exit_after_commit = m.ReadYn("v");
   else if (ctx.Match(k, Invk_exit_now_)) exit_now = m.ReadYn("v");
   else if (ctx.Match(k, Invk_resume_enabled_)) resume_enabled = m.ReadYn("v");
   else if (ctx.Match(k, Invk_ns_ids_)) ns_ids = Int_.Ary_parse(m.ReadStr("v"), "|");
   else if (ctx.Match(k, Invk_src_bin_mgr__fsdb_version_))
     src_bin_mgr__fsdb_version = m.ReadStr("v");
   else if (ctx.Match(k, Invk_src_bin_mgr__fsdb_skip_wkrs_))
     src_bin_mgr__fsdb_skip_wkrs = m.ReadStrAry("v", "|");
   else if (ctx.Match(k, Invk_src_bin_mgr__wmf_enabled_)) src_bin_mgr__wmf_enabled = m.ReadYn("v");
   else if (ctx.Match(k, Invk_src_bin_mgr__cache_enabled_))
     src_bin_mgr__cache_enabled = m.ReadYn("v");
   else if (ctx.Match(k, Invk_trg_bin_mgr__fsdb_version_))
     trg_bin_mgr__fsdb_version = m.ReadStr("v");
   else if (ctx.Match(k, Invk_poll_mgr)) return poll_mgr;
   else if (ctx.Match(k, Invk_download_keep_tier_ids))
     download_keep_tier_ids = Int_.Ary_parse(m.ReadStr("v"), "|");
   else if (ctx.Match(k, Invk_download_size_max))
     download_size_max = Io_size_.To_long_by_msg_mb(m, download_size_max);
   else return Gfo_invk_.Rv_unhandled;
   return this;
 }
コード例 #11
0
 public Object Invk(GfsCtx ctx, int ikey, String k, GfoMsg m) {
   if (ctx.Match(k, Gfui_clipboard_.Invk_copy)) Send_key(IptKey_.Ctrl, 'C');
   else if (ctx.Match(k, Gfui_clipboard_.Invk_select_all)) Send_key(IptKey_.Ctrl, 'A');
   else return Gfo_invk_.Rv_unhandled;
   return this;
 }
コード例 #12
0
 public Object Invk(GfsCtx ctx, int ikey, String k, GfoMsg m) {
   if (ctx.Match(k, Invk_search)) return page_search;
   else return Gfo_invk_.Rv_unhandled;
 }
コード例 #13
0
 public Object Invk(GfsCtx ctx, int ikey, String k, GfoMsg m) {
   if (ctx.Match(k, GxwElem_lang.AlignH_cmd)) AlignH_(GfuiAlign_.cast(m.CastObj("v")));
   return txt_box.Invk(ctx, ikey, k, m);
 }
コード例 #14
0
ファイル: GfuiFocusXferBnd.java プロジェクト: qq98982/xowa
	public Object Invk(GfsCtx ctx, int ikey, String k, GfoMsg m) {
		if		(ctx.Match(k, Invk_FocusNext))			Focus(GfuiElem_.cast_(ctx.MsgSrc()), true);
		else if	(ctx.Match(k, Invk_FocusPrev))			Focus(GfuiElem_.cast_(ctx.MsgSrc()), false);
		else return GfoInvkAble_.Rv_unhandled;
		return this;
	}	public static final String Invk_FocusNext = "FocusNext", Invk_FocusPrev = "FocusPrev";