public static ComponentType lookup(final String id) {
   for (final ComponentType componentType : values()) {
     if (componentType.getWicketId().equals(id)) {
       return componentType;
     }
   }
   return null;
 }
Exemple #2
0
 public PanelAbstract(final String id, final T model) {
   super(id, model);
   this.componentType = ComponentType.lookup(id);
 }
Exemple #3
0
 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);
 }