Package org.openfaces.component.input

Examples of org.openfaces.component.input.DropDownField


        initDropDown(dropDown);
    }


    public void update(FacesContext context, CompositeFilter compositeFilter, FilterRow filterRow, UIComponent container) {
        DropDownField dropDown = getDropDown(container);
        if (dropDown == null) {
            return;
        }
        criterion.setArg1(dropDown.getValue());

        if (filterProperty.getType() == FilterType.TEXT) {
            criterion.setCaseSensitive(filterProperty.isCaseSensitive());
        }
    }
View Full Code Here


        };

    }

    private UIComponent getResourceField(FacesContext context, EventEditorDialog dialog) {
        DropDownField field = Components.getOrCreateFacet(context, dialog, DropDownField.COMPONENT_TYPE,
                "resourceField", DropDownField.class);

        List<TimetableResource> resources = (List<TimetableResource>) dialog.getAttributes().get(
                DayTableRenderer.EVENTEDITOR_RESOURCES_ATTR);
        for (TimetableResource resource : resources) {
            field.getChildren().add(new DropDownItem(resource.getName()));
        }

        field.setCustomValueAllowed(false);
        return field;
    }
View Full Code Here

TOP

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

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.