Package com.vaadin.data.util

Examples of com.vaadin.data.util.ObjectProperty


     *
     * @param content
     * @param contentMode
     */
    public Label(String content, int contentMode) {
        this(new ObjectProperty(content, String.class), contentMode);
    }
View Full Code Here


    /**
     * Creates an a new ProgressIndicator.
     */
    public ProgressIndicator() {
        setPropertyDataSource(new ObjectProperty(new Float(0), Float.class));
    }
View Full Code Here

     * Creates a new instance of ProgressIndicator with given state.
     *
     * @param value
     */
    public ProgressIndicator(Float value) {
        setPropertyDataSource(new ObjectProperty(value, Float.class));
    }
View Full Code Here

    private Item cloneItem(Item originalItem) {
        PropertysetItem newItem = new PropertysetItem();
        for (Object propertyId : originalItem.getItemPropertyIds()) {
            Property originalProperty = originalItem.getItemProperty(propertyId);
            newItem.addItemProperty(propertyId,
                    new ObjectProperty(
                            originalProperty.getValue(),
                            originalProperty.getType(),
                            originalProperty.isReadOnly()
                    ));
        }
View Full Code Here

                value = reverseIndexColumnValue;
            } else {
                value = this.definition.getPropertyDefaultValue(propertyId);
            }

            item.addItemProperty(propertyId, new ObjectProperty(
                    value,
                    this.definition.getPropertyType(propertyId),
                    this.definition.isPropertyReadOnly(propertyId)
            ));
View Full Code Here

    public void addProperty(Object propertyId, Class<?> type,
                            Object defaultValue, boolean readOnly, boolean sortable) {
        for (Item item : this.items) {
            ((PropertysetItem) item).addItemProperty(
                    propertyId, new ObjectProperty(defaultValue, type, readOnly));

        }
    }
View Full Code Here

            for (Object propertyId : queryDefinition.getPropertyIds()) {
                if (compositeItem.getItemProperty(propertyId) == null) {
                    compositeItem.addItemProperty(
                            propertyId,
                            new ObjectProperty(queryDefinition
                                    .getPropertyDefaultValue(propertyId),
                                    queryDefinition.getPropertyType(propertyId),
                                    queryDefinition.isPropertyReadOnly(propertyId)));
                }
            }
View Full Code Here

            for (final Object propertyId : queryDefinition.getPropertyIds()) {
                if (compositeItem.getItemProperty(propertyId) == null) {
                    compositeItem.addItemProperty(
                            propertyId,
                            new ObjectProperty(queryDefinition.getPropertyDefaultValue(propertyId), queryDefinition
                                    .getPropertyType(propertyId), queryDefinition.isPropertyReadOnly(propertyId)));
                }
            }

            return compositeItem;
View Full Code Here

    private Item cloneItem(Item originalItem) {
        PropertysetItem newItem = new PropertysetItem();
        for (Object propertyId : originalItem.getItemPropertyIds()) {
            Property originalProperty = originalItem.getItemProperty(propertyId);
            newItem.addItemProperty(propertyId,
                    new ObjectProperty(
                            originalProperty.getValue(),
                            originalProperty.getType(),
                            originalProperty.isReadOnly()
                    ));
        }
View Full Code Here

                value = reverseIndexColumnValue;
            } else {
                value = this.definition.getPropertyDefaultValue(propertyId);
            }

            item.addItemProperty(propertyId, new ObjectProperty(
                    value,
                    this.definition.getPropertyType(propertyId),
                    this.definition.isPropertyReadOnly(propertyId)
            ));
View Full Code Here

TOP

Related Classes of com.vaadin.data.util.ObjectProperty

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.