|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.myfaces.custom.dynaForm.guiBuilder.GuiBuilder
org.apache.myfaces.custom.dynaForm.guiBuilder.impl.jsf.JsfGuiBuilder
public class JsfGuiBuilder
concrete gui builder which knows how to build JSF forms
Field Summary | |
---|---|
static java.lang.String |
SEARCH_ENTITY_BINDING
|
static java.lang.String |
SEARCH_ENTITY_TYPE
|
Constructor Summary | |
---|---|
JsfGuiBuilder()
|
Method Summary | |
---|---|
static void |
addElementBuilder(java.lang.Class elementType,
JsfGuiElementBuilder builder)
Add a specialized builder. |
protected void |
attachLengthValidator(javax.faces.component.html.HtmlInputText cmp,
int minSize,
int maxSize)
|
protected void |
attachRangeValidator(javax.faces.component.html.HtmlInputText cmp,
java.lang.Double minValue,
java.lang.Double maxValue)
|
protected boolean |
buildField(FieldInterface field)
actuallly build the fields gui component |
static javax.faces.component.UIComponent |
cloneComponent(javax.faces.component.UIComponent uicomponent)
|
void |
createInputBoolean(FieldInterface field)
select a boolean |
void |
createInputDate(FieldInterface field)
input date |
void |
createInputNumber(FieldInterface field)
enter a number |
void |
createInputText(FieldInterface field)
input field |
javax.faces.component.UIOutput |
createLabelFor(java.lang.String labelText,
javax.faces.component.UIComponent cmp)
create label for the given labelText and if possible
attach it to the cmp . |
void |
createNative(FieldInterface field)
this is when the user passed in a component to use for the this field |
void |
createOutputText(FieldInterface field)
output text using the field as value provider |
javax.faces.component.UIParameter |
createParameter(java.lang.String name,
java.lang.String value)
|
void |
createSearchFor(FieldInterface field)
search for component |
void |
createSearchForSelectMenu(FieldInterface field)
search for component |
void |
createSelectOneMenu(FieldInterface field)
select one menu |
protected java.lang.String |
createValueBindingString(FieldInterface field)
|
javax.faces.component.html.HtmlCommandLink |
doCreateCommandLink(FieldInterface field)
|
javax.faces.component.html.HtmlCommandLink |
doCreateCommandLinkComponent()
|
javax.faces.convert.Converter |
doCreateConverter(FieldInterface field)
|
javax.faces.convert.DateTimeConverter |
doCreateDateConverter(FieldInterface field)
|
javax.faces.component.UISelectBoolean |
doCreateInputBoolean(FieldInterface field)
|
javax.faces.component.html.HtmlSelectBooleanCheckbox |
doCreateInputBooleanComponent()
|
javax.faces.component.html.HtmlInputText |
doCreateInputDate(FieldInterface field)
|
javax.faces.component.html.HtmlInputText |
doCreateInputDateComponent(FieldInterface field)
|
javax.faces.component.html.HtmlInputText |
doCreateInputNumber(FieldInterface field)
|
javax.faces.component.html.HtmlInputText |
doCreateInputText(FieldInterface field)
|
javax.faces.component.html.HtmlInputText |
doCreateInputTextComponent()
|
void |
doCreateNative(FieldInterface field,
javax.faces.component.UIComponent uicomponent)
|
javax.faces.component.html.HtmlOutputLabel |
doCreateOutputLabel(java.lang.String text)
|
javax.faces.component.html.HtmlOutputLabel |
doCreateOutputLabelComponent()
|
javax.faces.component.html.HtmlOutputText |
doCreateOutputText(FieldInterface field)
|
javax.faces.component.html.HtmlOutputText |
doCreateOutputText(java.lang.String text)
|
javax.faces.component.html.HtmlOutputText |
doCreateOutputTextComponent()
|
javax.faces.component.html.HtmlPanelGroup |
doCreatePanelGroupComponent()
|
javax.faces.component.UIComponent |
doCreateSearchFor(FieldInterface field)
|
javax.faces.component.UIInput |
doCreateSearchForSelectMenu(FieldInterface field)
|
javax.faces.component.html.HtmlSelectManyListbox |
doCreateSelectManyListbox(FieldInterface field)
|
javax.faces.component.html.HtmlSelectManyListbox |
doCreateSelectManyListboxComponent()
|
javax.faces.component.html.HtmlSelectOneMenu |
doCreateSelectOneMenu(FieldInterface field)
|
javax.faces.component.html.HtmlSelectOneMenu |
doCreateSelectOneMenuComponent()
|
javax.faces.component.UIInput |
findInputComponent(javax.faces.component.UIComponent cmp)
searches the first input component. |
void |
fireNewComponent(FieldInterface field,
javax.faces.component.UIComponent cmp)
jo, we made a component, create a possible label and fire its creation. |
java.lang.String |
getBackingBeanPrefix()
|
java.lang.String |
getBackingEntityPrefix()
|
protected java.lang.String |
getCleanedNameForId(java.lang.String name)
remove all not allowed characters for an jsf ID from the name |
javax.faces.context.FacesContext |
getContext()
|
NewComponentListener |
getNewComponentListener()
|
void |
iniCommandDefaults(javax.faces.component.UICommand cmp,
FieldInterface field,
java.lang.String action,
java.lang.String actionListener)
init defaults specifically for commands |
void |
initConverter(javax.faces.component.UIOutput cmp,
FieldInterface field)
setup a converter if required |
void |
initDefaults(javax.faces.component.UIComponent cmp,
FieldInterface field)
init global defaults like id |
void |
initInputDefaults(javax.faces.component.html.HtmlInputText cmp,
FieldInterface field)
setup all the validators, maxlength, size, ... |
void |
initInputDefaults(javax.faces.component.UIInput cmp,
FieldInterface field)
setup defaults for input fields like required |
void |
initOutputDefaults(javax.faces.component.UIOutput cmp,
FieldInterface field)
init global defaults for output fields |
void |
initSelections(FieldInterface field,
javax.faces.component.UIComponent cmp)
insert possible selection items |
void |
initValueBinding(javax.faces.component.UIComponent cmp,
FieldInterface field)
init the default value binding |
void |
setBackingBeanPrefix(java.lang.String backingBeanPrefix)
|
void |
setBackingEntityPrefix(java.lang.String backingEntityPrefix)
|
void |
setContext(javax.faces.context.FacesContext context)
|
void |
setNewComponentListener(NewComponentListener newComponentListener)
|
Methods inherited from class org.apache.myfaces.custom.dynaForm.guiBuilder.GuiBuilder |
---|
getLabelBundle, isDisplayOnly, setDisplayOnly, setLabelBundle |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String SEARCH_ENTITY_TYPE
public static final java.lang.String SEARCH_ENTITY_BINDING
Constructor Detail |
---|
public JsfGuiBuilder()
Method Detail |
---|
public static void addElementBuilder(java.lang.Class elementType, JsfGuiElementBuilder builder)
public java.lang.String getBackingBeanPrefix()
public void setBackingBeanPrefix(java.lang.String backingBeanPrefix)
public java.lang.String getBackingEntityPrefix()
public void setBackingEntityPrefix(java.lang.String backingEntityPrefix)
public NewComponentListener getNewComponentListener()
public void setNewComponentListener(NewComponentListener newComponentListener)
public void setContext(javax.faces.context.FacesContext context)
public void createOutputText(FieldInterface field)
GuiBuilder
createOutputText
in class GuiBuilder
public void createInputDate(FieldInterface field)
GuiBuilder
createInputDate
in class GuiBuilder
public void createInputText(FieldInterface field)
GuiBuilder
createInputText
in class GuiBuilder
public void createInputNumber(FieldInterface field)
GuiBuilder
createInputNumber
in class GuiBuilder
public void createInputBoolean(FieldInterface field)
GuiBuilder
createInputBoolean
in class GuiBuilder
public void createSelectOneMenu(FieldInterface field)
GuiBuilder
createSelectOneMenu
in class GuiBuilder
public void createSearchFor(FieldInterface field)
GuiBuilder
createSearchFor
in class GuiBuilder
public void createSearchForSelectMenu(FieldInterface field)
GuiBuilder
createSearchForSelectMenu
in class GuiBuilder
public void createNative(FieldInterface field)
GuiBuilder
createNative
in class GuiBuilder
public static javax.faces.component.UIComponent cloneComponent(javax.faces.component.UIComponent uicomponent)
public javax.faces.component.html.HtmlOutputText doCreateOutputText(FieldInterface field)
public javax.faces.component.html.HtmlOutputText doCreateOutputTextComponent()
public javax.faces.component.html.HtmlOutputLabel doCreateOutputLabel(java.lang.String text)
public javax.faces.component.html.HtmlOutputText doCreateOutputText(java.lang.String text)
public javax.faces.component.html.HtmlOutputLabel doCreateOutputLabelComponent()
public javax.faces.component.html.HtmlInputText doCreateInputDate(FieldInterface field)
public javax.faces.component.html.HtmlInputText doCreateInputDateComponent(FieldInterface field)
public javax.faces.convert.Converter doCreateConverter(FieldInterface field)
public javax.faces.convert.DateTimeConverter doCreateDateConverter(FieldInterface field)
public javax.faces.component.html.HtmlInputText doCreateInputText(FieldInterface field)
public javax.faces.component.html.HtmlInputText doCreateInputTextComponent()
public javax.faces.component.UISelectBoolean doCreateInputBoolean(FieldInterface field)
public javax.faces.component.html.HtmlSelectBooleanCheckbox doCreateInputBooleanComponent()
public javax.faces.component.html.HtmlInputText doCreateInputNumber(FieldInterface field)
public javax.faces.component.html.HtmlSelectOneMenu doCreateSelectOneMenu(FieldInterface field)
public javax.faces.component.html.HtmlSelectManyListbox doCreateSelectManyListbox(FieldInterface field)
public javax.faces.component.html.HtmlSelectOneMenu doCreateSelectOneMenuComponent()
public javax.faces.component.html.HtmlSelectManyListbox doCreateSelectManyListboxComponent()
public javax.faces.component.UIComponent doCreateSearchFor(FieldInterface field)
public javax.faces.component.UIInput doCreateSearchForSelectMenu(FieldInterface field)
public javax.faces.component.html.HtmlCommandLink doCreateCommandLink(FieldInterface field)
public javax.faces.component.html.HtmlCommandLink doCreateCommandLinkComponent()
public javax.faces.component.html.HtmlPanelGroup doCreatePanelGroupComponent()
public void doCreateNative(FieldInterface field, javax.faces.component.UIComponent uicomponent)
public javax.faces.component.UIParameter createParameter(java.lang.String name, java.lang.String value)
public void fireNewComponent(FieldInterface field, javax.faces.component.UIComponent cmp)
public javax.faces.component.UIOutput createLabelFor(java.lang.String labelText, javax.faces.component.UIComponent cmp)
labelText
and if possible
attach it to the cmp
.
public javax.faces.component.UIInput findInputComponent(javax.faces.component.UIComponent cmp)
public void initDefaults(javax.faces.component.UIComponent cmp, FieldInterface field)
protected java.lang.String getCleanedNameForId(java.lang.String name)
public void initOutputDefaults(javax.faces.component.UIOutput cmp, FieldInterface field)
public void initValueBinding(javax.faces.component.UIComponent cmp, FieldInterface field)
protected java.lang.String createValueBindingString(FieldInterface field)
public void iniCommandDefaults(javax.faces.component.UICommand cmp, FieldInterface field, java.lang.String action, java.lang.String actionListener)
public void initInputDefaults(javax.faces.component.html.HtmlInputText cmp, FieldInterface field)
protected void attachRangeValidator(javax.faces.component.html.HtmlInputText cmp, java.lang.Double minValue, java.lang.Double maxValue)
protected void attachLengthValidator(javax.faces.component.html.HtmlInputText cmp, int minSize, int maxSize)
public void initInputDefaults(javax.faces.component.UIInput cmp, FieldInterface field)
public void initConverter(javax.faces.component.UIOutput cmp, FieldInterface field)
public void initSelections(FieldInterface field, javax.faces.component.UIComponent cmp)
public javax.faces.context.FacesContext getContext()
protected boolean buildField(FieldInterface field)
GuiBuilder
buildField
in class GuiBuilder
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |