org.jboss.errai.common.client.dom.Button.setDisabled()方法的使用及代码示例

x33g5p2x  于2022-01-17 转载在 其他  
字(4.2k)|赞(0)|评价(0)|浏览(94)

本文整理了Java中org.jboss.errai.common.client.dom.Button.setDisabled()方法的一些代码示例,展示了Button.setDisabled()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Button.setDisabled()方法的具体详情如下:
包路径:org.jboss.errai.common.client.dom.Button
类名称:Button
方法名:setDisabled

Button.setDisabled介绍

暂无

代码示例

代码示例来源:origin: stackoverflow.com

public class MyClass extends SelectorComposer<Window> {
  @Wire
  private Button btn;

  @Listen("onChanging = #myTextBoxID")
  public void onChanging(ChangeingEvent ev) {
   btn.setDisabled( ev.getValue().isEmpty() );
  }

}

代码示例来源:origin: org.kie.workbench.widgets/kie-wb-metadata-widget

@Override
public void setEnabled( final boolean enabled ) {
  registeredDocumentsMenuDropdown.setDisabled( !enabled );
}

代码示例来源:origin: org.kie.workbench.widgets/kie-wb-metadata-widget

@Override
public void enableNewDocumentButton( final boolean enabled ) {
  newDocumentMenuButton.setDisabled( !enabled );
}

代码示例来源:origin: org.kie.workbench.widgets/kie-wb-metadata-widget

@Override
public void setReadOnly( final boolean isReadOnly ) {
  openDocumentMenuButton.setDisabled( isReadOnly );
}

代码示例来源:origin: org.kie.workbench.forms/kie-wb-common-dynamic-forms-client

@Override
public void enableRemoveButton(boolean enable) {
  removeButton.setDisabled(!enable);
}

代码示例来源:origin: org.kie.workbench.forms/kie-wb-common-dynamic-forms-client

@Override
public void enablePromoteButton(boolean enable) {
  promoteButton.setDisabled(!enable);
}

代码示例来源:origin: org.uberfire/uberfire-widgets-commons

@Override
public void setEnabled(boolean enabled) {
  dropDownButton.setDisabled(!enabled);
}

代码示例来源:origin: org.kie.workbench.widgets/kie-wb-metadata-widget

@Override
public void enableOpenDocumentButton( final boolean enabled ) {
  openDocumentMenuButton.setDisabled( !enabled );
}

代码示例来源:origin: org.kie.workbench.forms/kie-wb-common-dynamic-forms-client

@Override
public void enableDegradeButton(boolean enable) {
  degradeButton.setDisabled(!enable);
}

代码示例来源:origin: kiegroup/appformer

@Override
public void setEnabled(boolean enabled) {
  dropDownButton.setDisabled(!enabled);
}

代码示例来源:origin: stackoverflow.com

public class UploadFile extends GenericForwardComposer<Window> {

  private static final long serialVersionUID = 1L;

  private Textbox value;
  private Button but;

  public void onChanging$value() {
    if ( value.getValue().length() > 0 )
      but.setDisabled( false );
     else
      but.setDisabled( true );
  }

  public void onClick$but() {
    alert(value.getValue());
  }
}

代码示例来源:origin: org.kie.workbench.stunner/kie-wb-common-stunner-bpmn-client

@Override
public void setReadOnly(final boolean readOnly) {
  this.readOnly = readOnly;
  DOMUtil.removeCSSClass(addAnchor, ACTION_DISABLED);
  DOMUtil.removeCSSClass(addAnchor, ACTION_ENABLED);
  if (readOnly) {
    DOMUtil.addCSSClass(addAnchor, ACTION_DISABLED);
  } else {
    DOMUtil.addCSSClass(addAnchor, ACTION_ENABLED);
  }
  assigneeRowsElements.forEach(element -> {
    element.getK1().setEnabled(!readOnly);
    element.getK2().setDisabled(readOnly);
  });
}

代码示例来源:origin: org.kie.workbench.stunner/kie-wb-common-stunner-bpmn-client

@Override
public void setReadOnly(final boolean readOnly) {
  durationTimer.setDisabled(readOnly);
  timeDuration.setDisabled(readOnly);
  multipleTimer.setDisabled(readOnly);
  timeCycleLanguage.setDisabled(readOnly);
  timeCycle.setDisabled(readOnly);
  dateTimer.setDisabled(readOnly);
  timeDate.setDisabled(readOnly);
  pickerButton.setDisabled(readOnly);
}

代码示例来源:origin: org.kie.workbench.stunner/kie-wb-common-stunner-bpmn-client

@Override
public void add(final AssigneeListItem listItem) {
  HTMLElement tableRow = document.createElement("tr");
  HTMLElement liveSearchTd = document.createElement("td");
  listItem.getLiveSearchDropDown().asWidget().getElement().getStyle().setWidth(100, Style.Unit.PCT);
  DOMUtil.appendWidgetToElement(liveSearchTd, listItem.getLiveSearchDropDown());
  listItem.getLiveSearchDropDown().setEnabled(!readOnly);
  HTMLElement actionTd = document.createElement("td");
  Button button = (Button) document.createElement("button");
  button.setClassName("btn btn-link fa fa-trash");
  button.addEventListener("click", event -> {
    listItem.notifyRemoval();
    DOMUtil.removeFromParent(tableRow);
  }, false);
  button.setDisabled(readOnly);
  actionTd.appendChild(button);
  tableRow.appendChild(liveSearchTd);
  tableRow.appendChild(actionTd);
  assigneeRows.appendChild(tableRow);
  assigneeRowsElements.add(new Pair<>(listItem.getLiveSearchDropDown(), button));
  elements.put(listItem, tableRow);
}

相关文章