org.viewaframework.view.delegator.converter
Class ViewResourceDimensionConverter

java.lang.Object
  extended by org.viewaframework.view.delegator.converter.ViewResourceDimensionConverter
All Implemented Interfaces:
ViewResourceConverter

public class ViewResourceDimensionConverter
extends Object
implements ViewResourceConverter

This class converts an input string of type

200,150

representing width and height into a java.awt.Dimension instance. For example you have a given property like

viewDialog.size= 300,250

Then the expression will become something like

viewDialog.setSize(new java.awt.Dimension(300,250));

Author:
Mario Garcia

Constructor Summary
ViewResourceDimensionConverter()
           
 
Method Summary
 Object convert(Object arg0, Class<? extends Object> arg1)
           
 Class<? extends Object> getDestinationClass()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ViewResourceDimensionConverter

public ViewResourceDimensionConverter()
Method Detail

convert

public Object convert(Object arg0,
                      Class<? extends Object> arg1)
Specified by:
convert in interface ViewResourceConverter

getDestinationClass

public Class<? extends Object> getDestinationClass()
Specified by:
getDestinationClass in interface ViewResourceConverter


Copyright © 2010. All Rights Reserved.