/** Creates a range */ public MaterialRange() { super(Document.get().createElement("form")); getElement().setAttribute("action", "#"); lblError.setVisible(false); paragraph.setStyleName("range-field"); input.setType(InputType.RANGE); paragraph.add(input); thumb.getElement().setClassName("thumb"); Span value = new Span(); value.getElement().setClassName("value"); thumb.add(value); paragraph.add(thumb); add(paragraph); lblError.getElement().getStyle().setMarginTop(-10, Unit.PX); add(lblError); }
@Override public void setDescription(String description) { titleElem.setStyleName("title"); descElem.setText(description); }
@Override public void setTitle(String title) { titleElem.setText(title); }