Examples of ColumnProperty


Examples of com.vaadin.data.util.sqlcontainer.ColumnProperty

    }

    protected Map<String, Object> generateColumnToValueMap(RowItem item) {
        Map<String, Object> columnToValueMap = new HashMap<String, Object>();
        for (Object id : item.getItemPropertyIds()) {
            ColumnProperty cp = (ColumnProperty) item.getItemProperty(id);
            /* Prevent "rownum" usage as a column name if MSSQL or ORACLE */
            if ((this instanceof MSSQLGenerator || this instanceof OracleGenerator)
                    && cp.getPropertyId().equalsIgnoreCase("rownum")) {
                continue;
            }
            Object value = cp.getValue() == null ? null : cp.getValue();
            /* Only include properties whose read-only status can be altered */
            if (cp.isReadOnlyChangeAllowed() && !cp.isVersionColumn()) {
                columnToValueMap.put(cp.getPropertyId(), value);
            }
        }
        return columnToValueMap;
    }
View Full Code Here

Examples of com.vaadin.data.util.sqlcontainer.ColumnProperty

    }

    protected Map<String, Object> generateRowIdentifiers(RowItem item) {
        Map<String, Object> rowIdentifiers = new HashMap<String, Object>();
        for (Object id : item.getItemPropertyIds()) {
            ColumnProperty cp = (ColumnProperty) item.getItemProperty(id);
            /* Prevent "rownum" usage as a column name if MSSQL or ORACLE */
            if ((this instanceof MSSQLGenerator || this instanceof OracleGenerator)
                    && cp.getPropertyId().equalsIgnoreCase("rownum")) {
                continue;
            }
            Object value = cp.getValue() == null ? null : cp.getValue();
            if (!cp.isReadOnlyChangeAllowed() || cp.isVersionColumn()) {
                rowIdentifiers.put(cp.getPropertyId(), value);
            }
        }
        return rowIdentifiers;
    }
View Full Code Here

Examples of com.vaadin.data.util.sqlcontainer.ColumnProperty

    }

    protected Map<String, Object> generateColumnToValueMap(RowItem item) {
        Map<String, Object> columnToValueMap = new HashMap<String, Object>();
        for (Object id : item.getItemPropertyIds()) {
            ColumnProperty cp = (ColumnProperty) item.getItemProperty(id);
            /* Prevent "rownum" usage as a column name if MSSQL or ORACLE */
            if ((this instanceof MSSQLGenerator || this instanceof OracleGenerator)
                    && cp.getPropertyId().equalsIgnoreCase("rownum")) {
                continue;
            }
            if (cp.isPersistent()) {
                columnToValueMap.put(cp.getPropertyId(), cp.getValue());
            }
        }
        return columnToValueMap;
    }
View Full Code Here

Examples of com.vaadin.data.util.sqlcontainer.ColumnProperty

    }

    protected Map<String, Object> generateRowIdentifiers(RowItem item) {
        Map<String, Object> rowIdentifiers = new HashMap<String, Object>();
        for (Object id : item.getItemPropertyIds()) {
            ColumnProperty cp = (ColumnProperty) item.getItemProperty(id);
            /* Prevent "rownum" usage as a column name if MSSQL or ORACLE */
            if ((this instanceof MSSQLGenerator || this instanceof OracleGenerator)
                    && cp.getPropertyId().equalsIgnoreCase("rownum")) {
                continue;
            }

            if (cp.isRowIdentifier()) {
                Object value;
                if (cp.isPrimaryKey()) {
                    // If the value of a primary key has changed, its old value
                    // should be used to identify the row (#9145)
                    value = cp.getOldValue();
                } else {
                    value = cp.getValue();
                }
                rowIdentifiers.put(cp.getPropertyId(), value);
            }
        }
        return rowIdentifiers;
    }
View Full Code Here

Examples of com.vaadin.data.util.sqlcontainer.ColumnProperty

    }

    protected Map<String, Object> generateColumnToValueMap(RowItem item) {
        Map<String, Object> columnToValueMap = new HashMap<String, Object>();
        for (Object id : item.getItemPropertyIds()) {
            ColumnProperty cp = (ColumnProperty) item.getItemProperty(id);
            /* Prevent "rownum" usage as a column name if MSSQL or ORACLE */
            if ((this instanceof MSSQLGenerator || this instanceof OracleGenerator)
                    && cp.getPropertyId().equalsIgnoreCase("rownum")) {
                continue;
            }
            if (cp.isPersistent()) {
                columnToValueMap.put(cp.getPropertyId(), cp.getValue());
            }
        }
        return columnToValueMap;
    }
