javax.faces.webapp.UIComponentClassicTagBase.getIndexOfNextChildTag()方法的使用及代码示例

x33g5p2x  于2022-02-01 转载在 其他  
字(12.0k)|赞(0)|评价(0)|浏览(62)

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

UIComponentClassicTagBase.getIndexOfNextChildTag介绍

暂无

代码示例

代码示例来源:origin: javax/javaee-web-api

void addChildToComponentAndTag(UIComponent child) {
  UIComponent myComponent = this.getComponentInstance();
  int indexOfNextChildTag = this.getIndexOfNextChildTag();
  if (indexOfNextChildTag > myComponent.getChildCount()) {
    indexOfNextChildTag = myComponent.getChildCount();
  }
  myComponent.getChildren().add(indexOfNextChildTag, child);
  this.addChild(child);
}

代码示例来源:origin: com.sun.faces/jsf-api

void addChildToComponentAndTag(UIComponent child) {
  UIComponent myComponent = this.getComponentInstance();
  int indexOfNextChildTag = this.getIndexOfNextChildTag();
  if (indexOfNextChildTag > myComponent.getChildCount()) {
    indexOfNextChildTag = myComponent.getChildCount();
  }
  myComponent.getChildren().add(indexOfNextChildTag, child);
  this.addChild(child);
}

代码示例来源:origin: javax.faces/com.springsource.javax.faces

void addChildToComponentAndTag(UIComponent child) {
  UIComponent myComponent = this.getComponentInstance();
  int indexOfNextChildTag = this.getIndexOfNextChildTag();
  if (indexOfNextChildTag > myComponent.getChildCount()) {
    indexOfNextChildTag = myComponent.getChildCount();
  }
  myComponent.getChildren().add(indexOfNextChildTag, child);
  this.addChild(child);        
}

代码示例来源:origin: org.jboss.spec.javax.faces/jboss-jsf-api_2.0_spec

void addChildToComponentAndTag(UIComponent child) {
  UIComponent myComponent = this.getComponentInstance();
  int indexOfNextChildTag = this.getIndexOfNextChildTag();
  if (indexOfNextChildTag > myComponent.getChildCount()) {
    indexOfNextChildTag = myComponent.getChildCount();
  }
  myComponent.getChildren().add(indexOfNextChildTag, child);
  this.addChild(child);
}

代码示例来源:origin: javax.faces/javax.faces-api

void addChildToComponentAndTag(UIComponent child) {
  UIComponent myComponent = this.getComponentInstance();
  int indexOfNextChildTag = this.getIndexOfNextChildTag();
  if (indexOfNextChildTag > myComponent.getChildCount()) {
    indexOfNextChildTag = myComponent.getChildCount();
  }
  myComponent.getChildren().add(indexOfNextChildTag, child);
  this.addChild(child);
}

代码示例来源:origin: org.glassfish/javax.faces

void addChildToComponentAndTag(UIComponent child) {
  UIComponent myComponent = this.getComponentInstance();
  int indexOfNextChildTag = this.getIndexOfNextChildTag();
  if (indexOfNextChildTag > myComponent.getChildCount()) {
    indexOfNextChildTag = myComponent.getChildCount();
  }
  myComponent.getChildren().add(indexOfNextChildTag, child);
  this.addChild(child);
}

代码示例来源:origin: org.glassfish/jakarta.faces

void addChildToComponentAndTag(UIComponent child) {
  UIComponent myComponent = this.getComponentInstance();
  int indexOfNextChildTag = this.getIndexOfNextChildTag();
  if (indexOfNextChildTag > myComponent.getChildCount()) {
    indexOfNextChildTag = myComponent.getChildCount();
  }
  myComponent.getChildren().add(indexOfNextChildTag, child);
  this.addChild(child);
}

代码示例来源:origin: eclipse-ee4j/mojarra

void addChildToComponentAndTag(UIComponent child) {
  UIComponent myComponent = this.getComponentInstance();
  int indexOfNextChildTag = this.getIndexOfNextChildTag();
  if (indexOfNextChildTag > myComponent.getChildCount()) {
    indexOfNextChildTag = myComponent.getChildCount();
  }
  myComponent.getChildren().add(indexOfNextChildTag, child);
  this.addChild(child);
}

代码示例来源:origin: eclipse-ee4j/mojarra

void addChildToComponentAndTag(UIComponent child) {
  UIComponent myComponent = this.getComponentInstance();
  int indexOfNextChildTag = this.getIndexOfNextChildTag();
  if (indexOfNextChildTag > myComponent.getChildCount()) {
    indexOfNextChildTag = myComponent.getChildCount();
  }
  myComponent.getChildren().add(indexOfNextChildTag, child);
  this.addChild(child);
}

