Ejemplo n.º 1
0
 private void setUpCSSPosition() {
   cssUnit.getTags().put("attr" + Integer.toString(attribute.getId()), TagType.id);
   cssUnit.getAttributes().add(new CssAttribute("position", "absolute"));
   cssUnit
       .getAttributes()
       .add(new CssAttribute("top", Integer.toString(attribute.getInput().getStart().y) + "px"));
   cssUnit
       .getAttributes()
       .add(
           new CssAttribute(
               "left",
               Integer.toString(
                       attribute.getInput().getStart().x - attribute.getLabel().getWidth())
                   + "px"));
   cssDocument.getCssUnit().add(cssUnit);
 }
Ejemplo n.º 2
0
 public void setUpLabel() {
   Tag label = new Tag("div", "class=label");
   label.add(attribute.getLabel().getText());
   div.add(label);
 }