List of usage examples for com.google.gwt.user.client.ui UIObject addStyleName
public void addStyleName(String style)
From source file:hu.mapro.gwt.client.widget.ScrollableTabLayoutPanel.java
License:Apache License
private void changeStyle(UIObject widget, String remove, String add) { widget.removeStyleName(remove); widget.addStyleName(add); }
From source file:org.cruxframework.crux.smartfaces.client.dialog.PopupCentralizerCSSImpl.java
License:Apache License
@Override public void centralize(UIObject uiObject) { uiObject.removeStyleName(FacesBackboneResourcesCommon.INSTANCE.css().facesPopupCenter()); uiObject.addStyleName(FacesBackboneResourcesCommon.INSTANCE.css().facesPopupCenter()); setCentralized(true);/*from w ww.java 2 s .co m*/ }
From source file:org.obiba.opal.web.gwt.app.client.magma.derive.view.DeriveNumericalVariableStepView.java
License:Open Source License
private void setUIObjectError(UIObject obj, boolean error) { if (error) {/*w w w.j a va 2 s . c o m*/ obj.addStyleName("error"); } else { obj.removeStyleName("error"); } }
From source file:org.roda.wui.client.common.utils.HtmlSnippetUtils.java
public static final void setCssClassDisabled(UIObject uiobject, boolean disabled) { if (disabled) { uiobject.addStyleName("disabled"); } else {//from w w w.jav a 2s . c om uiobject.removeStyleName("disabled"); } }
From source file:org.rstudio.core.client.widget.FontSizer.java
License:Open Source License
public static void applyNormalFontSize(UIObject object) { object.addStyleName(styles.normalSize()); }
From source file:org.sigmah.client.util.MessageType.java
License:Open Source License
/** * Applies the style name for the given type (and remove old previous style names). * //w w w .j a va 2 s . c o m * @param ui * The UI object. * @param type * The type. */ public static void applyStyleName(final UIObject ui, final MessageType type) { if (!GWT.isClient()) { return; } for (final MessageType t : MessageType.values()) { ui.removeStyleName(t.asStyleName()); } if (type != null) { ui.addStyleName(type.asStyleName()); } }