Examples of TLabel


Examples of com.golden.gamedev.gui.TLabel

   
    return ui;
  }
 
  public void processUI(TComponent component, BufferedImage[] ui) {
    TLabel label = (TLabel) component;
   
    String[] color = new String[] {
            "Text Color", "Text Disabled Color"
    };
    String[] font = new String[] {
            "Text Font", "Text Disabled Font"
    };
   
    String[] document = GraphicsUtil.parseString(label.getText());
    for (int i = 0; i < 2; i++) {
      Graphics2D g = ui[i].createGraphics();
      GraphicsUtil.drawString(g, document, label.getWidth(), label
              .getHeight(), (GameFont) this.get(font[i], component),
              (Color) this.get(color[i], component), (Integer) this.get(
                      "Text Horizontal Alignment Integer", component),
              (Integer) this.get("Text Vertical Alignment Integer",
                      component), (Insets) this.get("Text Insets",
View Full Code Here

Examples of com.golden.gamedev.gui.TLabel

      g.dispose();
    }
  }
 
  public void renderUI(Graphics2D g, int x, int y, TComponent component, BufferedImage[] ui) {
    TLabel label = (TLabel) component;
   
    if (!label.isEnabled()) {
      g.drawImage(ui[1], x, y, null);
    }
    else {
      g.drawImage(ui[0], x, y, null);
    }
View Full Code Here

Examples of org.mmisw.orrportal.gwt.client.util.TLabel

     
    String label = authorityAttrDef.getLabel();
    String tooltip = "<b>" +label+ "</b>:<br/>" +
        authorityAttrDef.getTooltip() +
        "<br/><br/><div align=\"right\">(" +authorityAttrDef.getUri()+ ")</div>";
    panel.setWidget(row, 0, new TLabel(label, true, tooltip ));

    panel.setWidget(row, 1, authorityWidget);
    panel.getFlexCellFormatter().setWidth(row, 0, "250px");
    panel.getFlexCellFormatter().setAlignment(row, 0,
        HasHorizontalAlignment.ALIGN_RIGHT, HasVerticalAlignment.ALIGN_MIDDLE
    );
    panel.getFlexCellFormatter().setAlignment(row, 1,
        HasHorizontalAlignment.ALIGN_LEFT, HasVerticalAlignment.ALIGN_MIDDLE
    );
    row++;

 
    String label2 = "Ontology short name";
    String tooltip2 = "<b>" +label2+ "</b>:<br/>" +
        "The short name of the ontology.";
    panel.setWidget(row, 0, new TLabel(label2, true, tooltip2 ));

    panel.setWidget(row, 1, shortNameTextBox);
    panel.getFlexCellFormatter().setAlignment(row, 0,
        HasHorizontalAlignment.ALIGN_RIGHT, HasVerticalAlignment.ALIGN_MIDDLE
    );
    row++;
     

    String label3 = "URI";
    String tooltip3 = "<b>" +label3+ "</b>:<br/>" +
        "The resulting URI for your ontology";
    panel.setWidget(row, 0, new TLabel(label3, false, tooltip3 ));
    panel.getFlexCellFormatter().setAlignment(row, 0,
        HasHorizontalAlignment.ALIGN_RIGHT, HasVerticalAlignment.ALIGN_MIDDLE
    );

    panel.setWidget(row, 1, resultingUri);
View Full Code Here

Examples of org.mmisw.orrportal.gwt.client.util.TLabel

   
    if ( defaultNameSpace == null ) {
      defaultNameSpace = Orr.getPortalBaseInfo().getOntServiceUrl();
    }

    tlabel = new TLabel("",
        "This is the URI that will be given to the resulting ontology.<br/> " +
        "<br/>" +
        "By default, this URI is automatically composed from the authority and class name fields and according to " +
        "<a target=\"_blank\" href=\"http://marinemetadata.org/apguides/ontprovidersguide/ontguideconstructinguris\"" +
        ">MMI recommendations</a>.<br/> " +
View Full Code Here

Examples of org.mmisw.orrportal.gwt.client.util.TLabel

    resourceTypeRelatedField = OrrUtil.createTextBoxBase(nl, "400", cl);
    String tooltip = "<b>" +label+ "</b>:<br/>" +
              attr2.getTooltip() +
              "<br/><br/><div align=\"right\">(" +attr2.getUri()+ ")</div>";

    flexPanel.setWidget(row, 0, new TLabel("Name:", editing && attr.isRequired(), tooltip ));
    flexPanel.getFlexCellFormatter().setColSpan(row, 1, 2);
    flexPanel.setWidget(row, 1, resourceTypeFieldWithChoose);
    flexPanel.getFlexCellFormatter().setAlignment(row, 0,
        HasHorizontalAlignment.ALIGN_RIGHT, HasVerticalAlignment.ALIGN_MIDDLE
    );
    flexPanel.getFlexCellFormatter().setAlignment(row, 1,
        HasHorizontalAlignment.ALIGN_LEFT, HasVerticalAlignment.ALIGN_MIDDLE
    );
    row++;

    flexPanel.setWidget(row, 0, new TLabel(label, editing && attr2.isRequired(), tooltip ));
    flexPanel.getFlexCellFormatter().setColSpan(row, 1, 2);
    flexPanel.setWidget(row, 1, resourceTypeRelatedField);
//    flexPanel.getFlexCellFormatter().setWidth(row, 0, "250");
    flexPanel.getFlexCellFormatter().setAlignment(row, 0,
        HasHorizontalAlignment.ALIGN_RIGHT, HasVerticalAlignment.ALIGN_MIDDLE
View Full Code Here

Examples of org.mmisw.orrportal.gwt.client.util.TLabel

    resourceTypeRelatedField = OrrUtil.createTextBoxBase(nl, "330", cl);
    String tooltip = "<b>" +label+ "</b>:<br/>" +
              attr2.getTooltip() +
              "<br/><br/><div align=\"right\">(" +attr2.getUri()+ ")</div>";
   
    TLabel tlabel = new TLabel(label, editing && attr2.isRequired(), tooltip);
   
    HorizontalPanel hpRelated = new HorizontalPanel();
    hpRelated.add(tlabel);
    hpRelated.add(resourceTypeRelatedField);
    panel.setWidget(row, 0, hpRelated);
View Full Code Here

Examples of org.mmisw.orrportal.gwt.client.util.TLabel

    String tooltip = "<b>" +label+ "</b>:<br/>" +CLASS_TOOTIP;

    String className = getClassNameFromClassData();
   
    classNamePanel.clear();
    classNamePanel.add(new TLabel(label, !isReadOnly(), tooltip));
   
    if ( isReadOnly() ) {
      Label lbl = new Label(className);
      lbl.setTitle(classData.getClassUri());
      classNamePanel.add(lbl);
View Full Code Here

Examples of org.mmisw.orrportal.gwt.client.util.TLabel

     
      String label = attrDef.getLabel();
      String tooltip = "<b>" +label+ "</b>:<br/>" +
          attrDef.getTooltip() +
          "<br/><br/><div align=\"right\">(" +attrDef.getUri()+ ")</div>";
      flexTable.setWidget(row, 0, new TLabel(label, attrDef.isRequired(), tooltip ));
     
      flexTable.setWidget(row, 1, widget);
      flexTable.getFlexCellFormatter().setWidth(row, 0, "250px");
      flexTable.getFlexCellFormatter().setAlignment(row, 0,
          HasHorizontalAlignment.ALIGN_RIGHT, HasVerticalAlignment.ALIGN_MIDDLE
View Full Code Here

Examples of org.mmisw.orrportal.gwt.client.util.TLabel

     
      String label = attr.getLabel();
      String tooltip = "<b>" +label+ "</b>:<br/>" +
                        attr.getTooltip() +
                        "<br/><br/><div align=\"right\">(" +attr.getUri()+ ")</div>";
      panel.setWidget(row, 0, new TLabel(label, editing && attr.isRequired(), tooltip ));
     
//      panel.getFlexCellFormatter().addStyleName(row, 0, "MetadataPanel-header");
      panel.getFlexCellFormatter().setWidth(row, 0, "250");
      panel.getFlexCellFormatter().setAlignment(row, 0,
          HasHorizontalAlignment.ALIGN_RIGHT, HasVerticalAlignment.ALIGN_MIDDLE
View Full Code Here

Examples of org.mmisw.orrportal.gwt.client.vine.util.TLabel

   
    setHorizontalAlignment(ALIGN_CENTER);
   
//    setSpacing(4);
   
    add(new TLabel("",
        "Once you have selected entities on both sides, choose the relationship you want " +
        "to establish between the corresponding entities. " +
        "<br/>"
//        "<br/>" +
//        "Click the \"Config\" button to configure the available relations " +
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.