ComponentTypeInfo extends TypeInfo<AbstractComponent> { public final boolean isCreatable() { return isCreatable; } ComponentTypeInfo(String displayName, String description, Class<? extends AbstractComponent> componentClass);  ComponentTypeInfo(String displayName, String description, Class<? extends AbstractComponent> componentClass, boolean isCreatable); @Deprecated  ComponentTypeInfo(String displayName, String description, Class<? extends AbstractComponent> componentClass, boolean isCreatable, javax.swing.ImageIcon icon); @Deprecated  ComponentTypeInfo(String displayName, String description, Class<? extends AbstractComponent> componentClass, CreateWizardUI wizard); @Deprecated  ComponentTypeInfo(String displayName, String description, Class<? extends AbstractComponent> componentClass, CreateWizardUI wizard, javax.swing.ImageIcon icon); protected  ComponentTypeInfo(String displayName, String description, Class<? extends AbstractComponent> componentClass, String id, boolean isCreatable); @Deprecated protected  ComponentTypeInfo(String displayName, String description, Class<? extends AbstractComponent> componentClass, String id, boolean isCreatable, CreateWizardUI wizard, javax.swing.ImageIcon icon); final Class<? extends AbstractComponent> getComponentClass(); final String getDisplayName(); final String getShortDescription(); final String getId(); final boolean isCreatable(); @Deprecated final CreateWizardUI getWizardUI(); @Deprecated final javax.swing.ImageIcon getIcon(); @Override final boolean equals(Object obj); @Override final int hashCode();  }
@SuppressWarnings("deprecation") @Test public void testIsCreatable() { ComponentTypeInfo info; info = new ComponentTypeInfo("","",AbstractComponent.class,true); Assert.assertTrue(info.isCreatable()); info = new ComponentTypeInfo("","",AbstractComponent.class,false); Assert.assertFalse(info.isCreatable()); info = new ComponentTypeInfo("","",AbstractComponent.class,true,null); Assert.assertTrue(info.isCreatable()); info = new ComponentTypeInfo("","",AbstractComponent.class,false,null); Assert.assertFalse(info.isCreatable()); }