mirror of
https://github.com/gnosygnu/xowa.git
synced 2026-03-02 03:49:30 +00:00
Cfg: Convert rest of pages
This commit is contained in:
@@ -25,16 +25,30 @@ public class Xow_module_mgr implements Gfo_invk {
|
||||
regy.Add_bry_obj(Xoh_head_itm_.Key__navframe , itm__navframe);
|
||||
regy.Add_bry_obj(Xoh_head_itm_.Key__title_rewrite , itm__title_rewrite);
|
||||
}
|
||||
public void Init_by_wiki(Xowe_wiki wiki) {
|
||||
popup_mgr.Init_by_wiki(wiki);
|
||||
}
|
||||
public boolean Collapsible__toc() {return collapsible__toc;} private boolean collapsible__toc;
|
||||
public boolean Collapsible__collapsible() {return collapsible__collapsible;} private boolean collapsible__collapsible;
|
||||
public boolean Collapsible__navframe() {return collapsible__navframe;} private boolean collapsible__navframe;
|
||||
public Xow_module_base Itm__top_icon() {return itm__top_icon;} private Xow_module_base itm__top_icon = new Xow_module_base();
|
||||
public Xow_module_base Itm__navframe() {return itm__navframe;} private Xow_module_base itm__navframe = new Xow_module_base();
|
||||
public Xow_module_base Itm__title_rewrite() {return itm__title_rewrite;} private Xow_module_base itm__title_rewrite = new Xow_module_base();
|
||||
public Xow_popup_mgr Popup_mgr() {return popup_mgr;} private Xow_popup_mgr popup_mgr;
|
||||
public void Init_by_wiki(Xowe_wiki wiki) {
|
||||
popup_mgr.Init_by_wiki(wiki);
|
||||
wiki.App().Cfg().Bind_many_wiki(this, wiki, Cfg__collapsible__toc, Cfg__collapsible__collapsible, Cfg__collapsible__navframe);
|
||||
}
|
||||
public Xow_module_base Get(byte[] key) {return (Xow_module_base)regy.Get_by_bry(key);}
|
||||
public Object Invk(GfsCtx ctx, int ikey, String k, GfoMsg m) {
|
||||
if (ctx.Match(k, Invk_get)) return Get(m.ReadBry("v"));
|
||||
if (ctx.Match(k, Invk_get)) return Get(m.ReadBry("v"));
|
||||
else if (ctx.Match(k, Cfg__collapsible__toc)) collapsible__toc = m.ReadYn("v");
|
||||
else if (ctx.Match(k, Cfg__collapsible__collapsible)) collapsible__collapsible = m.ReadYn("v");
|
||||
else if (ctx.Match(k, Cfg__collapsible__navframe)) collapsible__navframe = m.ReadYn("v");
|
||||
else return Gfo_invk_.Rv_unhandled;
|
||||
return this;
|
||||
} private static final String Invk_get = "get";
|
||||
|
||||
private static final String
|
||||
Cfg__collapsible__toc = "xowa.html.wiki.collapsible.toc"
|
||||
, Cfg__collapsible__collapsible = "xowa.html.wiki.collapsible.collapsible"
|
||||
, Cfg__collapsible__navframe = "xowa.html.wiki.collapsible.navframe"
|
||||
;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user