Java 类com.google.gwt.dom.client.Style.TextDecoration 实例源码

项目:ineform    文件:TextBoxWithPopupEditorFw.java   
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();
        }
    });
}
项目:hexa.tools    文件:ImageTextAnchor.java   
@Override
protected Element createButtonElement()
{
    Element anchor = DOM.createAnchor();
    anchor.getStyle().setTextDecoration( TextDecoration.NONE );
    return anchor;
}