代码示例来源:origin: jboss/jboss-javaee-specs

void addChildToComponentAndTag(UIComponent child) {
  UIComponent myComponent = this.getComponentInstance();
  int indexOfNextChildTag = this.getIndexOfNextChildTag();
  if (indexOfNextChildTag > myComponent.getChildCount()) {
    indexOfNextChildTag = myComponent.getChildCount();
  }
  myComponent.getChildren().add(indexOfNextChildTag, child);
  this.addChild(child);
}

代码示例来源:origin: javax/javaee-web-api

/**
 * <p>Create a new child component using <code>createComponent</code>,
 * initialize its properties, and add it to its parent as a child.
 * </p>
 * @param context {@link FacesContext} for the current request
 * @param parent Parent {@link UIComponent} for the new child
 * @param componentId Component identifier for the new child,
 *  or <code>null</code> for no explicit identifier
 */
private UIComponent createChild(
    FacesContext context,
    UIComponent parent,
    UIComponentClassicTagBase parentTag,
    String componentId) throws JspException {
  UIComponent component = createComponent(context, componentId);
  int indexOfNextChildTag = parentTag.getIndexOfNextChildTag();
  if (indexOfNextChildTag > parent.getChildCount()) {
    indexOfNextChildTag = parent.getChildCount();
  }
  parent.getChildren().add(indexOfNextChildTag, component);
  created = true;
  return (component);
}

代码示例来源:origin: com.sun.faces/jsf-api

/**
 * <p>Create a new child component using <code>createComponent</code>,
 * initialize its properties, and add it to its parent as a child.
 * </p>
 * @param context {@link FacesContext} for the current request
 * @param parent Parent {@link UIComponent} for the new child
 * @param componentId Component identifier for the new child,
 *  or <code>null</code> for no explicit identifier
 */
private UIComponent createChild(
    FacesContext context,
    UIComponent parent,
    UIComponentClassicTagBase parentTag,
    String componentId) throws JspException {
  UIComponent component = createComponent(context, componentId);
  int indexOfNextChildTag = parentTag.getIndexOfNextChildTag();
  if (indexOfNextChildTag > parent.getChildCount()) {
    indexOfNextChildTag = parent.getChildCount();
  }
  parent.getChildren().add(indexOfNextChildTag, component);
  created = true;
  return (component);
}

代码示例来源:origin: javax.faces/javax.faces-api

/**
 * <p>Create a new child component using <code>createComponent</code>,
 * initialize its properties, and add it to its parent as a child.
 * </p>
 * @param context {@link FacesContext} for the current request
 * @param parent Parent {@link UIComponent} for the new child
 * @param componentId Component identifier for the new child,
 *  or <code>null</code> for no explicit identifier
 */
private UIComponent createChild(
    FacesContext context,
    UIComponent parent,
    UIComponentClassicTagBase parentTag,
    String componentId) throws JspException {
  UIComponent component = createComponent(context, componentId);
  int indexOfNextChildTag = parentTag.getIndexOfNextChildTag();
  if (indexOfNextChildTag > parent.getChildCount()) {
    indexOfNextChildTag = parent.getChildCount();
  }
  parent.getChildren().add(indexOfNextChildTag, component);
  created = true;
  return (component);
}

代码示例来源:origin: org.glassfish/javax.faces

/**
 * <p>Create a new child component using <code>createComponent</code>,
 * initialize its properties, and add it to its parent as a child.
 * </p>
 * @param context {@link FacesContext} for the current request
 * @param parent Parent {@link UIComponent} for the new child
 * @param componentId Component identifier for the new child,
 *  or <code>null</code> for no explicit identifier
 */
private UIComponent createChild(
    FacesContext context,
    UIComponent parent,
    UIComponentClassicTagBase parentTag,
    String componentId) throws JspException {
  UIComponent component = createComponent(context, componentId);
  int indexOfNextChildTag = parentTag.getIndexOfNextChildTag();
  if (indexOfNextChildTag > parent.getChildCount()) {
    indexOfNextChildTag = parent.getChildCount();
  }
  parent.getChildren().add(indexOfNextChildTag, component);
  created = true;
  return (component);
}

代码示例来源:origin: org.glassfish/jakarta.faces

/**
 * <p>Create a new child component using <code>createComponent</code>,
 * initialize its properties, and add it to its parent as a child.
 * </p>
 * @param context {@link FacesContext} for the current request
 * @param parent Parent {@link UIComponent} for the new child
 * @param componentId Component identifier for the new child,
 *  or <code>null</code> for no explicit identifier
 */
