Examples of Widget


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

   */
  public String getTabHTML(int index) {
    if (index >= getTabCount()) {
      return null;
    }
    Widget widget = panel.getWidget(index + 1);
    return ((TabItemWidget) widget).getTabHTML();
  }
View Full Code Here

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

 
  public boolean setTabHTML(int index, String text) {
   if (index >= getTabCount()) {
      return false;
    }
   Widget widget = panel.getWidget(index + 1);
   ((TabItemWidget) widget).setTabHTML(text);
   return true;
  }
View Full Code Here

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

   */
  public void removeTab(int index) {
  checkTabIndex(index);

  // (index + 1) to account for 'first' placeholder widget.
  Widget toRemove = panel.getWidget(index + 1);
  if (toRemove == selectedTab) {
    selectedTab = null;
  }
  panel.remove(toRemove);
 
View Full Code Here

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

   */
  private boolean elementEnabled(Element element) {
    if (DOM.isOrHasChild(getElement(), element))
      return true;

    Widget cursor = this.getParent();
    Widget lastSlider = this;
    Widget firstSlider = null;
    while (!(cursor instanceof SliderTabPanel)
        && !(cursor instanceof RootPanel)) {
      if (cursor instanceof Slider) {
        lastSlider = cursor;
        if (firstSlider == null)
View Full Code Here

Examples of com.google.minijoe.html.uibase.Widget

  public void evalNative(int id, JsArray stack, int sp, int parCount){
    switch(id){
      case ID_GET_ELEMENT_BY_ID:
      String elemId = (String)(stack.getObject(sp + 2));
        Element result  = rootDocument.getElement().getChildById((String)(stack.getObject(sp + 2)));
        Widget w = this.rootDocument.getWidgetForLabel(elemId);
       
        stack.setObject(sp, ((Canvas2D)w).getCanvasObject());
        break;
       
      case ID_WRITE:
View Full Code Here

Examples of com.google.sitebricks.example.RestfulWebServiceWithCRUDConversions.Widget

      .clientOf(url)
      .transports(Widget.class)
      .over(Json.class)
      .post(testWidget);

    Widget result = response.to(Widget.class).using(Json.class);
    assert result.equals(testWidget);
  }
View Full Code Here

Examples of de.matthiasmann.twl.Widget

    private boolean guiInitialized;

    protected TWLStateBasedGame(String name) {
        super(name);

        emptyRootWidget = new Widget();
        emptyRootWidget.setTheme("");
    }
View Full Code Here

Examples of forestry.core.gui.widgets.Widget

    GuiForestry.getItemRenderer().zLevel = 0.0F;

  }

  public void handleMouseClicked(int mouseX, int mouseY, int mouseButton) {
    Widget slot = getAtPosition(mouseX - gui.getGuiLeft(), mouseY - gui.getGuiTop());
    if (slot != null)
      slot.handleMouseClick(mouseX, mouseY, mouseButton);
  }
View Full Code Here

Examples of gri.gui.widgets.Widget

                ListDataType listType = (ListDataType)type;
                if (type.getRepresentationClass().isAssignableFrom(List.class)) {
                    DataType memberType = listType.getMemberType();
                    WidgetFactory memberWidgetFactory = new TypedWidgetFactoryWrapper(this, memberType);
                   
                    Widget widget = new WidgetList(memberWidgetFactory);
                    return widget;
                }
            }
           
            //simple types:
View Full Code Here

Examples of javango.forms.widgets.Widget

    assertTrue(errors.isEmpty());
    assertEquals(new Double(.12), value);
  }

  public void testHtmlNull() throws Exception {
    Widget w = injector.getInstance(PercentInputWidget.class);
    Double value = null;
    String output = w.render("field", value, new LinkedHashMap<String, Object>());
    String html = "<input type=\"text\" name=\"field\" />";
    assertEquals(html, output);
   
    assertEquals("", w.asText(value));   
  }
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.