List of usage examples for com.google.gwt.dom.client Style clearTextDecoration
public void clearTextDecoration()
From source file:com.goodow.wave.client.wavepanel.blip.SetColor.java
License:Apache License
public SetColor() { Widget widget = binder.createAndBindUi(this); this.getElement().getStyle().setWidth(129, Unit.PX); this.add(widget); this.setAutoHideEnabled(true); NodeList<Node> childNodes = colors.getChildNodes(); putColor(childNodes);// w w w. j a v a2s . co m DOM.sinkEvents((com.google.gwt.user.client.Element) noColor, Event.ONCLICK); DOM.setEventListener((com.google.gwt.user.client.Element) noColor, new EventListener() { @Override public void onBrowserEvent(final Event event) { if (DOM.eventGetType(event) == Event.ONCLICK) { NodeList<Element> aTags = changeElm.getElementsByTagName("span"); Element aTag = aTags.getItem(1); Style aTagStyle = aTag.getStyle(); aTagStyle.clearColor(); aTagStyle.clearBackgroundColor(); aTagStyle.clearBorderColor(); aTagStyle.clearBorderStyle(); aTagStyle.clearBorderWidth(); aTagStyle.clearTextDecoration(); } } }); }