Examples of AttributeDescriptor


Examples of org.opengis.feature.type.AttributeDescriptor

    protected boolean doCheckState() {
        EditFeature feature = getFeature();
        if (feature == null)
            return true; // cannot check right now
        SimpleFeatureType schema = feature.getFeatureType();
        AttributeDescriptor descriptor = schema.getDescriptor(getAttributeName());
        if (descriptor == null) {
            // the schema changed on us! help ...
            return false;
        }
        String text = textField.getText();

        if (text == null || text.length() == 0) {
            return !descriptor.isNillable();
        }
        Object value = Converters.convert(text, descriptor.getType().getBinding());
        try {
            Types.validate(descriptor, value);
            if( isRequired() && value == null ){
                errorMessage = getAttributeName() + " is required";
                showErrorMessage(errorMessage);
View Full Code Here

Examples of org.ufacekit.ui.AttributeDescriptor

    protected UITable createEndpointTableUI(UIComposite root) {
        BeanForm form = new BeanForm();

        UIFactory ui = root.getFactory();
        AttributeDescriptor bindingData = form.detailList("endpoints", Collection.class);

        UITable table = ui.newTable(root, new UITable.TableUIInfo(null));
        form.add(table, new UITable.TableBindingInfo(bindingData));

        ui.newTableColumn(table, new UITableColumn.TableColumnUIInfo(null, new CellLabelProvider() {
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.