com.extjs.gxt.ui.client.widget.button.Button.setEnabled()方法的使用及代码示例

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

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

Button.setEnabled介绍

暂无

代码示例

代码示例来源:origin: bedatadriven/activityinfo

public void setPrintEnabled(boolean enabled) {
  if (printButton != null) {
    printButton.setEnabled(enabled);
  }
}

代码示例来源:origin: bedatadriven/activityinfo

public void setUploadEnabled(boolean enabled) {
  if (uploadButton != null) {
    uploadButton.setEnabled(enabled);
  }
}

代码示例来源:origin: bedatadriven/activityinfo

public void setUpdateEnabled(boolean enabled) {
  if (editButton != null) {
    editButton.setEnabled(enabled);
  }
}

代码示例来源:origin: bedatadriven/activityinfo

public void setCancelTransferEnabled(boolean enabled) {
    if (transferButton != null) {
      transferButton.setEnabled(enabled);
    }
  }
}

代码示例来源:origin: bedatadriven/activityinfo

public void setDeleteEnabled(boolean enabled) {
  if (removeButton != null) {
    removeButton.setEnabled(enabled);
  }
}

代码示例来源:origin: bedatadriven/activityinfo

public void setAddEnabled(boolean enabled) {
  if (addButton != null) {
    addButton.setEnabled(enabled);
  }
}

代码示例来源:origin: bedatadriven/activityinfo

public void setTransferEnabled(boolean enabled) {
  if (transferButton != null) {
    transferButton.setEnabled(enabled);
  }
}

代码示例来源:origin: com.isotrol.impe3/impe3-gui-common

@Override
  public void selectionChanged(SelectionChangedEvent<ModelData> se) {
    boolean enabled = true;
    if (se.getSelectedItem() == null) {
      enabled = false;
    }
    if (bEdit != null) {
      bEdit.setEnabled(enabled);
    }
    bRemove.setEnabled(enabled);
  }
});

代码示例来源:origin: com.extjs/gxt

@Override
public void setReadOnly(boolean readOnly) {
 this.readOnly = readOnly;
 if (button != null) {
  button.setEnabled(!readOnly);
 }
 if (file != null) {
  file.setEnabled(!readOnly);
 }
}

代码示例来源:origin: bedatadriven/activityinfo

@Override
  public void selectionChanged(SelectionChangedEvent<LocationDTO> se) {
    removeSelectedItem.setEnabled(se.getSelectedItem() != null);
  }
});

代码示例来源:origin: com.isotrol.impe3/impe3-gui-common

public void handleEvent(BaseEvent be) {
    bAdd.setEnabled(dtPicker.isValid());
  }
};

代码示例来源:origin: pl.touk.top/file-upload-gwtclient-lib

public void displayReadOnly(boolean readOnly) {
  getFileUploadField().setEnabled(!readOnly);
  getFileUploadButton().setEnabled(!readOnly);
  deleteButton.setEnabled(!readOnly);
}

代码示例来源:origin: com.extjs/gxt

protected boolean checkPanel() {
 boolean v =  panel.isValid(true);
 for (Button button : buttons) {
  if (v != button.isEnabled()) {
   button.setEnabled(v);
  }
 }
 return v;
}

代码示例来源:origin: pl.touk/wonderful-security-lib

@Override
protected void beforeRender() {
  this.getSaveButton().setEnabled(ClientSecurity.hasPermission(WsecPermission.WSEC_CHNG_PERM_4GRP));
}

代码示例来源:origin: pl.touk/wonderful-security-lib

@Override
protected void beforeRender() {
  this.getSaveButton().setEnabled(ClientSecurity.hasPermission(WsecPermission.WSEC_CHNG_PERM_4USER));
}

代码示例来源:origin: pl.touk/wonderful-security-lib

@Override
protected void beforeRender() {
  this.getSaveButton().setEnabled(ClientSecurity.hasPermission(WsecPermission.WSEC_CHNG_PERM_4ROLE));
}

代码示例来源:origin: geoserver/geofence

/**
 * Validate.
 *
 * @return true, if successful
 */
protected boolean validate()
{
  boolean loginInfoOk = hasValue(userName) && hasValue(password) &&
    (password.getValue().length() >= PASSWORD_MIN_LENGTH);
  login.setEnabled(loginInfoOk);
  return loginInfoOk;
}

代码示例来源:origin: bedatadriven/activityinfo

@Override
  public void onValidated() {
    form.setAction("/ActivityInfo/attachment?blobId=" + blobid + "&siteId=" + currentSite.getId());
    form.submit();
    dialog.getSaveButton().setEnabled(false);
  }
});

代码示例来源:origin: com.isotrol.impe3/impe3-gui-common

public void handleEvent(ComponentEvent be) {
    if (be.getType() == Events.Render) {
      times--;
      Component c = be.getComponent();
      c.removeListener(Events.Render, this);
    }
    if (times == 0) {
      button.setEnabled(detailPanel.isValid() && !detailPanel.isEdition());
    }
  }
}

代码示例来源:origin: bedatadriven/activityinfo

public void setDirty(boolean dirty) {
  Button currentSaveButton = getSaveButton();
  if (currentSaveButton != null) {
    currentSaveButton.setEnabled(dirty);
    if (dirty) {
      currentSaveButton.setText(I18N.CONSTANTS.save());
      currentSaveButton.setIcon(IconImageBundle.ICONS.save());
    } else {
      currentSaveButton.setText(I18N.CONSTANTS.saved());
    }
  }
}

相关文章