Examples of PropertysetItem


Examples of com.vaadin.data.util.PropertysetItem

    public Item constructItem(int indexColumnValue, int reverseIndexColumnValue) {
        // since construct item needs to know what the current size is (including added items)
        // to populate Index and ReverseIndex we should provide it somehow here!
        // At the moment adding multiple items leads to strange behaviour.
        PropertysetItem item = new PropertysetItem();
        for (Object propertyId : this.definition.getPropertyIds()) {

            Object value = null;

            if ("Index".equals(propertyId)) {
                value = indexColumnValue;
            } else if ("ReverseIndex".equals(propertyId)) {
                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

Examples of com.vaadin.data.util.PropertysetItem

            copyItemValues(original, clone);
        }
    }

    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

Examples of com.vaadin.data.util.PropertysetItem

    public Item constructItem(int indexColumnValue, int reverseIndexColumnValue) {
        // since construct item needs to know what the current size is (including added items)
        // to populate Index and ReverseIndex we should provide it somehow here!
        // At the moment adding multiple items leads to strange behaviour.
        PropertysetItem item = new PropertysetItem();
        for (Object propertyId : this.definition.getPropertyIds()) {

            Object value = null;

            if ("Index".equals(propertyId)) {
                value = indexColumnValue;
            } else if ("ReverseIndex".equals(propertyId)) {
                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
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.