public void execute(Object val) { Class<?> cl = pi.getType(); if(!String.class.equals(cl)) { IObjectStringConverter conv = BasicTypeConverter.getBasicObjectConverter(cl); if(conv!=null) { try { val = conv.convertObject(val, null); } catch(Exception ex) { throw new RuntimeException(ex); } } } tf.setText(""+val); } });
public void execute(Object val) { Class<?> cl = pi.getType(); if(!String.class.equals(cl)) { IObjectStringConverter conv = BasicTypeConverter.getBasicObjectConverter(cl); if(conv!=null) { try { val = conv.convertObject(val, null); } catch(Exception ex) { throw new RuntimeException(ex); } } } tf.setText(""+val); } });
IObjectStringConverter conv = BasicTypeConverter.getBasicObjectConverter(value.getClass()); if(conv!=null)
IObjectStringConverter conv = BasicTypeConverter.getBasicObjectConverter(value.getClass()); if(conv!=null)