1 19 20 package com.sslexplorer.properties.attributes.wizards.forms; 21 22 import javax.servlet.http.HttpServletRequest ; 23 24 import org.apache.commons.logging.Log; 25 import org.apache.commons.logging.LogFactory; 26 27 import com.sslexplorer.boot.PropertyClassManager; 28 import com.sslexplorer.properties.attributes.AttributesPropertyClass; 29 import com.sslexplorer.properties.attributes.wizards.actions.AttributeDefinitionDetailsAction; 30 import com.sslexplorer.properties.attributes.wizards.actions.AttributeDefinitionOptionsAction; 31 import com.sslexplorer.wizard.AbstractWizardSequence; 32 import com.sslexplorer.wizard.forms.DefaultWizardForm; 33 34 41 public class AttributeDefinitionSummaryForm extends DefaultWizardForm { 42 43 final static Log log = LogFactory.getLog(AttributeDefinitionSummaryForm.class); 44 45 private String name, label, category; 46 private AttributesPropertyClass attributeClass; 47 private int type, weight, visibility; 48 49 52 public AttributeDefinitionSummaryForm() { 53 super(false, true, "/WEB-INF/jsp/content/properties/attributeDefinitionWizard/attributeDefinitionSummary.jspf", "", true, true, 54 "attributeDefinitionSummary", "properties", "attributeDefinitionWizard.attributeDefinitionSummary", 3); 55 } 56 57 62 public void init(AbstractWizardSequence sequence, HttpServletRequest request) throws Exception { 63 name = (String ) sequence.getAttribute(AttributeDefinitionDetailsAction.ATTR_NAME, null); 64 attributeClass = (AttributesPropertyClass)PropertyClassManager.getInstance().getPropertyClass((String ) sequence.getAttribute(AttributeDefinitionDetailsAction.ATTR_CLASS, null)); 65 type = ((Integer )sequence.getAttribute(AttributeDefinitionOptionsAction.ATTR_TYPE, null)).intValue(); 66 label = (String )sequence.getAttribute(AttributeDefinitionOptionsAction.ATTR_LABEL, null); 67 category = (String )sequence.getAttribute(AttributeDefinitionOptionsAction.ATTR_CATEGORY, null); 68 weight = ((Integer )sequence.getAttribute(AttributeDefinitionOptionsAction.ATTR_SORT_ORDER, null)).intValue(); 69 visibility = ((Integer )sequence.getAttribute(AttributeDefinitionOptionsAction.ATTR_VISIBILITY, null)).intValue(); 70 } 71 72 77 public String getName() { 78 return name; 79 } 80 81 86 public String getCategory() { 87 return category; 88 } 89 90 95 public String getLabel() { 96 return label; 97 } 98 99 104 public int getVisibility() { 105 return visibility; 106 } 107 108 113 public int getWeight() { 114 return weight; 115 } 116 117 122 public int getType() { 123 return type; 124 } 125 126 131 public AttributesPropertyClass getAttributeClass() { 132 return attributeClass; 133 } 134 } 135 | Popular Tags |