com.google.gwt.user.client.ui.CheckBox.setTabIndex()方法的使用及代码示例

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

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

CheckBox.setTabIndex介绍

暂无

代码示例

代码示例来源:origin: com.google.gwt/gwt-servlet

protected CheckBox(Element elem) {
 super(DOM.createSpan());
 inputElem = InputElement.as(elem);
 labelElem = Document.get().createLabelElement();
 getElement().appendChild(inputElem);
 getElement().appendChild(labelElem);
 String uid = DOM.createUniqueId();
 inputElem.setPropertyString("id", uid);
 labelElem.setHtmlFor(uid);
 directionalTextHelper = new DirectionalTextHelper(labelElem, true);
 // Accessibility: setting tab index to be 0 by default, ensuring element
 // appears in tab sequence. FocusWidget's setElement method already
 // calls setTabIndex, which is overridden below. However, at the time
 // that this call is made, inputElem has not been created. So, we have
 // to call setTabIndex again, once inputElem has been created.
 setTabIndex(0);
}

代码示例来源:origin: com.google.gwt/gwt-servlet

inputElem.setAccessKey(accessKey);
setTabIndex(tabIndex);
setValue(checked);
setEnabled(enabled);

代码示例来源:origin: oVirt/ovirt-engine

@Override
public void setTabIndex(int index) {
  asCheckBox().setTabIndex(index);
}

代码示例来源:origin: org.kuali.student.core/ks-common-ui

public TableCellWidget(Object value){
  if(value instanceof Boolean){
    defaultTableEditor = new CheckBox();
    ((CheckBox)defaultTableEditor).setTabIndex(-1);
  }else {
    defaultTableEditor = new EditableLabel();
  }
  super.initWidget(defaultTableEditor);
}
public Object getCellEditorValue() {

代码示例来源:origin: org.kuali.student.core/ks-common-ui

public void installCheckBoxRowHeaderColumn() {
  columnList.remove(rowHeader);
  rowHeader.setId("RowHeader");
  rowHeader.setName("RowHeader");
  final CheckBox checkBox = new CheckBox();
  checkBox.setTabIndex(-1);
  checkBox.addClickHandler(new ClickHandler() {
    @Override
    public void onClick(ClickEvent event) {
      int count = getRowCount();
      for (int i = 0; i < count; i++) {
        getRow(i).setSelected(checkBox.getValue());
      }
      fireTableDataChanged();
    }
  });
  DOM.setStyleAttribute(checkBox.getElement(), "style", "padding-right: 0.8em");
  rowHeader.setColumnTitleWidget(checkBox);
  rowHeader.setWidth("40px");
  rowHeader.setVisible(true);
  columnList.add(0, rowHeader);
}

代码示例来源:origin: net.wetheinter/gwt-user

protected CheckBox(Element elem) {
 super(DOM.createSpan());
 inputElem = InputElement.as(elem);
 labelElem = Document.get().createLabelElement();
 getElement().appendChild(inputElem);
 getElement().appendChild(labelElem);
 String uid = DOM.createUniqueId();
 inputElem.setPropertyString("id", uid);
 labelElem.setHtmlFor(uid);
 directionalTextHelper = new DirectionalTextHelper(labelElem, true);
 // Accessibility: setting tab index to be 0 by default, ensuring element
 // appears in tab sequence. FocusWidget's setElement method already
 // calls setTabIndex, which is overridden below. However, at the time
 // that this call is made, inputElem has not been created. So, we have
 // to call setTabIndex again, once inputElem has been created.
 setTabIndex(0);
}

代码示例来源:origin: com.vaadin.external.gwt/gwt-user

protected CheckBox(Element elem) {
 super(DOM.createSpan());
 inputElem = InputElement.as(elem);
 labelElem = Document.get().createLabelElement();
 getElement().appendChild(inputElem);
 getElement().appendChild(labelElem);
 String uid = DOM.createUniqueId();
 inputElem.setPropertyString("id", uid);
 labelElem.setHtmlFor(uid);
 directionalTextHelper = new DirectionalTextHelper(labelElem, true);
 // Accessibility: setting tab index to be 0 by default, ensuring element
 // appears in tab sequence. FocusWidget's setElement method already
 // calls setTabIndex, which is overridden below. However, at the time
 // that this call is made, inputElem has not been created. So, we have
 // to call setTabIndex again, once inputElem has been created.
 setTabIndex(0);
}

代码示例来源:origin: com.vaadin.external.gwt/gwt-user

inputElem.setAccessKey(accessKey);
setTabIndex(tabIndex);
setValue(checked);
setEnabled(enabled);

代码示例来源:origin: net.wetheinter/gwt-user

inputElem.setAccessKey(accessKey);
setTabIndex(tabIndex);
setValue(checked);
setEnabled(enabled);

代码示例来源:origin: org.jboss.ballroom/widgets

checkBox.setName(name);
checkBox.setTitle(SWITCH_TO_EXPRESSION_TITLE);
checkBox.setTabIndex(0);
checkBox.addValueChangeHandler(new ValueChangeHandler<Boolean>() {
  @Override

相关文章