@Override
 protected void initPageContent() {
   this.view = viewFactory.createTypeChoiceView();
   String label = properties.getOffensiveLabel();
   addStatisticsTypeRow(label, EquipmentStatisticsType.CloseCombat);
   addStatisticsTypeRow("", EquipmentStatisticsType.RangedCombat); // $NON-NLS-1$
   view.addHorizontalLine();
   addStatisticsTypeRow(properties.getDefensiveLabel(), EquipmentStatisticsType.Armor);
   addStatisticsTypeRow("", EquipmentStatisticsType.Shield); // $NON-NLS-1$
   view.addHorizontalLine();
   addStatisticsTypeRow(properties.getOtherLabel(), EquipmentStatisticsType.TraitModifying);
   addStatisticsTypeRow("", EquipmentStatisticsType.Artifact);
   /* if (editModel != null &&
   	editModel.getMaterialComposition() == MaterialComposition.Variable)
   {
   	//view.addHorizontalLine();
   	view.addCheckBox(properties.getMaterialToggleLabel(),
   			new ItemListener()
   			{
   	@Override
   	public void itemStateChanged(ItemEvent e) {
   		materialSpecific = e.getStateChange() == ItemEvent.DESELECTED;
   		inputListener.changeOccurred();
   	}
   			}, !materialSpecific);
   }*/
 }
  private void addStatisticsTypeRow(String label, final EquipmentStatisticsType type) {
    Action action =
        new SmartAction(properties.getIcon(type)) {
          private static final long serialVersionUID = 1L;

          @Override
          protected void execute(Component parentComponent) {
            model.setEquipmentType(type);
          }
        };
    String typeLabel = properties.getLabel(type);
    view.addStatisticsRow(label, action, typeLabel, model.getEquipmentType() == type);
  }
 public EquipmentTypeChoicePresenterPage(
     IResources resources,
     IEquipmentStatisticsCreationModel model,
     IEquipmentTemplateEditModel editModel,
     IEquipmentStatisticsCreationViewFactory viewFactory) {
   this.properties = new EquipmentTypeChoiceProperties(resources);
   this.defaultMessage = new BasicMessage(properties.getTypeChoiceMessage());
   this.resources = resources;
   this.model = model;
   this.viewFactory = viewFactory;
   // this.editModel = editModel;
   /*    materialSpecific = model.getApplicableMaterialsModel().getValidMaterials().length > 0 &&
   model.getApplicableMaterialsModel().getValidMaterials().length !=
   MagicalMaterial.values().length;*/
 }
 public String getDescription() {
   return properties.getTypeChoiceTitle();
 }