com.logicaldoc.web.admin
Class TemplateForm

java.lang.Object
  extended by com.logicaldoc.web.admin.TemplateForm

public class TemplateForm
extends java.lang.Object

Form for template editing

Since:
4.0
Author:
Marco Meschieri - Logical Objects

Field Summary
protected static org.apache.commons.logging.Log log
           
 
Constructor Summary
TemplateForm()
           
 
Method Summary
 java.lang.String addAttribute()
           
 java.lang.String attributeDown()
          Moves the selected attribute down of one position
 java.lang.String attributeUp()
          Moves the selected attribute up of one position
 void cancel()
           
 java.lang.String cleanAttributes()
           
 java.util.Map<java.lang.String,java.lang.Integer> getAttributesPositions()
           
 javax.faces.component.UIInput getDescriptionInput()
           
 int getMajorPosition(com.logicaldoc.core.document.DocumentTemplate template)
           
 javax.faces.component.UIInput getMandatoryInput()
           
 javax.faces.component.UIInput getNameInput()
           
 java.lang.String getNewAttribute()
           
 javax.faces.component.UIInput getNewAttributeInput()
           
 java.lang.String getSelectedAttribute()
           
 javax.faces.component.UISelectOne getSelectListInput()
           
 com.logicaldoc.core.document.DocumentTemplate getTemplate()
           
 java.util.Collection<javax.faces.model.SelectItem> getTemplateAttributes()
           
 int getTemplateAttributesCount()
           
 int getType()
           
 javax.faces.component.UIInput getTypeInput()
           
 boolean isAttributeNameValid()
           
 boolean isMandatory()
           
 java.lang.String removeAttribute()
          Remove the selected attribute.
 java.lang.String save()
           
 void selectAttribute(javax.faces.event.ValueChangeEvent event)
           
 void setDescriptionInput(javax.faces.component.UIInput descriptionInput)
           
 void setMandatory(boolean mandatory)
           
 void setMandatoryInput(javax.faces.component.UIInput mandatoryInput)
           
 void setNameInput(javax.faces.component.UIInput nameInput)
           
 void setNewAttribute(java.lang.String newAttribute)
           
 void setNewAttributeInput(javax.faces.component.UIInput newAttributeInput)
           
 void setSelectedAttribute(java.lang.String selectedAttribute)
           
 void setSelectListInput(javax.faces.component.UISelectOne selectListInput)
           
 void setTemplate(com.logicaldoc.core.document.DocumentTemplate template)
           
 void setTemplateAttributes(java.util.List<javax.faces.model.SelectItem> templateAttributes)
           
 void setType(int type)
           
 void setTypeInput(javax.faces.component.UIInput typeInput)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected static org.apache.commons.logging.Log log
Constructor Detail

TemplateForm

public TemplateForm()
Method Detail

getTemplate

public com.logicaldoc.core.document.DocumentTemplate getTemplate()

getNewAttribute

public java.lang.String getNewAttribute()

setNewAttribute

public void setNewAttribute(java.lang.String newAttribute)

setTemplate

public void setTemplate(com.logicaldoc.core.document.DocumentTemplate template)

getTemplateAttributes

public java.util.Collection<javax.faces.model.SelectItem> getTemplateAttributes()

setTemplateAttributes

public void setTemplateAttributes(java.util.List<javax.faces.model.SelectItem> templateAttributes)

getTemplateAttributesCount

public int getTemplateAttributesCount()

getSelectedAttribute

public java.lang.String getSelectedAttribute()

setSelectedAttribute

public void setSelectedAttribute(java.lang.String selectedAttribute)

addAttribute

public java.lang.String addAttribute()

removeAttribute

public java.lang.String removeAttribute()
Remove the selected attribute. The user can remove an attribute only during the template creation.


cleanAttributes

public java.lang.String cleanAttributes()

save

public java.lang.String save()

cancel

public void cancel()

isMandatory

public boolean isMandatory()

setMandatory

public void setMandatory(boolean mandatory)

getType

public int getType()

setType

public void setType(int type)

getTypeInput

public javax.faces.component.UIInput getTypeInput()

setTypeInput

public void setTypeInput(javax.faces.component.UIInput typeInput)

getMandatoryInput

public javax.faces.component.UIInput getMandatoryInput()

setMandatoryInput

public void setMandatoryInput(javax.faces.component.UIInput mandatoryInput)

selectAttribute

public void selectAttribute(javax.faces.event.ValueChangeEvent event)

attributeUp

public java.lang.String attributeUp()
Moves the selected attribute up of one position


attributeDown

public java.lang.String attributeDown()
Moves the selected attribute down of one position


getNewAttributeInput

public javax.faces.component.UIInput getNewAttributeInput()

setNewAttributeInput

public void setNewAttributeInput(javax.faces.component.UIInput newAttributeInput)

getNameInput

public javax.faces.component.UIInput getNameInput()

setNameInput

public void setNameInput(javax.faces.component.UIInput nameInput)

getDescriptionInput

public javax.faces.component.UIInput getDescriptionInput()

setDescriptionInput

public void setDescriptionInput(javax.faces.component.UIInput descriptionInput)

getSelectListInput

public javax.faces.component.UISelectOne getSelectListInput()

setSelectListInput

public void setSelectListInput(javax.faces.component.UISelectOne selectListInput)

getMajorPosition

public int getMajorPosition(com.logicaldoc.core.document.DocumentTemplate template)

getAttributesPositions

public java.util.Map<java.lang.String,java.lang.Integer> getAttributesPositions()

isAttributeNameValid

public boolean isAttributeNameValid()


Copyright © 2008-2010 Logical Objects. All Rights Reserved.