Package org.zkoss.zul

Examples of org.zkoss.zul.Div.addEventListener()


    private void addMessage(Level level, final Component label) {
        final Div messageEntry = createMessage(level, label);
        container.appendChild(messageEntry);
        Events.echoEvent(DETACH_EVENT_NAME, messageEntry, "");
        messageEntry.addEventListener(DETACH_EVENT_NAME, new EventListener() {

            @Override
            public void onEvent(Event event) {
                pendingToDetach.offer(new ComponentHolderTimestamped(
                        messageEntry));
View Full Code Here


      }
      if(start+count<pc){
        link =new Label(Integer.toString(start+count+1));
        box = new Div();
        box.setAttribute("goto",new Integer(start+count));
        box.addEventListener("onClick",pagesLinkListener);
        box.setSclass("mypaging2_page");
        box.setParent(_pagesBox);
        link.setParent(box);
      }else{
        box = new Div();
View Full Code Here

    if(ac+(_pagesSize/2)<pc){
      //forward
      link =new Label("...");
      box = new Div();
      box.setAttribute("goto",new Integer(ac+_pagesSize>pc?pc:ac+_pagesSize));
      box.addEventListener("onClick",pagesLinkListener);
      box.setSclass("mypaging2_page");
      box.setParent(_pagesBox);
      box.setTooltiptext("fast forward");
      link.setParent(box);
    }else{
View Full Code Here

    if(ac>_pagesSize/2){
      //rewind
      link =new Label("...");
      box = new Div();
      box.setAttribute("goto",new Integer(ac-_pagesSize<0?0:ac-_pagesSize));
      box.addEventListener("onClick",pagesLinkListener);
      box.setSclass("mypaging2_page");
      box.setParent(_pagesBox);
      box.setTooltiptext("fast rewind");
      link.setParent(box);
    }else{
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.