Package org.zkoss.zul

Examples of org.zkoss.zul.Grid$ModelInitListener


  }

  private void _init() {
    manager=(ItemManager)WebApplication.lookup(ItemManager.LocalJNDIName);
    Grid itemsGrid=(Grid)getFellow("itemsGrid");
    itemsGrid.setRowRenderer(new ItemRowRenderer());
    itemsGrid.setModel(new ListModelList());
    //Setup search
    Textbox searchText=(Textbox)getFellow("searchItemText");
    searchText.addEventListener("onChanging", new EventListener(){
      public void onEvent(Event event) throws Exception {
        search(((InputEvent)event).getValue());
View Full Code Here


      }
    });
  }

  private void setupPaging() {
    Grid itemsGrid=(Grid)getFellow("itemsGrid");

  }
View Full Code Here


 

  private void updateGrid(String searchKey) {
    Grid itemsGrid=(Grid)getFellow("itemsGrid");
    ListModelList model=(ListModelList)itemsGrid.getModel();
    model.clear();
    model.addAll(manager.searchByCode(searchKey, 0L, 18));

  }
View Full Code Here

    model.addAll(manager.searchByCode(searchKey, 0L, 18));

  }

  private void updateGridWithDescriptionSearch(String searchKey) {
    Grid itemsGrid=(Grid)getFellow("itemsGrid");
    ListModelList model=(ListModelList)itemsGrid.getModel();
    model.clear();
    model.addAll(manager.searchByShortDescription(searchKey, 0L, 18));

  }
View Full Code Here

  }



  private void updateGridWithEANSearch(String searchKey) {
    Grid itemsGrid=(Grid)getFellow("itemsGrid");
    ListModelList model=(ListModelList)itemsGrid.getModel();
    model.clear();
    model.addAll(manager.searchByEAN(searchKey, 0L, 0));


  }
View Full Code Here

    feedGrid();
  }

  private void _init(){
    manager=(WarehouseManager)WebApplication.lookup(WarehouseManager.LocalJNDIName);
    Grid warehousesGrid=(Grid)getFellow("warehousesGrid");
    warehousesGrid.setRowRenderer(new WarehouseRowRenderer());
    warehousesGrid.setModel(new ListModelList());
  }
View Full Code Here

  private void createMenubar() {
    OptionBinder.bindStandardOptions(this, "warehousesGrid", "details/WarehouseDetails.zul");
  }
   
  private void refresh(){
    Grid warehousesGrid=(Grid)getFellow("warehousesGrid");
    warehousesGrid.removeChild(warehousesGrid.getRows());
    Rows newRows=new Rows();
    warehousesGrid.appendChild(newRows);
    feedGrid();
  }
View Full Code Here

    warehousesGrid.appendChild(newRows);
    feedGrid();
  }
 
  private void feedGrid() {
    Grid warehousesGrid=(Grid)getFellow("warehousesGrid");
    ListModelList model=(ListModelList)warehousesGrid.getModel();
    model.clear();
    model.addAll(manager.findAll())
  }
View Full Code Here

    child.doModal();
    refresh();
  }
 
  private void feedGrid() {
    Grid companiesGrid=(Grid)getFellow("uomGrid");
    Rows gridRows=companiesGrid.getRows();
    UnitOfMeasureManager manager=(UnitOfMeasureManager)WebApplication.lookup(UnitOfMeasureManager.LocalJNDIName);
    List<UnitOfMeasure> divisions=manager.findAll();
    Iterator<UnitOfMeasure> it=divisions.iterator();
    while(it.hasNext()){
      Row row=new Row();
View Full Code Here

    }
   
  }
 
  private void refresh(){
    Grid divisionsGrid=(Grid)getFellow("uomGrid");
    divisionsGrid.removeChild(divisionsGrid.getRows());
    Rows newRows=new Rows();
    divisionsGrid.appendChild(newRows);
    feedGrid();
   
  }
View Full Code Here

TOP

Related Classes of org.zkoss.zul.Grid$ModelInitListener

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.