Package com.jk.web.faces.components
Class JSFComponentFactory
java.lang.Object
com.jk.web.faces.components.JSFComponentFactory
This class is a factory used to create JSF (Jakarta Server Faces) components.
- Version:
- 1.0
- Author:
- Dr. Jalal H. Kiswani
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic 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
createCommandButton
(String value) 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.static UIFormLayout
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
createInputText
(String label) This method creates an input text component with a label.static jakarta.faces.component.html.HtmlOutputLabel
createLabel
(String labelId) 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
createOutputText
(String value) 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.
-
Constructor Details
-
JSFComponentFactory
public JSFComponentFactory()
-
-
Method Details
-
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
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
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
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
This method creates a form layout component.- Returns:
- the created form layout component.
-
createInput
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
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
This method creates a label component with the provided identifier (ID).- Parameters:
labelId
- Specifies the label identifier (ID).- Returns:
- the created label component.
-
createLabelValueExpression
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
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
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.
-