com.google.gwt.dom.client.Element.getTabIndex()方法的使用及代码示例

x33g5p2x  于2022-01-19 转载在 其他  
字(4.5k)|赞(0)|评价(0)|浏览(235)

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

Element.getTabIndex介绍

[英]The index that represents the element's position in the tabbing order.
[中]表示元素在选项卡顺序中的位置的索引。

代码示例

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

public int getTabIndex(Element elem) {
 return elem.getTabIndex();
}

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

/**
 * Check if an element is focusable. If an element is focusable, the cell
 * widget should not steal focus from it.
 * 
 * @param elem the element
 * @return true if the element is focusable, false if not
 */
public boolean isFocusable(Element elem) {
 return focusableTypes.contains(elem.getTagName().toLowerCase(Locale.ROOT))
   || elem.getTabIndex() >= 0;
}

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

public int getTabIndex(Element elem) {
 return elem.getTabIndex();
}

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

public int getTabIndex(Element elem) {
 return elem.getTabIndex();
}

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

/**
 * Check if an element is focusable. If an element is focusable, the cell
 * widget should not steal focus from it.
 * 
 * @param elem the element
 * @return true if the element is focusable, false if not
 */
public boolean isFocusable(Element elem) {
 return focusableTypes.contains(elem.getTagName().toLowerCase(Locale.ROOT))
   || elem.getTabIndex() >= 0;
}

代码示例来源:origin: com.github.gwtmaterialdesign/gwt-material-table

/**
 * Check if an element is focusable. If an element is focusable, the cell
 * widget should not steal focus from it.
 *
 * @param elem the element
 * @return true if the element is focusable, false if not
 */
public boolean isFocusable(Element elem) {
 return focusableTypes.contains(elem.getTagName().toLowerCase(Locale.ROOT))
   || elem.getTabIndex() >= 0;
}

代码示例来源:origin: GwtMaterialDesign/gwt-material-table

/**
 * Check if an element is focusable. If an element is focusable, the cell
 * widget should not steal focus from it.
 *
 * @param elem the element
 * @return true if the element is focusable, false if not
 */
public boolean isFocusable(Element elem) {
 return focusableTypes.contains(elem.getTagName().toLowerCase(Locale.ROOT))
   || elem.getTabIndex() >= 0;
}

代码示例来源:origin: com.haulmont.cuba/cuba-web-toolkit

@Override
public int getTabIndex() {
  return getFileInputElement().getTabIndex();
}

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

/**
 * Check if an element is focusable. If an element is focusable, the cell
 * widget should not steal focus from it.
 * 
 * @param elem the element
 * @return true if the element is focusable, false if not
 */
public boolean isFocusable(Element elem) {
 return focusableTypes.contains(StringCase.toLower(elem.getTagName()))
   || elem.getTabIndex() >= 0;
}

代码示例来源:origin: jqm4gwt/jqm4gwt

@Override
protected void onLoad() {
  super.onLoad();
  if (!isEnabled()) {
    Element inputElt = getInputElt();
    if (savedTabIndex == null) savedTabIndex = inputElt.getTabIndex();
    inputElt.setTabIndex(-1);
  }
}

代码示例来源:origin: jqm4gwt/jqm4gwt

@Override
protected void onLoad() {
  super.onLoad();
  Element inputElt = getInputElt();
  bindCreated(inputElt, this);
  if (!isEnabled()) {
    if (savedTabIndex == null) savedTabIndex = inputElt.getTabIndex();
    inputElt.setTabIndex(-1);
  }
}

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

private void findFocusable(Element root, List<Element> focusable, boolean include)
{
  NodeList<Node> children = root.getChildNodes();
  for(int i=0; i<children.getLength(); i++)
  {
    Node child = children.getItem(i);
    if(Node.ELEMENT_NODE == child.getNodeType())
    {
      Element childElement = (Element)child;
      //if(childElement.hasAttribute("focusable"))
      //    includeChildren = childElement.getAttribute("focusable").equals("true");
      if(childElement.getTabIndex()>=0)
      {
        String tagName = childElement.getTagName();
        //System.out.println(tagName);
        for(String supported : SUPPORTED_TYPES)
        {
          if(tagName.equalsIgnoreCase(supported))
          {
            focusable.add(childElement);
            break;
          }
        }
      }
      findFocusable(childElement, focusable, include);
    }
  }
}

代码示例来源:origin: jqm4gwt/jqm4gwt

@Override
public void setEnabled(boolean value) {
  boolean prevEnabled = isEnabled();
  super.setEnabled(value);
  if (prevEnabled == value) return;
  if (isAttached()) {
    Element inputElt = getInputElt();
    if (value) {
      if (savedTabIndex != null) {
        inputElt.setTabIndex(savedTabIndex);
        savedTabIndex = null;
      }
    } else {
      savedTabIndex = inputElt.getTabIndex();
      inputElt.setTabIndex(-1);
    }
  }
}

代码示例来源:origin: jqm4gwt/jqm4gwt

@Override
public void setEnabled(boolean value) {
  boolean prevEnabled = isEnabled();
  super.setEnabled(value);
  if (prevEnabled == value) return;
  if (isAttached()) {
    Element inputElt = getInputElt();
    if (value) {
      if (savedTabIndex != null) {
        inputElt.setTabIndex(savedTabIndex);
        savedTabIndex = null;
      }
    } else {
      savedTabIndex = inputElt.getTabIndex();
      inputElt.setTabIndex(-1);
    }
  }
}

相关文章

Element类方法