Package org.openfaces.component.input

Examples of org.openfaces.component.input.DropDownPopup


            dropDownField.getAttributes().put(ITEM_VALUES_ATTR_NAME, itemValues);
        } else {
            dropDownField.getAttributes().remove(ITEM_VALUES_ATTR_NAME);
        }

        DropDownPopup popup = dropDownField.getPopup();
        popup.setDropDownList(items);
        popup.encodeAll(context);
        Rendering.encodeClientActions(context, uiComponent);

        dropDownField.getAttributes().put(ATTR_TOTAL_ITEM_COUNT, totalItemCount);
        dropDownField.getAttributes().put(ATTR_PAGE_SIZE, pageSize);
    }
View Full Code Here


    }
   
    protected InitScript renderInitScript(FacesContext context, DropDownComponent dropDown) throws IOException {
        DropDownFieldBase dropDownField = (DropDownFieldBase) dropDown;

        DropDownPopup popup = dropDownField.getPopup();

        ScriptBuilder buf = new ScriptBuilder();
        TableStructure tableStructure = popup.getChildData().getTableStructure();
        buf.initScript(context, dropDownField, "O$.DropDownField._init",
                dropDownField.getTimeout(),
                dropDownField.getListAlignment(),

                Styles.getStyleClassesStr(context, dropDownField, dropDownField.getRolloverListItemStyle(),
                        dropDownField.getRolloverListItemClass(), DefaultStyles.getDefaultSelectionStyle(), StyleGroup.rolloverStyleGroup()),

                getItemValuesArray(getItemValues(dropDown)),
                dropDownField.getCustomValueAllowed(),
                dropDownField.isRequired(),
                dropDownField.getSuggestionMode(),
                dropDownField.getSuggestionDelay(),
                dropDownField.getSuggestionMinChars(),
                isManualListOpeningAllowed(dropDownField),
                dropDownField.getAutoComplete(),
                dropDownField.getAttributes().get(ATTR_TOTAL_ITEM_COUNT),
                dropDownField.getAttributes().get(ATTR_PAGE_SIZE),

                tableStructure.getInitParam(context, POPUP_TABLE_DEFAULT_STYLES),
                dropDownField.isCachingAllowed(),
                getItemPresentationColumn(dropDown),
                dropDownField.getChangeValueOnSelect()
        );
        popup.resetChildData();
        if (!dropDown.isReadonly()) {
            Map<String, Script> eventHandlers = new HashMap<String, Script>();

            String onchange = dropDownField.getOnchange();
            if (onchange != null)
View Full Code Here

                itemValues = prepareItemValues(context, dropDownField, items);
            } finally {
                requestMap.put(var, oldVarValue);
            }

            DropDownPopup popup = dropDownField.getPopup();
            popup.setDropDownList(items);

            DropDownPopup.ChildData childData = popup.getChildData();
            popup.renderRows(context, dropDownField, childData, items, pageStart);
            popup.resetChildData();
        } finally {
            context.setResponseWriter(responseWriter);
        }

        ScriptBuilder sb = new ScriptBuilder();
View Full Code Here

TOP

Related Classes of org.openfaces.component.input.DropDownPopup

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.