本文整理了Java中com.google.gwt.user.client.ui.Button.removeStyleName()
方法的一些代码示例,展示了Button.removeStyleName()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Button.removeStyleName()
方法的具体详情如下:
包路径:com.google.gwt.user.client.ui.Button
类名称:Button
方法名:removeStyleName
暂无
代码示例来源:origin: geogebra/geogebra
protected void setSelected(Button btn, boolean value) {
if (value) {
btn.addStyleName("selected");
} else {
btn.removeStyleName("selected");
}
}
代码示例来源:origin: info.magnolia.ui/magnolia-ui-vaadin-common-widgets
private void setWideIcon(){
if (isWide){
wideButton.removeStyleName(CLASSNAME_WIDEBUTTON_ICON);
wideButton.addStyleName(CLASSNAME_WIDEBUTTON_ICON_CLOSE);
}else{
wideButton.removeStyleName(CLASSNAME_WIDEBUTTON_ICON_CLOSE);
wideButton.addStyleName(CLASSNAME_WIDEBUTTON_ICON);
}
}
代码示例来源:origin: org.eagle-i/eagle-i-search-gwt
protected void hidePart2() {
nextButton.removeStyleName("hidden");
part2Row.addStyleName("hidden");
}
代码示例来源:origin: org.eagle-i/eagle-i-datatools-sweet-gwt
protected void setEnable(final Button button, final boolean enable) {
button.setEnabled( enable );
if ( enable ) {
button.removeStyleName( "btnDisabled" );
} else {
button.addStyleName( "btnDisabled" );
}
}
代码示例来源:origin: oVirt/ovirt-engine
@Override
public void setEnabled(boolean enabled) {
dropdownButton.setEnabled(enabled);
if (!enabled) {
dropdownButton.addStyleName(Styles.DISABLED);
} else {
dropdownButton.removeStyleName(Styles.DISABLED);
}
}
代码示例来源:origin: org.kuali.student.lum/ks-lum-ui-common
public void updateButtonStates() {
if( this.outlineModel.isMoveUpable()){
moveUpButton.setEnabled(true);
moveUpButton.removeStyleName("KS-LOMoveUpButtonDisabled");
moveUpButton.addStyleName("KS-LOMoveUpButton");
}else{
moveUpButton.setEnabled(false);
moveUpButton.removeStyleName("KS-LOMoveUpButton");
moveUpButton.addStyleName("KS-LOMoveUpButtonDisabled");
deleteButton.removeStyleName("KS-LODeleteButtonDisabled");
deleteButton.addStyleName("KS-LODeleteButton");
} else{
deleteButton.setEnabled(false);
deleteButton.removeStyleName("KS-LODeleteButton");
deleteButton.addStyleName("KS-LODeleteButtonDisabled");
indentButton.removeStyleName("KS-LOIndentButtonDisabled");
indentButton.addStyleName("KS-LOIndentButton");
}else{
indentButton.setEnabled(false);
indentButton.removeStyleName("KS-LOIndentButton");
indentButton.addStyleName("KS-LOIndentButtonDisabled");
moveDownButton.removeStyleName("KS-LOMoveDownButtonDisabled");
moveDownButton.addStyleName("KS-LOMoveDownButton");
}else{
moveDownButton.setEnabled(false);
moveDownButton.removeStyleName("KS-LOMoveDownButton");
moveDownButton.addStyleName("KS-LOMoveDownButtonDisabled");
代码示例来源:origin: fr.lteconsulting/hexa.core
public void selectButton( Object obj )
{
for( int i = 0; i < panel.getWidgetCount(); i++ )
{
Button b = (Button) panel.getWidget( i );
if( b.getElement().getPropertyObject( "object" ) == obj )
b.addStyleName( "Ribbon-selected" );
else
b.removeStyleName( "Ribbon-selected" );
}
}
代码示例来源:origin: ltearno/hexa.tools
public void selectButton( Object obj )
{
for( int i = 0; i < panel.getWidgetCount(); i++ )
{
Button b = (Button) panel.getWidget( i );
if( b.getElement().getPropertyObject( "object" ) == obj )
b.addStyleName( "Ribbon-selected" );
else
b.removeStyleName( "Ribbon-selected" );
}
}
代码示例来源:origin: oVirt/ovirt-engine
private Button createButton() {
Button button = new Button();
button.removeStyleName(GWT_BUTTON);
button.addStyleName(Styles.BTN);
button.addStyleName(BTN_DEFAULT);
button.addStyleName(Styles.DROPDOWN_TOGGLE);
button.addStyleName(Styles.FORM_CONTROL);
button.getElement().setAttribute(ID, DROPDOWN_MENU);
button.getElement().setAttribute(DATA_TOGGLE, Styles.DROPDOWN);
selectedValue = Document.get().createSpanElement();
selectedValue.addClassName(FILTER_OPTION);
selectedValue.addClassName(Styles.PULL_LEFT); //$NON-NLS-1$
selectedValue.setInnerHTML(NBSP);
return button;
}
内容来源于网络,如有侵权,请联系作者删除!