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