View Full Code Here

Examples of com.vaadin.data.util.sqlcontainer.ColumnProperty

    }

    protected Map<String, Object> generateRowIdentifiers(RowItem item) {
        Map<String, Object> rowIdentifiers = new HashMap<String, Object>();
        for (Object id : item.getItemPropertyIds()) {
            ColumnProperty cp = (ColumnProperty) item.getItemProperty(id);
            /* Prevent "rownum" usage as a column name if MSSQL or ORACLE */
            if ((this instanceof MSSQLGenerator || this instanceof OracleGenerator)
                    && cp.getPropertyId().equalsIgnoreCase("rownum")) {
                continue;
            }

            if (cp.isRowIdentifier()) {
                Object value;
                if (cp.isPrimaryKey()) {
                    // If the value of a primary key has changed, its old value
                    // should be used to identify the row (#9145)
                    value = cp.getOldValue();
                } else {
                    value = cp.getValue();
                }
                rowIdentifiers.put(cp.getPropertyId(), value);
            }
        }
        return rowIdentifiers;
    }
View Full Code Here

Examples of com.vaadin.data.util.sqlcontainer.ColumnProperty

        }
        return result;
    }

    private void setVersionColumnFlagInProperty(RowItem row) {
        ColumnProperty versionProperty = (ColumnProperty) row
                .getItemProperty(versionColumn);
        if (versionProperty != null) {
            versionProperty.setVersionColumn(true);
        }
    }
View Full Code Here

Examples of org.cafesip.gwtcomp.client.ui.ColumnProperty

    {
        getTitleBar().setText("Context List");
        getTitleBar().setLevel(2);

        ColumnProperty[] cp = new ColumnProperty[] {
                new ColumnProperty("Name", new StringComparator(0, true),
                        new StringComparator(0, false)),
                new ColumnProperty("Description", null, null),
                new ColumnProperty("Path", null, null),
                new ColumnProperty("Type", new StringComparator(3, true),
                        new StringComparator(3, false)),
                new ColumnProperty("Operations", null, null) };
        cp[4].setHorizontalAlignment(HasHorizontalAlignment.ALIGN_CENTER);
       
        SuperTableProperty property = new SuperTableProperty();
        property.setPagingEnabled(true);
        property.setRecordsPerPage(10);
View Full Code Here

Examples of org.cafesip.gwtcomp.client.ui.ColumnProperty

        getTitleBar().setLevel(2);

        getMessageBar().setVisible(false);

        ColumnProperty[] cp = new ColumnProperty[] {
                new ColumnProperty("Name", new StringComparator(0, true),
                        new StringComparator(0, false)),
                new ColumnProperty("Description", null, null),
                new ColumnProperty("Context", new StringComparator(2, true),
                        new StringComparator(2, false)),
                new ColumnProperty("Connector", new StringComparator(3, true),
                        new StringComparator(3, false)),
                new ColumnProperty("Security", null, null),
                new ColumnProperty("Operations", null, null) };
        cp[1].setWidth("40%");

        SuperTableProperty property = new SuperTableProperty();
        property.setPagingEnabled(true);
        property.setRecordsPerPage(10);
View Full Code Here

Examples of org.cafesip.gwtcomp.client.ui.ColumnProperty

                }
            }
        }

        ColumnProperty[] cp = new ColumnProperty[] {
                new ColumnProperty("Name", new StringComparator(0, true),
                        new StringComparator(0, false)),
                new ColumnProperty("Default Realm", new BooleanComparator(1,
                        true), new BooleanComparator(1, false)),
                new ColumnProperty("Path", new StringComparator(2, true),
                        new StringComparator(2, false)),
                new ColumnProperty("Operations", null, null) };
        cp[1].setHorizontalAlignment(HasHorizontalAlignment.ALIGN_CENTER);
        cp[3].setHorizontalAlignment(HasHorizontalAlignment.ALIGN_CENTER);       

        SuperTableProperty property = new SuperTableProperty();
        property.setPagingEnabled(true);
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.