protected void onBtnApplyClick() throws PresentationLogicException { String filter = form.txtFilter().getValue(); if (filter == null || filter.equals("")) return; setupRootRows(); for (int i = 0; i < form.treFlags().getNodes().size(); i++) { TreeNode rootNode = form.treFlags().getNodes().get(i); IFlag[] coll = domain.listFlags((FlagCategoryVo)rootNode.getValue(), filter); populateGrid(rootNode,coll); rootNode.setExpanded(true); } form.txtFilter().setFocus(); }
private static FlagCategoryVo createCategory(String key, String name) { FlagCategoryVo vo = new FlagCategoryVo(); vo.setKey(key); vo.setName(name); return vo; }
private void setupRootRows() { clearFields(); form.treFlags().clear(); setChoices(); FlagCategoryVoCollection coll = domain.listCategories(); for (int i = 0; i < coll.size(); i++) { FlagCategoryVo cat = coll.get(i); addRootRow(cat); } form.getContextMenus().getConfigFlagUpdateItem().setVisible(false); form.getContextMenus().getConfigFlagResetItem().setVisible(false); }
private FlagCategoryVo createCategory(String key, String name) { FlagCategoryVo vo = new FlagCategoryVo(); vo.setKey(key); vo.setName(name); return vo; }
public IFlag[] listFlags(FlagCategoryVo catVo, String filter) { IFlag[] flags = ConfigFlag.getFlags(catVo.getKey()); ArrayList mf = new ArrayList(); for (int i = 0; i < flags.length; i++) { if (flags[i].getName().toUpperCase().indexOf(filter.toUpperCase()) != -1) mf.add(flags[i]); } IFlag[] ret = new IFlag[mf.size()]; mf.toArray(ret); return ret; }
public ConfigFlagAndCategory(FlagCategoryVo cat, AFlag flg, ConfigFlagListVo svdflag) { category = cat; flag = flg; savedflag = svdflag; }
public FlagCategoryVo getCategory() { return this.category; }
private void addRootRow(FlagCategoryVo cat) { TreeNode node = form.treFlags().getNodes().add(cat, cat.getName()); node.setExpandedImage(form.getImages().Core.OpenFolder); node.setCollapsedImage(form.getImages().Core.ClosedFolder); }
public IFlag[] listFlags(ims.admin.vo.FlagCategoryVo catVo) { //FlagCategory cat = CfgFlag.getCat(catVo.getKey()); //return cat.listFlags(); return null; }
public IFlag[] listFlags(FlagCategoryVo category, String filter) { // TODO Auto-generated method stub return null; }
public IFlag[] listFlags(FlagCategoryVo catVo) { IFlag[] flags = ConfigFlag.getFlags(catVo.getKey()); return flags; }