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