1
0
mirror of https://github.com/gnosygnu/xowa.git synced 2026-03-02 03:49:30 +00:00

'v3.6.3.1'

This commit is contained in:
gnosygnu
2016-06-19 23:58:10 -04:00
parent 96636f3161
commit d4e8590345
1960 changed files with 20790 additions and 9272 deletions

View File

@@ -17,15 +17,15 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package gplx.xowa.htmls.skins; import gplx.*; import gplx.xowa.*; import gplx.xowa.htmls.*;
import gplx.core.brys.fmtrs.*;
public class Xoh_skin_itm implements GfoInvkAble {
private final Bry_fmtr fmtr = Bry_fmtr.new_();
public class Xoh_skin_itm implements Gfo_invk {
private final Bry_fmtr fmtr = Bry_fmtr.new_();
public Xoh_skin_itm(String key, String fmt) {this.key = key; fmtr.Fmt_(fmt);}
public String Key() {return key;} private final String key;
public String Key() {return key;} private final String key;
public void Fmt_(String v) {fmtr.Fmt_(v);}
public Object Invk(GfsCtx ctx, int ikey, String k, GfoMsg m) {
if (ctx.Match(k, Invk_fmt)) return String_.new_u8(fmtr.Fmt());
else if (ctx.Match(k, Invk_fmt_)) fmtr.Fmt_(m.ReadStr("v"));
else return GfoInvkAble_.Rv_unhandled;
else return Gfo_invk_.Rv_unhandled;
return this;
}
private static final String

View File

@@ -16,8 +16,8 @@ You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package gplx.xowa.htmls.skins; import gplx.*; import gplx.xowa.*; import gplx.xowa.htmls.*;
public class Xoh_skin_mgr implements GfoInvkAble {
private final Xoh_skin_regy regy = new Xoh_skin_regy();
public class Xoh_skin_mgr implements Gfo_invk {
private final Xoh_skin_regy regy = new Xoh_skin_regy();
public Xoh_skin_mgr() {
read = make_and_add(regy, "read");
edit = make_and_add(regy, "edit");
@@ -34,7 +34,7 @@ public class Xoh_skin_mgr implements GfoInvkAble {
else if (ctx.Match(k, Invk_html)) return html;
else if (ctx.Match(k, Invk_html_)) html = regy.Get_by_key(m.ReadStr("v"));
else if (ctx.Match(k, Invk_set)) regy.Set(m.ReadStr("key"), m.ReadStr("fmt"));
else return GfoInvkAble_.Rv_unhandled;
else return Gfo_invk_.Rv_unhandled;
return this;
}
private static final String