private UIComponent createChild(
    FacesContext context,
    UIComponent parent,
    UIComponentClassicTagBase parentTag,
    String componentId) throws JspException {
  UIComponent component = createComponent(context, componentId);
  int indexOfNextChildTag = parentTag.getIndexOfNextChildTag();
  if (indexOfNextChildTag > parent.getChildCount()) {
    indexOfNextChildTag = parent.getChildCount();
  }
  parent.getChildren().add(indexOfNextChildTag, component);
  created = true;
  return (component);
}

代码示例来源:origin: jboss/jboss-javaee-specs

/**
 * <p>Create a new child component using <code>createComponent</code>,
 * initialize its properties, and add it to its parent as a child.
 * </p>
 * @param context {@link FacesContext} for the current request
 * @param parent Parent {@link UIComponent} for the new child
 * @param componentId Component identifier for the new child,
 *  or <code>null</code> for no explicit identifier
 */
private UIComponent createChild(
    FacesContext context,
    UIComponent parent,
    UIComponentClassicTagBase parentTag,
    String componentId) throws JspException {
  UIComponent component = createComponent(context, componentId);
  int indexOfNextChildTag = parentTag.getIndexOfNextChildTag();
  if (indexOfNextChildTag > parent.getChildCount()) {
    indexOfNextChildTag = parent.getChildCount();
  }
  parent.getChildren().add(indexOfNextChildTag, component);
  created = true;
  return (component);
}

代码示例来源:origin: org.jboss.spec.javax.faces/jboss-jsf-api_2.0_spec

/**
 * <p>Create a new child component using <code>createComponent</code>,
 * initialize its properties, and add it to its parent as a child.
 * </p>
 * @param context {@link FacesContext} for the current request
 * @param parent Parent {@link UIComponent} for the new child
 * @param componentId Component identifier for the new child,
 *  or <code>null</code> for no explicit identifier
 */
private UIComponent createChild(
    FacesContext context,
    UIComponent parent,
    UIComponentClassicTagBase parentTag,
    String componentId) throws JspException {
  UIComponent component = createComponent(context, componentId);
  int indexOfNextChildTag = parentTag.getIndexOfNextChildTag();
  if (indexOfNextChildTag > parent.getChildCount()) {
    indexOfNextChildTag = parent.getChildCount();
  }
  parent.getChildren().add(indexOfNextChildTag, component);
  created = true;
  return (component);
}

代码示例来源:origin: eclipse-ee4j/mojarra

/**
 * <p>Create a new child component using <code>createComponent</code>,
 * initialize its properties, and add it to its parent as a child.
 * </p>
 * @param context {@link FacesContext} for the current request
 * @param parent Parent {@link UIComponent} for the new child
 * @param componentId Component identifier for the new child,
 *  or <code>null</code> for no explicit identifier
 */
private UIComponent createChild(
    FacesContext context,
    UIComponent parent,
    UIComponentClassicTagBase parentTag,
    String componentId) throws JspException {
  UIComponent component = createComponent(context, componentId);
  int indexOfNextChildTag = parentTag.getIndexOfNextChildTag();
  if (indexOfNextChildTag > parent.getChildCount()) {
    indexOfNextChildTag = parent.getChildCount();
  }
  parent.getChildren().add(indexOfNextChildTag, component);
  created = true;
  return (component);
}

代码示例来源:origin: eclipse-ee4j/mojarra

/**
 * <p>Create a new child component using <code>createComponent</code>,
 * initialize its properties, and add it to its parent as a child.
 * </p>
 * @param context {@link FacesContext} for the current request
 * @param parent Parent {@link UIComponent} for the new child
 * @param componentId Component identifier for the new child,
 *  or <code>null</code> for no explicit identifier
 */
private UIComponent createChild(
    FacesContext context,
    UIComponent parent,
    UIComponentClassicTagBase parentTag,
    String componentId) throws JspException {
  UIComponent component = createComponent(context, componentId);
  int indexOfNextChildTag = parentTag.getIndexOfNextChildTag();
  if (indexOfNextChildTag > parent.getChildCount()) {
    indexOfNextChildTag = parent.getChildCount();
  }
  parent.getChildren().add(indexOfNextChildTag, component);
  created = true;
  return (component);
}

代码示例来源:origin: org.apache.myfaces.core/myfaces-api

int index = parentTag.getIndexOfNextChildTag();
if (index > parent.getChildCount())
  int index = parentTag.getIndexOfNextChildTag();
  if (index > parent.getChildCount())

相关文章

微信公众号

最新文章

更多

UIComponentClassicTagBase类方法