eu.future.earth.gwt.client.ui.button.FontAwesomeTouchButton Maven / Gradle / Ivy
The newest version!
package eu.future.earth.gwt.client.ui.button;
public class FontAwesomeTouchButton extends TouchButton {
public FontAwesomeTouchButton() {
super();
}
public FontAwesomeTouchButton(String newText, UiType forTouch) {
super(forTouch);
setSymbol(newText);
}
public FontAwesomeTouchButton(String newText) {
super();
setSymbol(newText);
}
public FontAwesomeTouchButton(UiType forTouch) {
super(forTouch);
}
public void setSymbol(String newText) {
if (newText != null) {
if (!main.getElement().isOrHasChild(text.getElement())) {
main.getElement().appendChild(text.getElement());
}
text.addStyleName("fontawesome-img-button");
int i = Integer.parseInt(newText, 16);
String news = Character.toString((char) i);
text.getElement().setAttribute("symbol", news);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy