@Override protected Component getComponentForProperty(String id, IModel itemModel, Property<DataAccessRule> property) { if (property == DataAccessRuleProvider.RULEKEY) { return editRuleLink(id, itemModel, property); } if (property == DataAccessRuleProvider.ROLES) { return new Label(id, property.getModel(itemModel)); } throw new RuntimeException("Uknown property " + property); }
@Override protected Component getComponentForProperty(String id, IModel itemModel, Property<DataAccessRule> property) { if (property == DataAccessRuleProvider.RULEKEY) { return editRuleLink(id, itemModel, property); } if (property == DataAccessRuleProvider.ROLES) { return new Label(id, property.getModel(itemModel)); } throw new RuntimeException("Uknown property " + property); }
@Override protected Component getComponentForProperty( String id, IModel<DataAccessRule> itemModel, Property<DataAccessRule> property) { if (property == DataAccessRuleProvider.RULEKEY) { return editRuleLink(id, itemModel, property); } if (property == DataAccessRuleProvider.ROLES) { return new Label(id, property.getModel(itemModel)); } throw new RuntimeException("Uknown property " + property); }