org.yawlfoundation.yawl.resourcing.jsf.dynform
Class DynFormFactory

java.lang.Object
  extended by com.sun.rave.web.ui.appbase.FacesBean
      extended by com.sun.rave.web.ui.appbase.AbstractSessionBean
          extended by org.yawlfoundation.yawl.resourcing.jsf.dynform.DynFormFactory
All Implemented Interfaces:
Serializable

public class DynFormFactory
extends com.sun.rave.web.ui.appbase.AbstractSessionBean

See Also:
Serialized Form

Nested Class Summary
protected static class DynFormFactory.ComponentType
           
 
Constructor Summary
DynFormFactory()
           
 
Method Summary
 void addClonedFieldToTable(com.sun.rave.web.ui.component.TextField orig, com.sun.rave.web.ui.component.TextField clone)
           
 void addSubPanelController(SubPanel panel)
           
 void addSubPanelControllerMap(Map<String,SubPanelController> map)
           
 String createUniqueID(String id)
           
 String despace(String text)
           
 String enspace(String text)
           
 DynFormUserAttributes getAttributes()
           
 String getAttributeValue(String key)
           
 String getBottomPanelStyle()
           
 String getBtnCancelStyle()
           
 String getBtnCompleteStyle()
           
 String getBtnOKStyle()
           
 com.sun.rave.web.ui.component.PanelLayout getCompPanel()
           
 String getContainerStyle()
           
 String getDataList()
           
 String getDefaultFormName()
           
 WorkItemRecord getDisplayedWIR()
           
protected  DynFormField getFieldForComponent(javax.faces.component.UIComponent component)
           
protected  int getFieldHeight(DynFormField field)
           
protected  int getFieldHeight(javax.faces.component.UIComponent component)
           
 String getFocus()
           
 String getFormAltBackgroundColour()
           
 String getFormBackgroundColour()
           
 Font getFormFont()
           
 DynFormFont getFormFonts()
           
 String getFormFontStyle()
           
 Font getFormHeaderFont()
           
 String getFormHeaderFontStyle()
           
 int getFormHeight()
           
 String getFormJustify()
           
 int getFormWidth()
           
 String getHeaderText()
           
protected  int getOuterPanelWidth()
           
 String getPageBackgroundColour()
           
 String getPageBackgroundURL()
           
 int getStaticTextHeight(com.sun.rave.web.ui.component.StaticText statText)
           
 String getTaskLabel()
           
protected  int getTextWidth(String s, Font font)
           
 String getTitle()
           
 String getWorkItemData()
           
 boolean initDynForm(String title)
          Initialises a new dynamic form
 boolean isFormReadOnly()
           
 com.sun.rave.web.ui.component.Button makeOccursButton(String name, String text)
           
 void processOccursAction(SubPanel panel, String btnType)
           
 void removeSubPanelController(SubPanel panel)
           
 void resetFormHeight()
           
 void setBottomPanelStyle(String style)
           
 void setBtnCancelStyle(String style)
           
 void setBtnCompleteStyle(String style)
           
 void setBtnOKStyle(String style)
           
 void setCompPanel(com.sun.rave.web.ui.component.PanelLayout pl)
           
 void setContainerStyle(String style)
           
 void setDisplayedWIR(WorkItemRecord wir)
           
 void setFocus(String s)
           
 void setHeaderText(String text)
           
 void setTitle(String s)
           
 boolean validateInputs()
           
 
Methods inherited from class com.sun.rave.web.ui.appbase.AbstractSessionBean
activate, destroy, init, passivate
 
Methods inherited from class com.sun.rave.web.ui.appbase.FacesBean
erase, error, error, fatal, fatal, getApplication, getApplicationMap, getBean, getCachedExceptions, getContext, getExternalContext, getFacesContext, getLifecycle, getRequestMap, getSessionMap, getValue, info, info, log, log, setBean, setValue, warn, warn
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DynFormFactory

