当前位置: 首页>>代码示例>>Java>>正文


Java Application.createMethodBinding方法代码示例

本文整理汇总了Java中javax.faces.application.Application.createMethodBinding方法的典型用法代码示例。如果您正苦于以下问题:Java Application.createMethodBinding方法的具体用法?Java Application.createMethodBinding怎么用?Java Application.createMethodBinding使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在javax.faces.application.Application的用法示例。


在下文中一共展示了Application.createMethodBinding方法的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: setMethodBinding

import javax.faces.application.Application; //导入方法依赖的package包/类
public static void setMethodBinding(UIComponent component,
  String attributeName,
  String attributeValue, Class[] paramTypes)
{
  if (attributeValue == null)
  {
    return;
  }
  if (UIComponentTag.isValueReference(attributeValue))
  {
    FacesContext context = FacesContext.getCurrentInstance();
    Application app = context.getApplication();
    MethodBinding mb = app.createMethodBinding(attributeValue,
                       paramTypes);
    component.getAttributes().put(attributeName, mb);
  }
}
 
开发者ID:sakaiproject,项目名称:sakai,代码行数:18,代码来源:TagUtil.java

示例2: setMethodBinding

import javax.faces.application.Application; //导入方法依赖的package包/类
/**
 * Set a MethodBinding on a component - used by tags setProperties() method.
 */
public static void setMethodBinding(UIComponent component, String name, String value,
        Class[] paramTypes)
{
    if (value == null)
    {
        return;
    }
    if (UIComponentTag.isValueReference(value))
    {
        FacesContext context = FacesContext.getCurrentInstance();
        Application app = context.getApplication();
        MethodBinding mb = app.createMethodBinding(value, paramTypes);
        component.getAttributes().put(name, mb);
    }
}
 
开发者ID:sakaiproject,项目名称:sakai,代码行数:19,代码来源:TagUtil.java

示例3: setMethodBinding

import javax.faces.application.Application; //导入方法依赖的package包/类
public static void setMethodBinding(UIComponent component,
		String attributeName, String attributeValue, Class[] paramTypes) {
	if (attributeValue == null)
		return;
	if (UIComponentTag.isValueReference(attributeValue)) {
		FacesContext context = FacesContext.getCurrentInstance();
		Application app = context.getApplication();
		MethodBinding mb = app.createMethodBinding(attributeValue, paramTypes);
		component.getAttributes().put(attributeName, mb);
	}
}
 
开发者ID:sakaiproject,项目名称:sakai,代码行数:12,代码来源:Tags.java

示例4: setMethodBinding

import javax.faces.application.Application; //导入方法依赖的package包/类
public static void setMethodBinding(UIComponent component, String attributeName,
      String attributeValue, Class[] paramTypes) {
   if (attributeValue == null)
      return;
   if (UIComponentTag.isValueReference(attributeValue)) {
      FacesContext context = FacesContext.getCurrentInstance();
      Application app = context.getApplication();
      MethodBinding mb = app.createMethodBinding(attributeValue, paramTypes);
      component.getAttributes().put(attributeName, mb);
   }
}
 
开发者ID:sakaiproject,项目名称:sakai,代码行数:12,代码来源:Tags.java

示例5: setMethodBinding

import javax.faces.application.Application; //导入方法依赖的package包/类
public static void setMethodBinding(UIComponent component, String attributeName, String attributeValue, Class[] paramTypes) {
    if (attributeValue == null) {
        return;
    }

    if (UIComponentTag.isValueReference(attributeValue)) {
        FacesContext context = FacesContext.getCurrentInstance();
        Application application = context.getApplication();
        MethodBinding methodBinding = application.createMethodBinding(attributeValue, paramTypes);
        component.getAttributes().put(attributeName, methodBinding);
    }
}
 
开发者ID:FenixEdu,项目名称:fenixedu-academic,代码行数:13,代码来源:JsfTagUtils.java

示例6: bindButtonListener

import javax.faces.application.Application; //导入方法依赖的package包/类
private MethodBinding bindButtonListener(String btnType) {
    String listenerName = String.format("#{pfMenubar.btn%sAction}", btnType);
    Application app = FacesContext.getCurrentInstance().getApplication();
    return app.createMethodBinding(listenerName, new Class[0]);
}
 
开发者ID:yawlfoundation,项目名称:yawl,代码行数:6,代码来源:pfMenubar.java

示例7: bindButtonListener

import javax.faces.application.Application; //导入方法依赖的package包/类
private MethodBinding bindButtonListener() {
    Application app = FacesContext.getCurrentInstance().getApplication();
    return app.createMethodBinding("#{dynForm.btnDocumentAction}",
                                              new Class[]{ActionEvent.class});
}
 
开发者ID:yawlfoundation,项目名称:yawl,代码行数:6,代码来源:DocComponent.java

示例8: bindListener

import javax.faces.application.Application; //导入方法依赖的package包/类
private MethodBinding bindListener(String binding) {
    Application app = FacesContext.getCurrentInstance().getApplication();
    return app.createMethodBinding(binding, new Class[]{ActionEvent.class});
}
 
开发者ID:yawlfoundation,项目名称:yawl,代码行数:5,代码来源:DynFormFileUpload.java

示例9: bindOccursButtonListener

import javax.faces.application.Application; //导入方法依赖的package包/类
private MethodBinding bindOccursButtonListener() {
    Application app = FacesContext.getCurrentInstance().getApplication();
    return app.createMethodBinding("#{dynForm.btnOccursAction}",
            new Class[]{ActionEvent.class});
}
 
开发者ID:yawlfoundation,项目名称:yawl,代码行数:6,代码来源:DynFormFactory.java

示例10: bindButtonListener

import javax.faces.application.Application; //导入方法依赖的package包/类
private MethodBinding bindButtonListener() {
    Application app = FacesContext.getCurrentInstance().getApplication();
    return app.createMethodBinding("#{SessionBean.messagePanelOKBtnAction}",
                                     new Class[]{ActionEvent.class});
}
 
开发者ID:yawlfoundation,项目名称:yawl,代码行数:6,代码来源:MessagePanel.java


注:本文中的javax.faces.application.Application.createMethodBinding方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。