List of usage examples for com.google.gwt.user.client.ui UIObject getStyleName
public String getStyleName()
From source file:com.totsp.gwittir.client.validator.StyleValidationFeedback.java
License:Open Source License
public void handleException(Object source, ValidationException exception) { UIObject object = (UIObject) source; if (this.styleName.equals(object.getStyleName())) { return;/*from w w w . j a va2 s .com*/ } String previousStyle = object.getStyleName() == null || object.getStyleName().length() == 0 ? "default" : object.getStyleName(); if (!this.previousStyles.containsKey(source)) this.previousStyles.put(source, previousStyle); Logger.getAnonymousLogger().log(Level.SPAM, "Previous style: " + previousStyle, null); object.setStyleName(this.styleName); Logger.getAnonymousLogger().log(Level.SPAM, "Current style: " + object.getStyleName(), null); }
From source file:gwt.material.design.client.constants.Color.java
License:Apache License
public static void clearStyles(final UIObject uiObject) { for (String style : uiObject.getStyleName().split(" ")) { Color color = fromStyleName(style); if (color != Color.DEFAULT) { uiObject.removeStyleName(style); } else {//from w w w. j a va2 s.co m // check if we are a shade if (Shade.isShade(style)) { uiObject.removeStyleName(style); } } } }
From source file:org.apache.hupa.client.ui.ToolBarView.java
License:Apache License
private boolean isEnabled(UIObject whichButton) { InstrumentationLoggerProvider.get().instrument( "org_apache_hupa_client_ui_ToolBarView_java0x09ab1f22ea71c2b000x20x0_____org_apache_hupa_client_ui_ToolBarView_java0x09ab1f22ea71c2b000x3_____org_apache_hupa_client_ui_ToolBarView_java0x09ab1f22ea71c2b000x0_____org_apache_hupa_client_ui_ToolBarView_java0x09ab1f22ea71c2b000x1_____org_apache_hupa_client_ui_ToolBarView_java0x09ab1f22ea71c2b000x2_____org_apache_hupa_client_ui_ToolBarView_java0x09ab1f22ea71c2b00"); InstrumentationLoggerProvider.get().instrument( "org_apache_hupa_client_ui_ToolBarView_java0x09ab1f22ea71c2b000x30x00x00x00x0_____org_apache_hupa_client_ui_ToolBarView_java0x09ab1f22ea71c2b000x30x00x0_____org_apache_hupa_client_ui_ToolBarView_java0x09ab1f22ea71c2b000x30x00x00x00x1_____org_apache_hupa_client_ui_ToolBarView_java0x09ab1f22ea71c2b000x30x00x00x0_____org_apache_hupa_client_ui_ToolBarView_java0x09ab1f22ea71c2b000x30x0"); return !whichButton.getStyleName().contains(style.disabledButton()); }