Class JSFComponentFactory

java.lang.Object
com.jk.web.faces.components.JSFComponentFactory

public class JSFComponentFactory extends Object
This class is a factory used to create JSF (Jakarta Server Faces) components.
Version:
1.0
Author:
Dr. Jalal H. Kiswani
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static UIActions
    This method creates an actions region component.
    static org.primefaces.behavior.ajax.AjaxBehavior
    This method creates an Ajax behavior.
    static org.primefaces.component.column.Column
    This method creates a column component.
    static jakarta.faces.component.UICommand
    This method creates a command button component with the given value.
    static jakarta.faces.component.UIComponent
    createComponent(String componentType)
    This method creates a generic UI component based on the given component type.
    static jakarta.faces.component.UIData
    This method creates a data table component.
    static UIFields
    This method creates a fields region component.
    static jakarta.faces.component.UIComponent
    THis method creates a form component.
    This method creates a form layout component.
    static jakarta.faces.component.UIInput
    createInput(String label, Class type)
    This method creates an input component with a label and data type.
    static jakarta.faces.component.UIInput
    This method creates an input text component with a label.
    static jakarta.faces.component.html.HtmlOutputLabel
    This method creates a label component with the provided identifier (ID).
    static jakarta.el.ValueExpression
    This method creates a label value expression component with the provided key.
    static jakarta.faces.component.UIOutput
    This method creates an output text component with null value.
    static jakarta.faces.component.UIOutput
    This method creates an output text component with the provided value.
    static jakarta.faces.component.UIOutput
    createOutputText(String el, boolean b)
    This method is yet to be implemented (TBI).
    static jakarta.faces.component.UIInput
    This method creates a text area component.
    static jakarta.faces.component.UIComponent
    This method creates a tree component.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • JSFComponentFactory

      public JSFComponentFactory()
  • Method Details

    • createActionsRegion

      public static UIActions createActionsRegion()
      This method creates an actions region component.
      Returns:
      the created actions region component.
    • createAjax

      public static org.primefaces.behavior.ajax.AjaxBehavior createAjax()
      This method creates an Ajax behavior.
      Returns:
      the created Ajax behavior.
    • createColumn

      public static org.primefaces.component.column.Column createColumn()
      This method creates a column component.
      Returns:
      the created column component.
    • createCommandButton

      public static jakarta.faces.component.UICommand createCommandButton(String value)
      This method creates a command button component with the given value.
      Parameters:
      value - Specifies the value to set for the command button.
      Returns:
      the created command button component.
    • createComponent

      public static jakarta.faces.component.UIComponent createComponent(String componentType)
      This method creates a generic UI component based on the given component type.
      Parameters:
      componentType - Specifies the type of the component to create.
      Returns:
      the created UI component.
    • createDataTable

      public static jakarta.faces.component.UIData createDataTable()
      This method creates a data table component.
      Returns:
      the created data table component.
    • createFieldsRegion

      public static UIFields createFieldsRegion()
      This method creates a fields region component.
      Returns:
      the created fields region component.
    • createForm

      public static jakarta.faces.component.UIComponent createForm()
      THis method creates a form component.
      Returns:
      the created form component.
    • createFormLayout

      public static UIFormLayout createFormLayout()
      This method creates a form layout component.
      Returns:
      the created form layout component.
    • createInput

      public static jakarta.faces.component.UIInput createInput(String label, Class type)
      This method creates an input component with a label and data type.
      Parameters:
      label - Specifies the label for the input component.
      type - Specifies the data type of the input.
      Returns:
      the created input component.
    • createInputText

      public static jakarta.faces.component.UIInput createInputText(String label)
      This method creates an input text component with a label.
      Parameters:
      label - Specifies the label for the input text component.
      Returns:
      the created input text component.
    • createLabel

      public static jakarta.faces.component.html.HtmlOutputLabel createLabel(String labelId)
      This method creates a label component with the provided identifier (ID).
      Parameters:
      labelId - Specifies the label identifier (ID).
      Returns:
      the created label component.
    • createLabelValueExpression

      public static jakarta.el.ValueExpression createLabelValueExpression(String key)
      This method creates a label value expression component with the provided key.
      Parameters:
      key - Specifies the key associated with this component.
      Returns:
      the created label value expression component.
    • createOutputText

      public static jakarta.faces.component.UIOutput createOutputText()
      This method creates an output text component with null value.
      Returns:
      the created output text component.
    • createOutputText

      public static jakarta.faces.component.UIOutput createOutputText(String value)
      This method creates an output text component with the provided value.
      Parameters:
      value - Specifies the value of the output text component.
      Returns:
      the created output text component.
    • createOutputText

      public static jakarta.faces.component.UIOutput createOutputText(String el, boolean b)
      This method is yet to be implemented (TBI).
      Parameters:
      el - Specifies the method parameters that are yet to be implemented (TBI).
      b - Specifies the method parameters that are yet to be implemented (TBI).
      Returns:
      null.
    • createTextArea

      public static jakarta.faces.component.UIInput createTextArea()
      This method creates a text area component.
      Returns:
      the created text area component.
    • createTreeComponent

      public static jakarta.faces.component.UIComponent createTreeComponent()
      This method creates a tree component.
      Returns:
      the created tree component.