Examples of component()


Examples of org.fest.swing.fixture.JLabelFixture.component()

        FrameFixture fixture = new FrameFixture(frame);
        Insets insets = frame.getInsets();
        fixture.show();
       
        JLabelFixture lf = fixture.label("TheLabel");
        Point pos = lf.component().getLocationOnScreen();
        Dimension size = lf.component().getSize();
       
        Robot robot = new Robot();
        BufferedImage img = robot.createScreenCapture(new Rectangle(pos, dim));
        fixture.close();
View Full Code Here

Examples of org.fest.swing.fixture.JTabbedPaneFixture.component()

  }
 
  public JTabbedPaneWrapper tabbedPaneIn(ComponentContainerFixture fixture) {
    assert fixture != null;
    JTabbedPaneFixture tabbedPaneFixture = fixture.tabbedPane(new QueryMatcher<JTabbedPane>(JTabbedPane.class, this));
    return new JTabbedPaneWrapper(tabbedPaneFixture.robot, tabbedPaneFixture.component());
  }
 
  public JTreeWrapper treeIn(ComponentContainerFixture fixture) {
    assert fixture != null;
    JTreeFixture treeFixture = fixture.tree(new QueryMatcher<JTree>(JTree.class, this));
View Full Code Here

Examples of org.fest.swing.fixture.JTextComponentFixture.component()

        showDialog(TITLE);
        assertEquals(TITLE, windowFixture.component().getTitle());
       
        // check text area is present and correct size
        JTextComponentFixture textBox = windowFixture.textBox();
        assertTrue(textBox.component() instanceof JTextArea);
        JTextArea textArea = (JTextArea) textBox.component();
        assertEquals(JTextReporter.DEFAULT_TEXTAREA_ROWS, textArea.getRows());
        assertEquals(JTextReporter.DEFAULT_TEXTAREA_COLS, textArea.getColumns());
       
        // check all buttons are present
View Full Code Here

Examples of org.fest.swing.fixture.JTreeFixture.component()

  }
 
  public JTreeWrapper treeIn(ComponentContainerFixture fixture) {
    assert fixture != null;
    JTreeFixture treeFixture = fixture.tree(new QueryMatcher<JTree>(JTree.class, this));
    return new JTreeWrapper(treeFixture.robot, treeFixture.component());
  }
 
  public JTableFixture tableIn(ComponentContainerFixture fixture) {
    assert fixture != null;
    return fixture.table(new QueryMatcher<JTable>(JTable.class, this));
View Full Code Here

Examples of org.hibernate.type.TypeFactory.component()

  @Override
  public Type getType() throws MappingException {
    // TODO : temporary initial step towards HHH-1907
    final ComponentMetamodel metamodel = new ComponentMetamodel( this );
    final TypeFactory factory = getMappings().getTypeResolver().getTypeFactory();
    return isEmbedded() ? factory.embeddedComponent( metamodel ) : factory.component( metamodel );
  }

  @Override
  public void setTypeUsingReflection(String className, String propertyName)
    throws MappingException {
View Full Code Here

Examples of org.hibernate.type.TypeFactory.component()

  public Type getType() throws MappingException {
    // TODO : temporary initial step towards HHH-1907
    final ComponentMetamodel metamodel = new ComponentMetamodel( this );
    final TypeFactory factory = getMappings().getTypeResolver().getTypeFactory();
    return isEmbedded() ? factory.embeddedComponent( metamodel ) : factory.component( metamodel );
  }

  public void setTypeUsingReflection(String className, String propertyName)
    throws MappingException {
  }
View Full Code Here

Examples of org.jsynthlib.core.TitleFinder.FrameWrapper.component()

                    if (patchEditor == null) {
                        // No editor at all showed up.
                        continue;
                    }

                    Container component = patchEditor.component();
                    if (component instanceof MDIFrameProxy) {
                        MDIFrameProxy proxy = (MDIFrameProxy) component;
                        JSLFrame jslFrame = proxy.getJSLFrame();
                        if (jslFrame instanceof PatchEditorFrame) {
                            PatchEditorFrame frame =
View Full Code Here

Examples of org.sonar.api.component.Perspective.component()

    SymbolizableBuilder perspectiveBuilder = new SymbolizableBuilder(dataCache);
    Perspective perspective = perspectiveBuilder.loadPerspective(Symbolizable.class, component);

    assertThat(perspective).isInstanceOf(Symbolizable.class);
    assertThat(perspective.component()).isEqualTo(component);
  }
}
View Full Code Here

Examples of org.sonar.api.issue.Issuable.component()

    IssuableFactory factory = new IssuableFactory(moduleIssues, cache, projectTree);
    Component component = new ResourceComponent(new File("foo/bar.c").setEffectiveKey("foo/bar.c"));
    Issuable issuable = factory.loadPerspective(Issuable.class, component);

    assertThat(issuable).isNotNull();
    assertThat(issuable.component()).isSameAs(component);
    assertThat(issuable.issues()).isEmpty();
  }

  @Test
  public void project_should_be_issuable() throws Exception {
View Full Code Here

Examples of org.sonar.api.source.Highlightable.component()

    HighlightableBuilder builder = new HighlightableBuilder(cache);
    Highlightable perspective = builder.loadPerspective(Highlightable.class, component);

    assertThat(perspective).isNotNull().isInstanceOf(DefaultHighlightable.class);
    assertThat(perspective.component()).isSameAs(component);
  }

  @Test
  public void project_should_not_be_highlightable() {
    Component component = new ResourceComponent(new Project("struts").setEffectiveKey("org.struts"));
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.