@Test public void testGet() { final BeanMetaDataFactory factory = new BeanMetaDataFactory(); final BeanMetaData metaData = factory.getBeanMetaData(Person.class); WicketopiaPropertyFacet facet = WicketopiaPropertyFacet.get(metaData.getPropertyMetaData("first")); assertNotNull(facet); }
public static WicketopiaPropertyFacet get(PropertyMetaData propertyMetaData) { synchronized (propertyMetaData) { WicketopiaPropertyFacet meta = propertyMetaData.getFacet(FACET_KEY); if (meta == null) { meta = new WicketopiaPropertyFacet(propertyMetaData); propertyMetaData.setFacet(FACET_KEY, meta); } return meta; } }
WicketopiaPropertyFacet implements Serializable, Displayable { public static WicketopiaPropertyFacet get(PropertyMetaData propertyMetaData) { synchronized (propertyMetaData) { WicketopiaPropertyFacet meta = propertyMetaData.getFacet(FACET_KEY); if (meta == null) { meta = new WicketopiaPropertyFacet(propertyMetaData); propertyMetaData.setFacet(FACET_KEY, meta); } return meta; } } }
WicketopiaPropertyFacet implements Serializable, Displayable { public static WicketopiaPropertyFacet get(PropertyMetaData propertyMetaData) { synchronized (propertyMetaData) { WicketopiaPropertyFacet meta = propertyMetaData.getFacet(FACET_KEY); if (meta == null) { meta = new WicketopiaPropertyFacet(propertyMetaData); propertyMetaData.setFacet(FACET_KEY, meta); } return meta; } } WicketopiaPropertyFacet(PropertyMetaData propertyMetaData); }
WicketopiaPropertyFacet implements Serializable, Displayable { public static WicketopiaPropertyFacet get(PropertyMetaData propertyMetaData) { synchronized (propertyMetaData) { WicketopiaPropertyFacet meta = propertyMetaData.getFacet(FACET_KEY); if (meta == null) { meta = new WicketopiaPropertyFacet(propertyMetaData); propertyMetaData.setFacet(FACET_KEY, meta); } return meta; } } WicketopiaPropertyFacet(PropertyMetaData propertyMetaData); static int compare(WicketopiaPropertyFacet leftFacet, WicketopiaPropertyFacet rightFacet); static WicketopiaPropertyFacet get(PropertyMetaData propertyMetaData); static void sort(List<PropertyMetaData> propertyMetaDataList); String getDisplayName(); String getDisplayNameMessageKey(); void setDisplayName(String displayName); void setDisplayNameMessageKey(String displayNameMessageKey); Set<ComponentBuilderFeature<EditorBuilder>> getEditorFeatures(); String getEditorType(); void setEditorType(String editorType); int getOrder(); void setOrder(int order); PropertyMetaData getPropertyMetaData(); Set<ComponentBuilderFeature<ViewerBuilder>> getViewerFeatures(); String getViewerType(); void setViewerType(String viewerType); boolean isIgnored(); void setIgnored(boolean ignored); void addEditorFeature(ComponentBuilderFeature<EditorBuilder> feature); void addViewerFeature(ComponentBuilderFeature<ViewerBuilder> feature); void decorate(ViewerBuilder builder, Context context); void decorate(EditorBuilder builder, Context context); boolean isEnabled(Context context); boolean isRequired(Context context); boolean isVisible(Context context); void setEnabled(ContextPredicate predicate, boolean value); void setRequired(ContextPredicate predicate, boolean value); void setVisible(ContextPredicate predicate, boolean value); }
WicketopiaPropertyFacet implements Serializable, Displayable { public static WicketopiaPropertyFacet get(PropertyMetaData propertyMetaData) { synchronized (propertyMetaData) { WicketopiaPropertyFacet meta = propertyMetaData.getFacet(FACET_KEY); if (meta == null) { meta = new WicketopiaPropertyFacet(propertyMetaData); propertyMetaData.setFacet(FACET_KEY, meta); } return meta; } } WicketopiaPropertyFacet(PropertyMetaData propertyMetaData); static int compare(WicketopiaPropertyFacet leftFacet, WicketopiaPropertyFacet rightFacet); static WicketopiaPropertyFacet get(PropertyMetaData propertyMetaData); static void sort(List<PropertyMetaData> propertyMetaDataList); String getDisplayName(); String getDisplayNameMessageKey(); void setDisplayName(String displayName); void setDisplayNameMessageKey(String displayNameMessageKey); Set<ComponentBuilderFeature<EditorBuilder>> getEditorFeatures(); String getEditorType(); void setEditorType(String editorType); int getOrder(); void setOrder(int order); PropertyMetaData getPropertyMetaData(); Set<ComponentBuilderFeature<ViewerBuilder>> getViewerFeatures(); String getViewerType(); void setViewerType(String viewerType); boolean isIgnored(); void setIgnored(boolean ignored); void addEditorFeature(ComponentBuilderFeature<EditorBuilder> feature); void addViewerFeature(ComponentBuilderFeature<ViewerBuilder> feature); void decorate(ViewerBuilder builder, Context context); void decorate(EditorBuilder builder, Context context); boolean isEnabled(Context context); boolean isRequired(Context context); boolean isVisible(Context context); void setEnabled(ContextPredicate predicate, boolean value); void setRequired(ContextPredicate predicate, boolean value); void setVisible(ContextPredicate predicate, boolean value);  }