com.edsdev.jconvert.common
Class CustomConversionImpl
java.lang.Object
com.edsdev.jconvert.common.CustomConversionImpl
- All Implemented Interfaces:
- CustomConversionDataInterface
- Direct Known Subclasses:
- CustomConversionCurrency, CustomConversionCurrency2
- public abstract class CustomConversionImpl
- extends java.lang.Object
- implements CustomConversionDataInterface
This is the custom conversion interface that must be implemented to add a custom conversion panel to JConvert.
- Author:
- Ed Sarrazin Created on Oct 29, 2007 5:05:58 PM
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CustomConversionImpl
public CustomConversionImpl()
getLastUpdated
public java.util.Date getLastUpdated()
- Description copied from interface:
CustomConversionDataInterface
- The internal mechanisms in the implementing class are unknown, but depending on how it works, this method should
always return the date that this data is accurate to. For instance, if it is hard coded data, you may want to
return the current date every time. If you are caching data from a website, you will want to store the last date
that the data was pulled and return it here.
- Specified by:
getLastUpdated
in interface CustomConversionDataInterface
- Returns:
- Date of the last update.
setLastUpdated
public void setLastUpdated(java.util.Date date)
addDataUpdatedListener
public void addDataUpdatedListener(CustomDataUpdatedListener listener)
- Description copied from interface:
CustomConversionDataInterface
- Adds a listener for so that you can inform others to call getConversions() because there is an update
- Specified by:
addDataUpdatedListener
in interface CustomConversionDataInterface
- Parameters:
listener
-
fireDataUpdatedEvent
public void fireDataUpdatedEvent()
getNextPlainData
public java.lang.String getNextPlainData(java.lang.StringBuffer buff,
int start)
htmlToUnicode
public java.lang.String htmlToUnicode(java.lang.String startValue)
JConvert - opensource project by Ed Sarrazin