當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。