1 package org.tigris.scarab.screens.admin; 2 3 48 49 import org.apache.turbine.RunData; 51 import org.apache.turbine.TemplateContext; 52 53 import org.tigris.scarab.tools.ScarabRequestTool; 55 import org.tigris.scarab.tools.ScarabLocalizationTool; 56 import org.tigris.scarab.om.AttributeGroup; 57 import org.tigris.scarab.screens.Default; 58 59 65 public class AttributeGroupEdit extends Default 66 { 67 protected String getTitle(ScarabRequestTool scarabR, 68 ScarabLocalizationTool l10n, 69 RunData data, TemplateContext context) 70 throws Exception 71 { 72 String groupId = data.getParameters().getString("groupid"); 73 AttributeGroup group = scarabR.getAttributeGroup(groupId); 74 String title = null; 75 if (group == null) 76 { 77 title = l10n.get("AddAttributeGroup"); 78 } 79 else 80 { 81 title = l10n.format("EditAttributeGroup", group.getName()); 82 } 83 return title; 84 } 85 } 86 | Popular Tags |