mirror of
https://github.com/gnosygnu/xowa.git
synced 2026-03-02 03:49:30 +00:00
v3.1.1.1
This commit is contained in:
@@ -19,7 +19,7 @@ package gplx.xowa.htmls.portal; import gplx.*; import gplx.xowa.*; import gplx.x
|
||||
import gplx.core.brys.fmtrs.*;
|
||||
import gplx.xowa.htmls.hrefs.*;
|
||||
import gplx.xowa.wikis.nss.*;
|
||||
public class Xoh_subpages_bldr extends gplx.core.brys.Bfr_arg_base {
|
||||
public class Xoh_subpages_bldr implements gplx.core.brys.Bfr_arg {
|
||||
private Bry_bfr tmp_bfr = Bry_bfr.reset_(255), ttl_bfr = Bry_bfr.reset_(255);
|
||||
private byte[][] segs;
|
||||
public byte[] Bld(Xow_ns_mgr ns_mgr, Xoa_ttl ttl) {
|
||||
@@ -34,7 +34,7 @@ public class Xoh_subpages_bldr extends gplx.core.brys.Bfr_arg_base {
|
||||
fmtr_grp.Bld_bfr(tmp_bfr, this);
|
||||
return tmp_bfr.To_bry_and_clear();
|
||||
}
|
||||
@Override public void Bfr_arg__add(Bry_bfr bfr) {
|
||||
public void Bfr_arg__add(Bry_bfr bfr) {
|
||||
int segs_len = segs.length - 1; // last seg is current page; do not print
|
||||
for (int i = 0; i < segs_len; ++i) {
|
||||
byte[] dlm = null;
|
||||
|
||||
@@ -18,14 +18,14 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
package gplx.xowa.htmls.portal.vnts; import gplx.*; import gplx.xowa.*; import gplx.xowa.htmls.*; import gplx.xowa.htmls.portal.*;
|
||||
import gplx.core.brys.fmtrs.*;
|
||||
import gplx.xowa.langs.vnts.*;
|
||||
public class Vnt_mnu_grp_fmtr extends gplx.core.brys.Bfr_arg_base {
|
||||
public class Vnt_mnu_grp_fmtr implements gplx.core.brys.Bfr_arg {
|
||||
private final Xolg_vnt_itm_fmtr itm_fmtr = new Xolg_vnt_itm_fmtr();
|
||||
private Xol_vnt_regy mgr; private byte[] page_vnt;
|
||||
public void Init(Xol_vnt_regy mgr, byte[] wiki_domain, byte[] page_href, byte[] page_vnt) {
|
||||
this.mgr = mgr; this.page_vnt = page_vnt;
|
||||
itm_fmtr.Init(mgr, wiki_domain, page_href, page_vnt);
|
||||
}
|
||||
@Override public void Bfr_arg__add(Bry_bfr bfr) {
|
||||
public void Bfr_arg__add(Bry_bfr bfr) {
|
||||
Xol_vnt_itm mnu_itm = mgr.Get_by(page_vnt);
|
||||
fmtr.Bld_bfr_many(bfr, mnu_itm == null ? Bry_.Empty : mnu_itm.Name(), itm_fmtr);
|
||||
}
|
||||
@@ -41,10 +41,10 @@ public class Vnt_mnu_grp_fmtr extends gplx.core.brys.Bfr_arg_base {
|
||||
), "grp_text", "itms"
|
||||
);
|
||||
}
|
||||
class Xolg_vnt_itm_fmtr extends gplx.core.brys.Bfr_arg_base {
|
||||
class Xolg_vnt_itm_fmtr implements gplx.core.brys.Bfr_arg {
|
||||
private Xol_vnt_regy mgr; private byte[] wiki_domain, page_href, page_vnt;
|
||||
public void Init(Xol_vnt_regy mgr, byte[] wiki_domain, byte[] page_href, byte[] page_vnt) {this.mgr = mgr; this.wiki_domain = wiki_domain; this.page_href = page_href; this.page_vnt = page_vnt;}
|
||||
@Override public void Bfr_arg__add(Bry_bfr bfr) {
|
||||
public void Bfr_arg__add(Bry_bfr bfr) {
|
||||
int len = mgr.Len();
|
||||
for (int i = 0; i < len; ++i) {
|
||||
Xol_vnt_itm itm = mgr.Get_at(i); if (!itm.Visible()) continue;
|
||||
|
||||
Reference in New Issue
Block a user