当前位置: 首页>>代码示例>>Java>>正文


Java FloatEditor类代码示例

本文整理汇总了Java中com.sun.beans.editors.FloatEditor的典型用法代码示例。如果您正苦于以下问题:Java FloatEditor类的具体用法?Java FloatEditor怎么用?Java FloatEditor使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


FloatEditor类属于com.sun.beans.editors包,在下文中一共展示了FloatEditor类的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: PropertyEditorFinder

import com.sun.beans.editors.FloatEditor; //导入依赖的package包/类
public PropertyEditorFinder() {
    super(PropertyEditor.class, false, "Editor", DEFAULT);

    this.registry = new WeakCache<Class<?>, Class<?>>();
    this.registry.put(Byte.TYPE, ByteEditor.class);
    this.registry.put(Short.TYPE, ShortEditor.class);
    this.registry.put(Integer.TYPE, IntegerEditor.class);
    this.registry.put(Long.TYPE, LongEditor.class);
    this.registry.put(Boolean.TYPE, BooleanEditor.class);
    this.registry.put(Float.TYPE, FloatEditor.class);
    this.registry.put(Double.TYPE, DoubleEditor.class);
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:13,代码来源:PropertyEditorFinder.java

示例2: MapPropertySheet

import com.sun.beans.editors.FloatEditor; //导入依赖的package包/类
public MapPropertySheet() {
  super();

  this.setSortingProperties(false);
  this.setSortingCategories(true);
  this.setMode(PropertySheet.VIEW_AS_CATEGORIES);
  this.setBackground(Color.WHITE);
  this.setToolBarVisible(true);
  PropertyEditorRegistry editor = this.getTable().getEditorRegistry();
  editor.registerEditor(com.badlogic.gdx.graphics.Color.class, ColorEditor.class);
  editor.registerEditor(Float.class, FloatEditor.class);
}
 
开发者ID:macbury,项目名称:ForgE,代码行数:13,代码来源:MapPropertySheet.java

示例3: run

import com.sun.beans.editors.FloatEditor; //导入依赖的package包/类
public void run() {
    PropertyEditorManager.registerEditor(ThirdBean.class, ThirdBeanEditor.class);

    test(FirstBean.class, FirstBeanEditor.class);
    test(SecondBean.class, null);
    test(ThirdBean.class, ThirdBeanEditor.class);
    // test editors for default primitive types
    test(Byte.TYPE, ByteEditor.class);
    test(Short.TYPE, ShortEditor.class);
    test(Integer.TYPE, IntegerEditor.class);
    test(Long.TYPE, LongEditor.class);
    test(Boolean.TYPE, BooleanEditor.class);
    test(Float.TYPE, FloatEditor.class);
    test(Double.TYPE, DoubleEditor.class);
    // test editors for default object types
    test(Byte.class, ByteEditor.class);
    test(Short.class, ShortEditor.class);
    test(Integer.class, IntegerEditor.class);
    test(Long.class, LongEditor.class);
    test(Boolean.class, BooleanEditor.class);
    test(Float.class, FloatEditor.class);
    test(Double.class, DoubleEditor.class);
    test(String.class, StringEditor.class);
    test(Color.class, ColorEditor.class);
    test(Font.class, FontEditor.class);
    test(Enumeration.class, EnumEditor.class);

    PropertyEditorManager.registerEditor(ThirdBean.class, null);
    PropertyEditorManager.setEditorSearchPath(SEARCH_PATH);

    test(FirstBean.class, FirstBeanEditor.class);
    test(SecondBean.class, SecondBeanEditor.class);
    test(ThirdBean.class, ThirdBeanEditor.class);
    // test editors for default primitive types
    test(Byte.TYPE, ByteEditor.class);
    test(Short.TYPE, ShortEditor.class);
    test(Integer.TYPE, IntegerEditor.class);
    test(Long.TYPE, LongEditor.class);
    test(Boolean.TYPE, BooleanEditor.class);
    test(Float.TYPE, FloatEditor.class);
    test(Double.TYPE, DoubleEditor.class);
    // test editors for default object types
    test(Byte.class, null);
    test(Short.class, null);
    test(Integer.class, null);
    test(Long.class, null);
    test(Boolean.class, null);
    test(Float.class, null);
    test(Double.class, null);
    test(String.class, null);
    test(Color.class, null);
    test(Font.class, null);
    test(Enumeration.class, EnumEditor.class);
}
 
开发者ID:lambdalab-mirror,项目名称:jdk8u-jdk,代码行数:55,代码来源:TestPropertyEditor.java


注:本文中的com.sun.beans.editors.FloatEditor类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。