|
||||||||||
| 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
org.apache.myfaces.custom.dynaForm.guiBuilder.impl.jsf.JsfGuiBuilderDecorator
public class JsfGuiBuilderDecorator
a helper to be able to decorate the builder
| Field Summary |
|---|
| Fields inherited from class org.apache.myfaces.custom.dynaForm.guiBuilder.impl.jsf.JsfGuiBuilder |
|---|
SEARCH_ENTITY_BINDING, SEARCH_ENTITY_TYPE |
| Constructor Summary | |
|---|---|
JsfGuiBuilderDecorator(JsfGuiBuilder original)
|
|
| Method Summary | |
|---|---|
protected void |
attachLengthValidator(javax.faces.component.html.HtmlInputText cmp,
int minSize,
int maxSize)
|
protected void |
attachRangeValidator(javax.faces.component.html.HtmlInputText cmp,
double minValue,
double maxValue)
|
protected boolean |
buildField(FieldInterface field)
actuallly build the fields gui component |
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 |
createSelectOneMenu(FieldInterface field)
select one menu |
javax.faces.component.html.HtmlCommandLink |
doCreateCommandLink(FieldInterface field)
|
javax.faces.component.html.HtmlCommandLink |
doCreateCommandLinkComponent()
|
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.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()
|
javax.faces.context.FacesContext |
getContext()
|
java.util.Map |
getLabelBundle()
|
NewComponentListener |
getNewComponentListener()
|
JsfGuiBuilder |
getOriginal()
|
void |
iniCommandDefaults(javax.faces.component.UICommand cmp,
FieldInterface field,
java.lang.String action,
java.lang.String actionListener)
init defaults specifically for commands |
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 |
boolean |
isDisplayOnly()
|
void |
setBackingBeanPrefix(java.lang.String backingBeanPrefix)
|
void |
setBackingEntityPrefix(java.lang.String backingEntityPrefix)
|
void |
setContext(javax.faces.context.FacesContext context)
|
void |
setDisplayOnly(boolean displayOnly)
set if the guiBuilder should build a read only form only |
void |
setLabelBundle(java.util.Map labelBundle)
the bundle to use with labels |
void |
setNewComponentListener(NewComponentListener newComponentListener)
|
| Methods inherited from class org.apache.myfaces.custom.dynaForm.guiBuilder.impl.jsf.JsfGuiBuilder |
|---|
addElementBuilder, attachRangeValidator, cloneComponent, createSearchForSelectMenu, createValueBindingString, doCreateConverter, doCreateSearchForSelectMenu, doCreateSelectManyListbox, doCreateSelectManyListboxComponent, getCleanedNameForId, initConverter |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JsfGuiBuilderDecorator(JsfGuiBuilder original)
| Method Detail |
|---|
public JsfGuiBuilder getOriginal()
public void createInputBoolean(FieldInterface field)
GuiBuilder
createInputBoolean in class JsfGuiBuilderpublic void createInputDate(FieldInterface field)
GuiBuilder
createInputDate in class JsfGuiBuilderpublic void createInputNumber(FieldInterface field)
GuiBuilder
createInputNumber in class JsfGuiBuilderpublic void createInputText(FieldInterface field)
GuiBuilder
createInputText in class JsfGuiBuilder
public javax.faces.component.UIOutput createLabelFor(java.lang.String labelText,
javax.faces.component.UIComponent cmp)
JsfGuiBuilderlabelText and if possible
attach it to the cmp.
createLabelFor in class JsfGuiBuilderpublic void createNative(FieldInterface field)
GuiBuilder
createNative in class JsfGuiBuilderpublic void createOutputText(FieldInterface field)
GuiBuilder
createOutputText in class JsfGuiBuilder
public javax.faces.component.UIParameter createParameter(java.lang.String name,
java.lang.String value)
createParameter in class JsfGuiBuilderpublic void createSearchFor(FieldInterface field)
GuiBuilder
createSearchFor in class JsfGuiBuilderpublic void createSelectOneMenu(FieldInterface field)
GuiBuilder
createSelectOneMenu in class JsfGuiBuilderpublic javax.faces.component.html.HtmlCommandLink doCreateCommandLink(FieldInterface field)
doCreateCommandLink in class JsfGuiBuilderpublic javax.faces.component.html.HtmlCommandLink doCreateCommandLinkComponent()
doCreateCommandLinkComponent in class JsfGuiBuilderpublic javax.faces.convert.DateTimeConverter doCreateDateConverter(FieldInterface field)
doCreateDateConverter in class JsfGuiBuilderpublic javax.faces.component.UISelectBoolean doCreateInputBoolean(FieldInterface field)
doCreateInputBoolean in class JsfGuiBuilderpublic javax.faces.component.html.HtmlSelectBooleanCheckbox doCreateInputBooleanComponent()
doCreateInputBooleanComponent in class JsfGuiBuilderpublic javax.faces.component.html.HtmlInputText doCreateInputDate(FieldInterface field)
doCreateInputDate in class JsfGuiBuilderpublic javax.faces.component.html.HtmlInputText doCreateInputDateComponent(FieldInterface field)
doCreateInputDateComponent in class JsfGuiBuilderpublic javax.faces.component.html.HtmlInputText doCreateInputNumber(FieldInterface field)
doCreateInputNumber in class JsfGuiBuilderpublic javax.faces.component.html.HtmlInputText doCreateInputText(FieldInterface field)
doCreateInputText in class JsfGuiBuilderpublic javax.faces.component.html.HtmlInputText doCreateInputTextComponent()
doCreateInputTextComponent in class JsfGuiBuilder
public void doCreateNative(FieldInterface field,
javax.faces.component.UIComponent uicomponent)
doCreateNative in class JsfGuiBuilderpublic javax.faces.component.html.HtmlOutputLabel doCreateOutputLabel(java.lang.String text)
doCreateOutputLabel in class JsfGuiBuilderpublic javax.faces.component.html.HtmlOutputLabel doCreateOutputLabelComponent()
doCreateOutputLabelComponent in class JsfGuiBuilderpublic javax.faces.component.html.HtmlOutputText doCreateOutputText(FieldInterface field)
doCreateOutputText in class JsfGuiBuilderpublic javax.faces.component.html.HtmlOutputText doCreateOutputText(java.lang.String text)
doCreateOutputText in class JsfGuiBuilderpublic javax.faces.component.html.HtmlOutputText doCreateOutputTextComponent()
doCreateOutputTextComponent in class JsfGuiBuilderpublic javax.faces.component.html.HtmlPanelGroup doCreatePanelGroupComponent()
doCreatePanelGroupComponent in class JsfGuiBuilderpublic javax.faces.component.UIComponent doCreateSearchFor(FieldInterface field)
doCreateSearchFor in class JsfGuiBuilderpublic javax.faces.component.html.HtmlSelectOneMenu doCreateSelectOneMenu(FieldInterface field)
doCreateSelectOneMenu in class JsfGuiBuilderpublic javax.faces.component.html.HtmlSelectOneMenu doCreateSelectOneMenuComponent()
doCreateSelectOneMenuComponent in class JsfGuiBuilderpublic javax.faces.component.UIInput findInputComponent(javax.faces.component.UIComponent cmp)
JsfGuiBuilder
findInputComponent in class JsfGuiBuilder
public void fireNewComponent(FieldInterface field,
javax.faces.component.UIComponent cmp)
JsfGuiBuilder
fireNewComponent in class JsfGuiBuilderpublic java.lang.String getBackingBeanPrefix()
getBackingBeanPrefix in class JsfGuiBuilderpublic java.lang.String getBackingEntityPrefix()
getBackingEntityPrefix in class JsfGuiBuilderpublic javax.faces.context.FacesContext getContext()
getContext in class JsfGuiBuilderpublic NewComponentListener getNewComponentListener()
getNewComponentListener in class JsfGuiBuilder
public void iniCommandDefaults(javax.faces.component.UICommand cmp,
FieldInterface field,
java.lang.String action,
java.lang.String actionListener)
JsfGuiBuilder
iniCommandDefaults in class JsfGuiBuilder
public void initDefaults(javax.faces.component.UIComponent cmp,
FieldInterface field)
JsfGuiBuilder
initDefaults in class JsfGuiBuilder
public void initInputDefaults(javax.faces.component.html.HtmlInputText cmp,
FieldInterface field)
JsfGuiBuilder
initInputDefaults in class JsfGuiBuilder
public void initInputDefaults(javax.faces.component.UIInput cmp,
FieldInterface field)
JsfGuiBuilder
initInputDefaults in class JsfGuiBuilder
public void initOutputDefaults(javax.faces.component.UIOutput cmp,
FieldInterface field)
JsfGuiBuilder
initOutputDefaults in class JsfGuiBuilder
public void initSelections(FieldInterface field,
javax.faces.component.UIComponent cmp)
JsfGuiBuilder
initSelections in class JsfGuiBuilder
public void initValueBinding(javax.faces.component.UIComponent cmp,
FieldInterface field)
JsfGuiBuilder
initValueBinding in class JsfGuiBuilderpublic boolean isDisplayOnly()
isDisplayOnly in class GuiBuilderGuiBuilder.setDisplayOnly(boolean)public void setBackingBeanPrefix(java.lang.String backingBeanPrefix)
setBackingBeanPrefix in class JsfGuiBuilderpublic void setBackingEntityPrefix(java.lang.String backingEntityPrefix)
setBackingEntityPrefix in class JsfGuiBuilderpublic void setContext(javax.faces.context.FacesContext context)
setContext in class JsfGuiBuilderpublic void setDisplayOnly(boolean displayOnly)
GuiBuilder
setDisplayOnly in class GuiBuilderpublic void setNewComponentListener(NewComponentListener newComponentListener)
setNewComponentListener in class JsfGuiBuilderpublic java.util.Map getLabelBundle()
getLabelBundle in class GuiBuilderGuiBuilder.setLabelBundle(Map)public void setLabelBundle(java.util.Map labelBundle)
GuiBuilder
setLabelBundle in class GuiBuilder
protected void attachLengthValidator(javax.faces.component.html.HtmlInputText cmp,
int minSize,
int maxSize)
attachLengthValidator in class JsfGuiBuilder
protected void attachRangeValidator(javax.faces.component.html.HtmlInputText cmp,
double minValue,
double maxValue)
protected boolean buildField(FieldInterface field)
GuiBuilder
buildField in class JsfGuiBuilder
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||