Examples of addEventListener()


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

  private void initAddr() {
    if (isCellHasDisplayString)
      return;

    final Combobox addr = (Combobox)content.getFellow("addrCombobox");
    addr.addEventListener(Events.ON_CHANGING, new EventListener() {
     
      @Override
      public void onEvent(Event evt) {
        displayHyperlink.setValue(((InputEvent)evt).getValue());
      }
View Full Code Here

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

        Datebox initDateBox = new Datebox();
        bindDateboxInitDate(initDateBox, (ResourcesCostCategoryAssignment) row.getValue());
        initDateBox.setConstraint("no empty:" + _("Start date cannot be empty"));
        row.appendChild(initDateBox);

        initDateBox.addEventListener("onChange", new EventListener() {

            @Override
            public void onEvent(Event event) {
                // Updates the constraint of the endDate box with the new date
                LocalDate initDate = ((ResourcesCostCategoryAssignment)row.getValue()).getInitDate();
View Full Code Here

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

            value.setDisabled(isReadOnlyAdvanceMeasurements()
                    || manageOrderElementAdvancesModel
                            .hasConsolidatedAdvances(advanceMeasurement)
                    || manageOrderElementAdvancesModel.isAlreadyReportedProgress(advanceMeasurement));

            value.addEventListener(Events.ON_CHANGE, new EventListener() {

                @Override
                public void onEvent(Event event) {
                    if (manageOrderElementAdvancesModel
                            .canRemoveOrChange(advanceMeasurement)) {
View Full Code Here

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

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

            final Label compLabel = new Label(lastValue);

            if (subcontractorCommunication.getCommunicationType().equals(
                    CommunicationType.PROGRESS_UPDATE)) {
            compLabel.setTooltip(pp);
            compLabel.addEventListener(Events.ON_MOUSE_OVER,
                    new EventListener() {
                        @Override
                        public void onEvent(Event arg0) throws Exception {
                            List<SubcontractorCommunicationValue> model = subcontractorCommunication
                                    .getSubcontractorCommunicationValues();
View Full Code Here

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

            listPosition.setSelectedItem(listPosition.getItemAtIndex(0));
        } else {
            listPosition.setSelectedItem(listPosition.getItemAtIndex(1));
        }

        listPosition.addEventListener(Events.ON_SELECT, new EventListener() {
            @Override
            public void onEvent(Event event) {
                changePositionDescriptionField(listPosition
                            .getSelectedItem(), descriptionField);
                Util.reloadBindings(listDescriptionFields);
View Full Code Here

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

    for (final Object object : list) {
      if (object instanceof Listheader) {
        final Listheader lheader = (Listheader) object;

        if (lheader.getSortAscending() != null || lheader.getSortDescending() != null) {
          lheader.addEventListener("onSort", onSortEventListener);
        }
      }
    }
    listBox.setModel(this);
  }
View Full Code Here

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

    final Menuitem changeToTreeMenu = new Menuitem();
    changeToTreeMenu.setLabel(Labels.getLabel("menu_Item_backToTree"));
    changeToTreeMenu.setImage("/images/icons/refresh2_yellow_16x16.gif");
    changeToTreeMenu.setParent(menuBar);
    changeToTreeMenu.addEventListener("onClick", new EventListener() {
      @Override
      public void onEvent(Event event) throws Exception {
        // get an instance of the borderlayout defined in the
        // index.zul-file
        final Borderlayout bl = (Borderlayout) Path.getComponent("/outerIndexWindow/borderlayoutMain");
View Full Code Here

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

        return create(true);
    }

    private Menupopup create(boolean setContext) {
        Menupopup result = new Menupopup();
        result.addEventListener("onOpen", new EventListener() {

            @Override
            public void onEvent(Event event) {
                OpenEvent openEvent = (OpenEvent) event;
                referenced = (T) openEvent.getReference();
View Full Code Here

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

    @SuppressWarnings("unchecked")
    private void createPortlet(Map params)
    {
        final Panel topoPanel = (Panel)execution.createComponents("/topoPortlet.zul", null, params);
      
        topoPanel.addEventListener("onClose", new EventListener()
        {
            @Override
            public void onEvent(Event arg0) throws Exception
            {
                portletKeySet.remove(topoPanel.getAttribute("portletKey"));
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.