Java Code Examples for java.beans.PropertyDescriptor#createPropertyEditor()
The following examples show how to use
java.beans.PropertyDescriptor#createPropertyEditor() .
These examples are extracted from open source projects.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source Project: gflogger File: BeanUtils.java License: Apache License 2.0 | 6 votes |
public static void setPropertyStringValue( final Object bean, final PropertyDescriptor property, final String value ) throws Exception { final PropertyEditor editor = property.createPropertyEditor( bean ); if ( editor != null ) { editor.setAsText( value ); } else { final Method writeMethod = property.getWriteMethod(); if ( writeMethod != null ) { final Class paramClass = writeMethod.getParameterTypes()[0]; try { final Object aValue = convert( value, paramClass ); if ( aValue != null ) { writeMethod.invoke( bean, aValue ); } } catch ( Exception e ) { //just skip } } } }
Example 2
Source Project: dragonwell8_jdk File: Test7087876.java License: GNU General Public License v2.0 | 4 votes |
public static void main(String[] args) throws IntrospectionException { PropertyDescriptor pd = new PropertyDescriptor("value", Bean.class); pd.setPropertyEditorClass(Editor.class); pd.createPropertyEditor(new Bean()); }
Example 3
Source Project: TencentKona-8 File: Test7087876.java License: GNU General Public License v2.0 | 4 votes |
public static void main(String[] args) throws IntrospectionException { PropertyDescriptor pd = new PropertyDescriptor("value", Bean.class); pd.setPropertyEditorClass(Editor.class); pd.createPropertyEditor(new Bean()); }
Example 4
Source Project: jdk8u60 File: Test7087876.java License: GNU General Public License v2.0 | 4 votes |
public static void main(String[] args) throws IntrospectionException { PropertyDescriptor pd = new PropertyDescriptor("value", Bean.class); pd.setPropertyEditorClass(Editor.class); pd.createPropertyEditor(new Bean()); }
Example 5
Source Project: openjdk-jdk8u File: Test7087876.java License: GNU General Public License v2.0 | 4 votes |
public static void main(String[] args) throws IntrospectionException { PropertyDescriptor pd = new PropertyDescriptor("value", Bean.class); pd.setPropertyEditorClass(Editor.class); pd.createPropertyEditor(new Bean()); }
Example 6
Source Project: openjdk-jdk8u-backup File: Test7087876.java License: GNU General Public License v2.0 | 4 votes |
public static void main(String[] args) throws IntrospectionException { PropertyDescriptor pd = new PropertyDescriptor("value", Bean.class); pd.setPropertyEditorClass(Editor.class); pd.createPropertyEditor(new Bean()); }
Example 7
Source Project: openjdk-jdk9 File: Test7087876.java License: GNU General Public License v2.0 | 4 votes |
public static void main(String[] args) throws IntrospectionException { PropertyDescriptor pd = new PropertyDescriptor("value", Bean.class); pd.setPropertyEditorClass(Editor.class); pd.createPropertyEditor(new Bean()); }
Example 8
Source Project: jdk8u-jdk File: Test7087876.java License: GNU General Public License v2.0 | 4 votes |
public static void main(String[] args) throws IntrospectionException { PropertyDescriptor pd = new PropertyDescriptor("value", Bean.class); pd.setPropertyEditorClass(Editor.class); pd.createPropertyEditor(new Bean()); }
Example 9
Source Project: hottub File: Test7087876.java License: GNU General Public License v2.0 | 4 votes |
public static void main(String[] args) throws IntrospectionException { PropertyDescriptor pd = new PropertyDescriptor("value", Bean.class); pd.setPropertyEditorClass(Editor.class); pd.createPropertyEditor(new Bean()); }
Example 10
Source Project: openjdk-8-source File: Test7087876.java License: GNU General Public License v2.0 | 4 votes |
public static void main(String[] args) throws IntrospectionException { PropertyDescriptor pd = new PropertyDescriptor("value", Bean.class); pd.setPropertyEditorClass(Editor.class); pd.createPropertyEditor(new Bean()); }
Example 11
Source Project: openjdk-8 File: Test7087876.java License: GNU General Public License v2.0 | 4 votes |
public static void main(String[] args) throws IntrospectionException { PropertyDescriptor pd = new PropertyDescriptor("value", Bean.class); pd.setPropertyEditorClass(Editor.class); pd.createPropertyEditor(new Bean()); }
Example 12
Source Project: jdk8u_jdk File: Test7087876.java License: GNU General Public License v2.0 | 4 votes |
public static void main(String[] args) throws IntrospectionException { PropertyDescriptor pd = new PropertyDescriptor("value", Bean.class); pd.setPropertyEditorClass(Editor.class); pd.createPropertyEditor(new Bean()); }
Example 13
Source Project: jdk8u-jdk File: Test7087876.java License: GNU General Public License v2.0 | 4 votes |
public static void main(String[] args) throws IntrospectionException { PropertyDescriptor pd = new PropertyDescriptor("value", Bean.class); pd.setPropertyEditorClass(Editor.class); pd.createPropertyEditor(new Bean()); }
Example 14
Source Project: jdk8u-dev-jdk File: Test7087876.java License: GNU General Public License v2.0 | 4 votes |
public static void main(String[] args) throws IntrospectionException { PropertyDescriptor pd = new PropertyDescriptor("value", Bean.class); pd.setPropertyEditorClass(Editor.class); pd.createPropertyEditor(new Bean()); }