public DynFormFactory()
Method Detail

getCompPanel

public com.sun.rave.web.ui.component.PanelLayout getCompPanel()

setCompPanel

public void setCompPanel(com.sun.rave.web.ui.component.PanelLayout pl)

getHeaderText

public String getHeaderText()

setHeaderText

public void setHeaderText(String text)

getContainerStyle

public String getContainerStyle()

setContainerStyle

public void setContainerStyle(String style)

getBtnOKStyle

public String getBtnOKStyle()

setBtnOKStyle

public void setBtnOKStyle(String style)

getBtnCancelStyle

public String getBtnCancelStyle()

setBtnCancelStyle

public void setBtnCancelStyle(String style)

getBtnCompleteStyle

public String getBtnCompleteStyle()

setBtnCompleteStyle

public void setBtnCompleteStyle(String style)

getBottomPanelStyle

public String getBottomPanelStyle()

setBottomPanelStyle

public void setBottomPanelStyle(String style)

getTitle

public String getTitle()

setTitle

public void setTitle(String s)

getFocus

public String getFocus()

setFocus

public void setFocus(String s)

getDisplayedWIR

public WorkItemRecord getDisplayedWIR()

setDisplayedWIR

public void setDisplayedWIR(WorkItemRecord wir)

initDynForm

public boolean initDynForm(String title)
Initialises a new dynamic form

Parameters:
title - the page title
Returns:
true if form is successfully initialised

getWorkItemData

public String getWorkItemData()
Returns:
the data of the displayed workitem

getFormFonts

public DynFormFont getFormFonts()

getStaticTextHeight

public int getStaticTextHeight(com.sun.rave.web.ui.component.StaticText statText)

getFieldHeight

protected int getFieldHeight(javax.faces.component.UIComponent component)

getFieldHeight

protected int getFieldHeight(DynFormField field)

getTextWidth

protected int getTextWidth(String s,
                           Font font)

makeOccursButton

public com.sun.rave.web.ui.component.Button makeOccursButton(String name,
                                                             String text)

createUniqueID

public String createUniqueID(String id)

getDefaultFormName

public String getDefaultFormName()

getFieldForComponent

protected DynFormField getFieldForComponent(javax.faces.component.UIComponent component)

addSubPanelController

public void addSubPanelController(SubPanel panel)

addSubPanelControllerMap

public void addSubPanelControllerMap(Map<String,SubPanelController> map)

removeSubPanelController

public void removeSubPanelController(SubPanel panel)

addClonedFieldToTable

public void addClonedFieldToTable(com.sun.rave.web.ui.component.TextField orig,
                                  com.sun.rave.web.ui.component.TextField clone)

processOccursAction

public void processOccursAction(SubPanel panel,
                                String btnType)

getDataList

public String getDataList()

getFormWidth

public int getFormWidth()

getOuterPanelWidth

protected int getOuterPanelWidth()

getFormHeight

public int getFormHeight()

resetFormHeight

public void resetFormHeight()

validateInputs

public boolean validateInputs()

getAttributes

public DynFormUserAttributes getAttributes()

enspace

public String enspace(String text)

despace

public String despace(String text)

getPageBackgroundURL

public String getPageBackgroundURL()

getPageBackgroundColour

public String getPageBackgroundColour()

getFormBackgroundColour

public String getFormBackgroundColour()

getFormAltBackgroundColour

public String getFormAltBackgroundColour()

getFormFontStyle

public String getFormFontStyle()

getFormFont

public Font getFormFont()

getFormHeaderFont

public Font getFormHeaderFont()

getFormHeaderFontStyle

public String getFormHeaderFontStyle()

getFormJustify

public String getFormJustify()

isFormReadOnly

public boolean isFormReadOnly()

getTaskLabel

public String getTaskLabel()

getAttributeValue

public String getAttributeValue(String key)


Copyright © 2004-2012 The YAWL Foundation.