Examples of UserError


Examples of com.pogofish.jadt.errors.UserError

            fail("Did not get an exception from syntax errors, got " + result);
        } catch (JADTUserErrorsException e) {
            final List<UserError> userErrors = e.getErrors();
            assertEquals(errors.size(), userErrors.size());
            for (SyntaxError error : errors) {
                final UserError userError = UserError._Syntactic(error);
                assertTrue("User errrors did not contain " + userError, userErrors.contains(userError));
            }
        }
    }
View Full Code Here

Examples of com.rapidminer.operator.UserError

        IEntityMapping user_mapping=new EntityMapping();
         IEntityMapping item_mapping=new EntityMapping();
        IRatings training_data=new Ratings();
       
        if (exampleSet.getAttributes().getSpecial("user identification") == null) {
                throw new UserError(this,105);
            }
       
       if (exampleSet.getAttributes().getSpecial("item identification") == null) {
                throw new UserError(this, 105);
            }
      
       if (exampleSet.getAttributes().getLabel() == null) {
                throw new UserError(this, 105);
            }
      
       Attributes Att = exampleSet.getAttributes();
       AttributeRole ur=Att.getRole("user identification");
       Attribute u=ur.getAttribute();
View Full Code Here

Examples of com.vaadin.server.UserError

        setDate(date);
        row.addComponent(date);

        date = new DateField("Error");
        setDate(date);
        date.setComponentError(new UserError("Fix it, now!"));
        row.addComponent(date);

        date = new DateField("Error, borderless");
        setDate(date);
        date.setComponentError(new UserError("Fix it, now!"));
        date.addStyleName("borderless");
        row.addComponent(date);

        CssLayout group = new CssLayout();
        group.setCaption("Grouped with a Button");
View Full Code Here

Examples of com.vaadin.server.UserError

                    }
                });

        actions.addComponent(b);

        final UserError e = new UserError("Test error");

        b = new Button("Toggle error", new Button.ClickListener() {
            @Override
            public void buttonClick(ClickEvent event) {
                if (testContent.getComponentError() == null) {
View Full Code Here

Examples of com.vaadin.server.UserError

            }
            testContainer.addComponent(cb);

            TextField tf = new TextField("TextField " + i);
            tf.setDescription("DESC SDKJSDF");
            tf.setComponentError(new UserError("dsfjklsdf"));
            testContainer.addComponent(tf);

            testContainer.addComponent(new DateField("DateField" + i));

            testContainer.addComponent(new Button("Button" + i));
View Full Code Here

Examples of com.vaadin.server.UserError

            Resource icon, boolean required) {
        TextField tf = new TextField();
        tf.setCaption(caption);
        tf.setIcon(icon);
        tf.setRequired(required);
        tf.setComponentError(new UserError("Test error message"));
        return tf;
    }
View Full Code Here

Examples of com.vaadin.server.UserError

        main.addComponent(new Label("DateField"));

        df = new DateField();
        main.addComponent(df);

        final ErrorMessage errorMsg = new UserError("User error " + df);
        df.setCaption("DateField caption " + df);
        df.setDescription("DateField description " + df);
        df.setComponentError(errorMsg);
        df.setImmediate(true);
        // FIXME: bug #1138 this makes datefield to render with unknown
View Full Code Here

Examples of com.vaadin.server.UserError

            if (icon) {
                b.setIcon(new ThemeResource("../runo/icons/"
                        + (largeIcons ? "64" : "16") + "/document.png"));
            }
            if (error) {
                b.setComponentError(new UserError("Error"));
            }
            if (disabled) {
                b.setEnabled(false);
            }
            if (sized) {
View Full Code Here

Examples of com.vaadin.server.UserError

                "baz", 12, Sex.MALE, null)), Arrays.asList(new String[] {
                "firstName", "lastName", "age" }));
        ((TextField) form.getField("firstName"))
                .setDescription("Fields own tooltip");

        form.setComponentError(new UserError("Form error"));
        addComponent(form);

    }
View Full Code Here

Examples of com.vaadin.server.UserError

     *
     * @param c
     */
    void test(AbstractComponent c) {
        final ClassResource res = new ClassResource("m.gif");
        final ErrorMessage errorMsg = new UserError("User error " + c);

        if ((c.getCaption() == null) || (c.getCaption().length() <= 0)) {
            c.setCaption("Caption " + c);
        }
        c.setDescription("Description " + c);
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.