Package org.openiaml.model.model.visual

Examples of org.openiaml.model.model.visual.Label


    InputTextField field1 = assertHasInputTextField(form1, "field 1");
    InputTextField field2 = assertHasInputTextField(form1, "field 2");

    // created on this form
    InputForm target = form2;
    Label new1 = assertHasLabel(target, "field 1");
    Label new2 = assertHasLabel(target, "field 2");

    // not created on this form
    assertHasNoLabel(target, "field 5");
    assertHasNoLabel(target, "field 6");
View Full Code Here


    InputTextField field3 = assertHasInputTextField(form2, "field 3");
    InputTextField field4 = assertHasInputTextField(form2, "field 4");

    // created on this form
    InputForm target = form3;
    Label new1 = assertHasLabel(target, "field 1");
    Label new2 = assertHasLabel(target, "field 2");
    Label new3 = assertHasLabel(target, "field 3");
    Label new4 = assertHasLabel(target, "field 4");

    // and connected
    assertHasSetWire(root, field3, new3);
    assertHasSetWire(root, field4, new4);

    // form3.field1 does not -> form1.field1;
    // it goes form3.field1 -> form2.field1 -> form1.field1
    assertHasNoSetWire(root, field1, new1);
    assertHasNoSetWire(root, field2, new2);

    // check
    Label field1_a = assertHasLabel(form2, "field 1");
    Label field2_a = assertHasLabel(form2, "field 2");

    assertHasSetWire(root, field1, field1_a);
    assertHasSetWire(root, field2, field2_a);

    assertHasSetWire(root, field1_a, new1);
View Full Code Here

    Frame home = assertHasFrame(root, "Home");

    InputTextField def = assertHasInputTextField(home, "Default");
    {
      Label annotation = assertHasLabel(def, "Warning");
      assertGenerated(annotation);
    }

    InputTextField integer = assertHasInputTextField(home, "Integer");
    {
      Label annotation = assertHasLabel(integer, "Warning");
      assertGenerated(annotation);
    }

    InputTextField str = assertHasInputTextField(home, "String");
    {
      Label annotation = assertHasLabel(str, "Warning");
      assertGenerated(annotation);
    }

    InputTextField dt = assertHasInputTextField(home, "Date");
    {
      Label annotation = assertHasLabel(dt, "Warning");
      assertGenerated(annotation);
    }

    InputTextField email = assertHasInputTextField(home, "Email");
    {
      Label annotation = assertHasLabel(email, "Warning");
      assertGenerated(annotation);
    }

  }
View Full Code Here

    Frame home = assertHasFrame(root, "Home");

    InputTextField def = assertHasInputTextField(home, "Default");
    {
      Label annotation = assertHasLabel(def, "Warning");

      BuiltinOperation show = assertHasBuiltinOperation(annotation, "show");
      assertGenerated(show);
      BuiltinOperation hide = assertHasBuiltinOperation(annotation, "hide");
      assertGenerated(hide);

      // and a fieldValue
      assertGenerated(assertHasFieldValue(annotation));
    }

    InputTextField integer = assertHasInputTextField(home, "Integer");
    {
      Label annotation = assertHasLabel(integer, "Warning");

      BuiltinOperation show = assertHasBuiltinOperation(annotation, "show");
      assertGenerated(show);
      BuiltinOperation hide = assertHasBuiltinOperation(annotation, "hide");
      assertGenerated(hide);
View Full Code Here

    // source
    InputTextField integer = assertHasInputTextField(home, "Integer");
    Value fieldValue = assertHasFieldValue(integer);
    ActivityOperation validate = assertHasActivityOperation(integer, "validate");

    Label annotation = assertHasLabel(integer, "Warning");
    BuiltinOperation show = assertHasBuiltinOperation(annotation, "show");
    BuiltinOperation hide = assertHasBuiltinOperation(annotation, "hide");
    BuiltinOperation update = assertHasBuiltinOperation(annotation, "update");

    // target
View Full Code Here

   */
  public void testLabelsCreated() throws Exception {
    Frame home = assertHasFrame(root, "Home");
    InputForm form = assertHasInputForm(home, "view news");

    Label t1 = assertHasLabel(form, "title");
    Label t2 = assertHasLabel(form, "content");

    assertGenerated(t1);
    assertGenerated(t2);

    // no text fields
View Full Code Here

    assertGenerated(previous);
    assertGenerated(first);
    assertGenerated(last);

    // and a Label called 'Results'
    Label labelResults = assertHasLabel(form, "Results");
    assertGenerated(labelResults);

  }
View Full Code Here

  public void testResultsLabel() throws Exception {
    Frame home = assertHasFrame(root, "Home");
    InputForm form = assertHasInputForm(home, "view news");
    DomainIterator instance = assertHasDomainIterator(home, "view news");
    Value results = instance.getResults();
    Label labelResults = assertHasLabel(form, "Results");

    // onChange updates the Label
    Event onChange = instance.getOnChange();
    Operation update = assertHasOperation(labelResults, "update");
View Full Code Here

    assertGenerated(instance);

    DomainAttributeInstance a1 = assertHasDomainAttributeInstance(instance, "title");
    assertGenerated(a1);

    Label t1 = assertHasLabel(form, "title");
    assertGenerated(t1);

    // connected by SetWire
    assertGenerated(assertHasSetWire(root, a1, t1));
View Full Code Here

    // test contents
    InputTextField a = assertHasInputTextField(source, "a");
    InputTextField b = assertHasInputTextField(source, "b");
    Button c = assertHasButton(source, "c");
    Label d = assertHasLabel(source, "d");
    InputTextField e = assertHasInputTextField(source, "e");
    assertNotGenerated(a, b, c, d, e);

    InputForm sync1 = assertHasInputForm(home, "sync target");
    assertHasSyncWire(root, source, sync1);
View Full Code Here

TOP

Related Classes of org.openiaml.model.model.visual.Label

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.