本文整理了Java中com.google.gwt.user.client.ui.Label.removeStyleName()
方法的一些代码示例,展示了Label.removeStyleName()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Label.removeStyleName()
方法的具体详情如下:
包路径:com.google.gwt.user.client.ui.Label
类名称:Label
方法名:removeStyleName
暂无
代码示例来源:origin: kaaproject/kaa
@Override
public void setReadOnly() {
name.setEnabled(false);
nameLabel.removeStyleName(REQUIRED);
weight.setEnabled(false);
weightLabel.removeStyleName(REQUIRED);
addProfileFilterButton.setVisible(false);
addConfigurationButton.setVisible(false);
includeDeprecatedProfileFilters.setVisible(false);
includeDeprecatedConfigurations.setVisible(false);
profileFiltersGrid.setEnableActions(false);
configurationsGrid.setEnableActions(false);
}
代码示例来源:origin: kaaproject/kaa
deactivateButton.setVisible(false);
if (hasLabel()) {
bodyLabel.removeStyleName(REQUIRED);
代码示例来源:origin: org.eagle-i/eagle-i-search-gwt
/**
* Removes a style from the class name label contained within this widget.
* @param styleName The name of the style to remove.
*/
public void removeLabelStyle(String styleName) {
classNameLabel.removeStyleName(styleName);
}
代码示例来源:origin: org.eagle-i/eagle-i-search-gwt
protected static void clearSelection() {
synchronized (selectedLabel) {
selectedLabel.removeStyleName( RESOURCE_SELECTED );
selectedLabel.addStyleName( RESOURCE_TITLE );
}
}
//-- Methods for styling
代码示例来源:origin: org.eagle-i/eagle-i-search-gwt
@Override
void setStyle() {
if (isSelected) {
GroupWidget.this.label.removeStyleName(GROUP_ITEM_STYLE);
GroupWidget.this.label.addStyleName(SELECTED_TREE_GROUP_ITEM);
} else {
GroupWidget.this.label.removeStyleName(SELECTED_TREE_GROUP_ITEM);
GroupWidget.this.label.addStyleName(GROUP_ITEM_STYLE);
}
}
代码示例来源:origin: org.eagle-i/eagle-i-search-gwt
void setStyle() {
if (isSelected) {
InstitutionWidget.this.label.removeStyleName(INSTITUTION_ITEM_STYLE);
InstitutionWidget.this.label.addStyleName(SELECTED_TREE_ITEM);
} else {
InstitutionWidget.this.label.removeStyleName(SELECTED_TREE_ITEM);
InstitutionWidget.this.label.addStyleName(INSTITUTION_ITEM_STYLE);
}
}
} // class InsitutionWidget
代码示例来源:origin: org.eagle-i/eagle-i-search-gwt
protected void selected() {
synchronized (selectedLabel) {
// reset styling for previously selected label
selectedLabel.removeStyleName( RESOURCE_SELECTED );
selectedLabel.addStyleName( RESOURCE_TITLE );
// point to new selected label and change styling
selectedLabel = classNameLabel;
if ( !isTopLevel ) {
selectedLabel.addStyleName( RESOURCE_SELECTED );
}
}
}
代码示例来源:origin: org.eclipse.che.core/che-core-ide-app
/** {@inheritDoc} */
@Override
public void setErrorMark(boolean isVisible) {
if (isVisible) {
title.addStyleName(resources.partStackCss().lineError());
} else {
title.removeStyleName(resources.partStackCss().lineError());
}
}
代码示例来源:origin: org.eclipse.che.core/che-core-ide-app
/** {@inheritDoc} */
@Override
public void setWarningMark(boolean isVisible) {
if (isVisible) {
title.addStyleName(resources.partStackCss().lineWarning());
} else {
title.removeStyleName(resources.partStackCss().lineWarning());
}
}
代码示例来源:origin: oVirt/ovirt-engine
@Override
public void setUsePatternFly(boolean use) {
super.setUsePatternFly(use);
if (use) {
title.removeStyleName(((InstanceImagesWidgetStyle)style).titleStylePadding());
mainPanel.removeStyleName(((InstanceImagesWidgetStyle)style).mainPanel());
contentPanel.removeStyleName(((InstanceImagesWidgetStyle)style).contentPanel());
}
}
内容来源于网络,如有侵权,请联系作者删除!