public TextBoxWithPopupEditorFw(FDesc fielddescriptor, WidgetRDesc wrDesc) { super(fielddescriptor); panel.setVerticalAlignment(HasVerticalAlignment.ALIGN_MIDDLE); textBox = new TextBox(); updateWidth(wrDesc); panel.add(textBox); panel.add(showPopupLabel); initWidget(panel); showPopupLabel.getElement().getStyle().setCursor(Cursor.POINTER); showPopupLabel.getElement().getStyle().setTextDecoration(TextDecoration.UNDERLINE); showPopupLabel.getElement().getStyle().setMarginLeft(6, Unit.PX); showPopupLabel.getElement().getStyle().setWhiteSpace(WhiteSpace.NOWRAP); showPopupLabel.addClickHandler(new ClickHandler() { @Override public void onClick(ClickEvent event) { showPopup(); } }); }
@Override protected Element createButtonElement() { Element anchor = DOM.createAnchor(); anchor.getStyle().setTextDecoration( TextDecoration.NONE ); return anchor; }