Examples of queueEvent()


Examples of org.openfaces.component.panel.MultiPageContainer.queueEvent()

    protected void changeTabIndex(UIComponent component, int selectedIndex) {
        MultiPageContainer container = (MultiPageContainer) component;
        int oldSelectedIndex = container.getSelectedIndex();
        container.setSelectedIndex(selectedIndex);
        if (oldSelectedIndex != selectedIndex) {
            container.queueEvent(new SelectionChangeEvent(container, oldSelectedIndex, selectedIndex));
        }
    }

    protected void encodePane(
            FacesContext context,
View Full Code Here

Examples of org.openfaces.component.select.TabSet.queueEvent()

    protected void changeTabIndex(UIComponent component, int selectedIndex) {
        TabSet tabSet = (TabSet) component;
        int oldSelectedIndex = tabSet.getSelectedIndex();
        if (oldSelectedIndex != selectedIndex) {
            tabSet.setSelectedIndex(selectedIndex);
            tabSet.queueEvent(new SelectionChangeEvent(tabSet, oldSelectedIndex, selectedIndex));
        }

        List<Object> tabItems = getTabItems(tabSet);
        Object tabItem = tabItems.get(selectedIndex);
        Object tabValue = (tabItem instanceof TabSetItem) ? ((TabSetItem) tabItem).getItemValue() : null;
View Full Code Here

Examples of org.openfaces.component.tagcloud.TagCloud.queueEvent()

        if (requestParameters.containsKey(clientId+DEFAULT_ID_FIELD)) {
            String id = requestParameters.get(clientId+DEFAULT_ID_FIELD);
            String preId = cloud.getClientId(context) + TagCloud.DEFAULT_ITEM_ID_PREFIX;
            int index = preId.length();
            if (index < id.length() && preId.equals(id.substring(0, index))) {
                cloud.queueEvent(new ActionEvent(cloud));
                cloud.selectItemObject(context, id.substring(index));
            }
        }
    }
View Full Code Here

Examples of org.openfaces.component.timetable.EventEditorPage.queueEvent()

        if (!requestParameterMap.containsKey(clientId))
            return;
        EventEditorPage eventEditorPage = (EventEditorPage) component;
        FacesEvent event = new ActionEvent(eventEditorPage);
        event.setPhaseId(PhaseId.INVOKE_APPLICATION);
        eventEditorPage.queueEvent(event);
    }
}
View Full Code Here

Examples of org.richfaces.component.AbstractCalendar.queueEvent()

        Map<String, String> requestParameterMap = context.getExternalContext().getRequestParameterMap();

        String clientId = calendar.getClientId(context);
        String currentDateString = (String) requestParameterMap.get(clientId + CURRENT_DATE_INPUT);
        if (currentDateString != null) {
            calendar.queueEvent(new CurrentDateChangeEvent(calendar, currentDateString));
        }

        String selectedDateString = requestParameterMap.get(clientId + "InputDate");
        if (selectedDateString != null) {
            calendar.setSubmittedValue(selectedDateString);
View Full Code Here

Examples of org.richfaces.component.AbstractFileUpload.queueEvent()

                    Iterable<UploadedFile> uploadedFiles = initializeUploadedFiles(externalContext, httpRequest, uid);

                    for (UploadedFile file : uploadedFiles) {
                        if (fileUpload.acceptsFile(file)) {
                            fileUpload.queueEvent(new FileUploadEvent(fileUpload, file));
                        }
                    }
                }
            }
        }
View Full Code Here

Examples of org.richfaces.component.UIMenuItem.queueEvent()

                if (menuItem.isImmediate()) {
                  actionEvent.setPhaseId(PhaseId.APPLY_REQUEST_VALUES);
                } else {
                    actionEvent.setPhaseId(PhaseId.INVOKE_APPLICATION);
                }
                menuItem.queueEvent(actionEvent);
            }
        }
    }
    // find and encode UIParameter's components
    public List encodeParams(FacesContext context, UIMenuItem component) throws IOException {
View Full Code Here

Examples of org.richfaces.component.UIMenuItem.queueEvent()

                if (menuItem.isImmediate()) {
                  actionEvent.setPhaseId(PhaseId.APPLY_REQUEST_VALUES);
                } else {
                    actionEvent.setPhaseId(PhaseId.INVOKE_APPLICATION);
                }
                menuItem.queueEvent(actionEvent);
            }
        }
    }
    // find and encode UIParameter's components
    public List encodeParams(FacesContext context, UIMenuItem component) throws IOException {
View Full Code Here

Examples of org.richfaces.component.UIMenuItem.queueEvent()

                  actionEvent.setPhaseId(PhaseId.APPLY_REQUEST_VALUES);
                 
                } else {
                    actionEvent.setPhaseId(PhaseId.INVOKE_APPLICATION);
                }
                menuItem.queueEvent(actionEvent);
            }
        }
    }
    // find and encode UIParameter's components
    public List encodeParams(FacesContext context, UIMenuItem component) throws IOException {
View Full Code Here

Examples of org.richfaces.component.UIMenuItem.queueEvent()

                if (menuItem.isImmediate()) {
                  actionEvent.setPhaseId(PhaseId.APPLY_REQUEST_VALUES);
                } else {
                    actionEvent.setPhaseId(PhaseId.INVOKE_APPLICATION);
                }
                menuItem.queueEvent(actionEvent);
            }
        }
    }
    // find and encode UIParameter's components
    public List encodeParams(FacesContext context, UIMenuItem component) throws IOException {
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.