Examples of Widget


Examples of ca.nengo.ui.models.nodes.widgets.Widget

        probe.setOffset(getWidth() * (1f / 4f), probeY + getHeight() * (1f / 4f));
        probeY += probe.getHeight() + 5;

      } else if (wo instanceof Widget) {
        Widget widget = (Widget) wo;
        if (widget.getParent() == null) {
          /*
           * Check to see that the origin has not been removed from
           * the world
           */

        } else {

          double scale = widget.getScale();

          if (!(widget).isWidgetVisible()) {
            double x = centerX - widget.getWidth() * scale / 2f;
            double y = centerY - widget.getHeight() * scale / 2f;

            widget.setOffset(x, y);

            widget.setVisible(false);
            widget.setPickable(false);
            widget.setChildrenPickable(false);

          } else {
            widget.setVisible(true);
            widget.setPickable(true);
            widget.setChildrenPickable(true);

            if (widget instanceof UIOrigin) {
              originY -= scale * widget.getHeight() + 8;
              widget.setOffset(originX, originY);

            } else if (widget instanceof UITermination) {
              termY -= scale * widget.getHeight() + 8;
              widget.setOffset(termX, termY);
            }
          }
        }

      }
View Full Code Here

Examples of com.agiletec.aps.system.services.page.Widget

          } else {
            Widget[] showlets = targetPage.getWidgets();
            if (showlets.length <= frame) {
              this.addActionError(this.getText("error.invalidWidgetType"));
            } else {
              Widget showlet = showlets[frame];
              if (showlet != null && this.getInvalidShowletTypes().contains(showlet.getType().getCode())) {
                this.addActionError(this.getText("error.invalidWidgetType"));
              } else {
                checked = true;
              }
            }
View Full Code Here

Examples of com.citytechinc.cq.component.annotations.config.Widget

    Reflections reflections) throws ClassNotFoundException, NotFoundException, MalformedURLException {
    List<WidgetConfigHolder> builtInWidgets = new ArrayList<WidgetConfigHolder>();

    for (Class<?> c : reflections.getTypesAnnotatedWith(Widget.class)) {
      CtClass clazz = classPool.getCtClass(c.getName());
      Widget widgetAnnotation = (Widget) clazz.getAnnotation(Widget.class);

      Class<? extends Annotation> annotationClass = widgetAnnotation.annotationClass();

      Class<? extends WidgetMaker> makerClass = widgetAnnotation.makerClass();
      Class<? extends AbstractWidget> widgetClass = classLoader.loadClass(clazz.getName()).asSubclass(
        AbstractWidget.class);
      WidgetConfigHolder widgetConfig = new WidgetConfigHolder(annotationClass, widgetClass, makerClass,
        widgetAnnotation.xtype(), widgetAnnotation.ranking());

      builtInWidgets.add(widgetConfig);

    }
    return builtInWidgets;
View Full Code Here

Examples of com.example.model.Widget

     */
    @Test
    public void testFindById() throws Exception {
        persistenceContext.injectAndPostConstruct(widgetBean);

        final Widget widget = widgetBean.findById(2);
        assertNotNull(widget);
        assertEquals(2, widget.getId().intValue());
    }
View Full Code Here

Examples of com.founder.fix.bpmn2extensions.flowconnector.Widget

   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public void setEReference0(Widget newEReference0) {
    Widget oldEReference0 = eReference0;
    eReference0 = newEReference0;
    if (eNotificationRequired())
      eNotify(new ENotificationImpl(this, Notification.SET, FlowConnectorPackage.TEXT__EREFERENCE0, oldEReference0, eReference0));
  }
View Full Code Here

Examples of com.github.maven.example.Widget

  /**
   * Test default enable state of {@link Widget}
   */
  @Test
  public void defaultState() {
    Widget widget = new Widget();
    assertTrue(widget.isEnabled());
  }
View Full Code Here

Examples of com.google.gwt.topspin.ui.client.Widget

    table.getElement().getStyle().setPropertyPx("marginTop", pieChartHeight);
    return table;
  }

  private Tree createEventTrace(Container parent, final int pieChartHeight) {
    Widget header = new Widget(parent.getDocument().createHElement(2), parent) {
    };
    header.setStyleName(getCss().eventBreakdownHeader());
    header.getElement().setInnerText("Event Trace");

    final LazyEventTree tree = new LazyEventTree(parent,
        eventWaterfall.getPresenter(), getParentRow().getEvent(),
        getParentRow().getEventBreakdown(), resources);
View Full Code Here

Examples of com.google.gwt.user.client.ui.Widget

          }
          break;
        case PAGE:
          button.setActive(button.getPage() == currentPage);
          button.setEnabled(button.getPage().canShow());
          Widget widget = button.getPage().asWidget();
          if (widget != null) {
            widget.setVisible(button.getPage() == currentPage);
          }
          break;
      }
    }
  }
View Full Code Here

Examples of com.google.gwt.user.client.ui.Widget

  public Widget getParent() {
    return parent;
  }

  public void setParent(Widget parent) {
    Widget oldParent = this.parent;
    if (parent == null) {
      if (oldParent != null && oldParent.isAttached()) {
        onDetach();
        assert !isAttached() : "Failure of " + this.getClass().getName() + " to call super.onDetach()";
      }
      this.parent = null;
    } else {
View Full Code Here

Examples of com.google.gwt.user.client.ui.Widget

  public HandlerRegistration addDoubleClickHandler(DoubleClickHandler handler) {
    return null;
  }

  public Widget asWidget() {
    return new Widget();
  }
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.