Examples of DialogPart


Examples of com.googlecode.jumpnevolve.graphics.gui.DialogPart

    this.part.setContent(value);
  }

  @Override
  public DialogPart getDialogPart() {
    return new DialogPart(this.part, this.name);
  }
View Full Code Here

Examples of com.googlecode.jumpnevolve.graphics.gui.DialogPart

      Vector startPosition, Color color) {
    super(editor);
    this.modus = modus;
    this.position = startPosition;
    this.color = color;
    this.dialogPart = new DialogPart(new InterfaceVectorTextfield(), name);
    this.dialogPart.part.addContentListener(this);
    this.createShape();
  }
View Full Code Here

Examples of com.googlecode.jumpnevolve.graphics.gui.DialogPart

   *            Das Contentable
   * @param name
   *            Die Bezeichnung, unter der das Contentable abgelegt wird
   */
  public void addContentable(Contentable part, String name) {
    this.addPart(new DialogPart(part, name));
  }
View Full Code Here

Examples of com.googlecode.jumpnevolve.graphics.gui.DialogPart

   *            Der minimale Wert
   * @param max
   *            Der maximale Wert
   */
  public void addNumberSelection(String name, int min, int max) {
    this.addPart(new DialogPart(new InterfaceNumberSelection(min, max),
        name));
  }
View Full Code Here

Examples of com.googlecode.jumpnevolve.graphics.gui.DialogPart

   *
   * @param name
   *            Bezeichnung des Textfeldes
   */
  public void addTextField(String name) {
    this.addPart(new DialogPart(new InterfaceTextField(
        InterfaceFunctions.INTERFACE_TEXTFIELD), name));
  }
View Full Code Here

Examples of org.eclipse.sapphire.ui.forms.DialogPart

        }
       
        this.element = element;
        this.definition = definition;
       
        this.part = new DialogPart();
        this.part.init( null, this.element, this.definition.resolve(), Collections.<String,String>emptyMap() );
        this.part.initialize();
    }
View Full Code Here

Examples of org.eclipse.sapphire.ui.forms.DialogPart

        {
            part = new DetailSectionPart();
        }
        else if( definition instanceof DialogDef )
        {
            part = new DialogPart();
        }
        else if( definition instanceof WizardPageDef )
        {
            part = new WizardPagePart();
        }
View Full Code Here

Examples of org.eclipse.sapphire.ui.forms.DialogPart

        final TestElement element = TestElement.TYPE.instantiate();
       
        try
        {
            final DefinitionLoader.Reference<DialogDef> definition = DefinitionLoader.sdef( PartValidationFunctionTests.class ).dialog();
            final SapphirePart part = new DialogPart();
           
            try
            {
                part.init( null, element, definition.resolve(), Collections.<String,String>emptyMap() );
                part.initialize();
               
                final FunctionResult fr = ExpressionLanguageParser.parse( "${ Part.Validation }" ).evaluate( new PartFunctionContext( part, element ) );
               
                try
                {
                    assertInstanceOf( fr.value(), Status.class );
                    assertEquals( Status.Severity.ERROR, ( (Status) fr.value() ).severity() );
                   
                    element.setValue( "abc" );
                   
                    assertInstanceOf( fr.value(), Status.class );
                    assertEquals( Status.Severity.OK, ( (Status) fr.value() ).severity() );
                }
                finally
                {
                    fr.dispose();
                }
               
            }
            finally
            {
                part.dispose();
            }
        }
        finally
        {
            element.dispose();
View Full Code Here

Examples of org.eclipse.sapphire.ui.forms.DialogPart

        final Element element = Element.TYPE.instantiate();
       
        try
        {
            final DefinitionLoader.Reference<DialogDef> definition = DefinitionLoader.sdef( PartFunctionTests.class ).dialog();
            final SapphirePart part = new DialogPart();
           
            try
            {
                part.init( null, element, definition.resolve(), Collections.<String,String>emptyMap() );
                part.initialize();
               
                testForExpectedValue( new PartFunctionContext( part, element ), "${ Part }", part );
            }
            finally
            {
                part.dispose();
            }
        }
        finally
        {
            element.dispose();
View Full Code Here

Examples of org.eclipse.sapphire.ui.forms.DialogPart

        final TestElement element = TestElement.TYPE.instantiate();
       
        try
        {
            final DefinitionLoader.Reference<DialogDef> definition = DefinitionLoader.sdef( PartParentFunctionTests.class ).dialog();
            final DialogPart dialogPart = new DialogPart();
           
            try
            {
                dialogPart.init( null, element, definition.resolve(), Collections.<String,String>emptyMap() );
                dialogPart.initialize();
               
                final GroupPart groupPart = (GroupPart) dialogPart.children().all().get( 0 );
                final PropertyEditorPart propertyEditorPart = (PropertyEditorPart) groupPart.children().all().get( 0 );
               
                testForExpectedValue( new PartFunctionContext( propertyEditorPart, element ), "${ Part }", propertyEditorPart );
                testForExpectedValue( new PartFunctionContext( propertyEditorPart, element ), "${ Part.Parent }", groupPart );
                testForExpectedValue( new PartFunctionContext( propertyEditorPart, element ), "${ Part.Parent.Parent }", dialogPart );
            }
            finally
            {
                dialogPart.dispose();
            }
        }
        finally
        {
            element.dispose();
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.