com.logicaldoc.web.admin
Class TemplateForm
java.lang.Object
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
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
log
protected static org.apache.commons.logging.Log log
TemplateForm
public TemplateForm()
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.