public static ComponentType lookup(final String id) { for (final ComponentType componentType : values()) { if (componentType.getWicketId().equals(id)) { return componentType; } } return null; }
public PanelAbstract(final ComponentType componentType, final T model) { this(componentType.getWicketId(), model); }