Package org.zkoss.canvas

Examples of org.zkoss.canvas.Canvas


  private Listbox shapeListBox;
 
  public void onClick$deleteBtn(Event event){
    Window canvasBoardWindow = (Window) zkpaintWindow
      .getFellow("canvasInc").getFellow("canvasBoardWindow");
    Canvas cvs1 = (Canvas) canvasBoardWindow.getFellow("cvs1");
    int size = shapeListBox.getItemCount();
    System.out.println(size);
    for(int i=size-1; i>-1; i--){
      if(!shapeListBox.getItemAtIndex(i).isSelected()) continue;
      System.out.println(i);
      cvs1.remove(i);
      ((ListModelList) shapeListBox.getModel()).remove(i);
    }
  }
View Full Code Here

TOP

Related Classes of org.zkoss.canvas.Canvas

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.