Java 8 BeanDescriptor - top ranked examples from Open Source projects

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Java 8 BeanDescriptor class.

This code example shows how to use the following methods:setDisplayName, setShortDescription
	// 
 
	@Override 
	public BeanDescriptor getBeanDescriptor() {
 
		BeanDescriptor descriptor = new BeanDescriptor( SwingMetawidget.class );
		descriptor.setDisplayName( "Metawidget" );
		descriptor.setShortDescription( "org.metawidget.swing.SwingMetawidget - http://metawidget.org" );
 
		return descriptor;
	} 
 
	@Override 
	public Image getIcon( int kind ) {
 
		switch ( kind ) {
			case BeanInfo.ICON_MONO_16x16:
				return loadImage( "icon/mono-16x16.gif" );
 
			case BeanInfo.ICON_COLOR_16x16:
6
CodeRank
Experience pair programming with AI  Get Codota for Java
This code example shows how to use the following methods:setValue
import java.beans.BeanDescriptor;
import java.beans.SimpleBeanInfo;
 
public class FooBarBeanInfo extends SimpleBeanInfo {
    public BeanDescriptor getBeanDescriptor() {
        BeanDescriptor bd = new BeanDescriptor(FooBar.class);
        // set a value to ensure that it's unique 
        bd.setValue("test", Boolean.TRUE);
        return bd;
    } 
} 
5
CodeRank
Experience pair programming with AI  Get Codota for Java
This code example shows how to use the following methods:setValue
import java.beans.BeanDescriptor;
import java.beans.SimpleBeanInfo;
 
public class WombatBeanInfo extends SimpleBeanInfo {
    public BeanDescriptor getBeanDescriptor() {
        BeanDescriptor bd = new BeanDescriptor(Wombat.class);
        // set a value to ensure that it's unique 
        bd.setValue("test", Boolean.TRUE);
        return bd;
    } 
} 
5
CodeRank
Experience pair programming with AI  Get Codota for Java
This code example shows how to use the following methods:setValue
import java.beans.PropertyDescriptor;
import java.beans.SimpleBeanInfo;
 
public class ComponentBeanInfo extends SimpleBeanInfo {
    public BeanDescriptor getBeanDescriptor() {
        BeanDescriptor bd = new BeanDescriptor(Component.class);
        // set a value to ensure that it's unique 
        bd.setValue("test", Boolean.TRUE);
        return bd;
    } 
 
    // Only an array of 1 Property Descriptor 
    public PropertyDescriptor[] getPropertyDescriptors() {
        try { 
            return new PropertyDescriptor[] {
                    new PropertyDescriptor("name", Component.class)
            }; 
        } catch (IntrospectionException exception) {
            throw new Error("unexpected exception", exception);
        } 
5
CodeRank
Experience pair programming with AI  Get Codota for Java
This code example shows how to use the following methods:
   * Get the bean descriptor for this bean 
   * 
   * @return a <code>BeanDescriptor</code> value 
   */ 
  public BeanDescriptor getBeanDescriptor() {
    return new BeanDescriptor(SubstringLabeler.class,
                              SubstringLabelerCustomizer.class); 
  } 
} 
3
CodeRank
Experience pair programming with AI  Get Codota for Java
This code example shows how to use the following methods:
   * Get the bean descriptor for this bean 
   * 
   * @return a <code>BeanDescriptor</code> value 
   */ 
  public BeanDescriptor getBeanDescriptor() {
    return new BeanDescriptor(weka.gui.beans.DataVisualizer.class,
                              DataVisualizerCustomizer.class); 
  } 
} 
3
CodeRank
Experience pair programming with AI  Get Codota for Java
This code example shows how to use the following methods:
   *  
   * @return a <code>BeanDescriptor</code> value 
   */ 
  @Override 
  public BeanDescriptor getBeanDescriptor() {
    return new BeanDescriptor(RScriptExecutor.class,
      RScriptExecutorCustomizer.class); 
  } 
} 
3
CodeRank
Experience pair programming with AI  Get Codota for Java
This code example shows how to use the following methods:
   * Get the bean descriptor for this bean 
   * 
   * @return a <code>BeanDescriptor</code> value 
   */ 
  public BeanDescriptor getBeanDescriptor() {
    return new BeanDescriptor(weka.gui.beans.AttributeSummarizer.class,
                              AttributeSummarizerCustomizer.class); 
  }   
} 
3
CodeRank
Experience pair programming with AI  Get Codota for Java
This code example shows how to use the following methods:
   * Get the bean descriptor for this bean 
   * 
   * @return a <code>BeanDescriptor</code> value 
   */ 
  public BeanDescriptor getBeanDescriptor() {
    return new BeanDescriptor(weka.gui.beans.ModelPerformanceChart.class,
                              ModelPerformanceChartCustomizer.class); 
  } 
} 
 
3
CodeRank
Experience pair programming with AI  Get Codota for Java
This code example shows how to use the following methods:
   * Get the bean descriptor for this bean 
   * 
   * @return a <code>BeanDescriptor</code> value 
   */ 
  public BeanDescriptor getBeanDescriptor() {
    return new BeanDescriptor(SubstringReplacer.class,
                              SubstringReplacerCustomizer.class); 
  } 
} 
3
CodeRank
Experience pair programming with AI  Get Codota for Java
See Code Examples for Java 8 BeanDescriptor Methods: