com.edsdev.jconvert.common
Class CustomConversionImpl

java.lang.Object
  extended bycom.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

Constructor Summary
CustomConversionImpl()
           
 
Method Summary
 void addDataUpdatedListener(CustomDataUpdatedListener listener)
          Adds a listener for so that you can inform others to call getConversions() because there is an update
 void fireDataUpdatedEvent()
           
 java.util.Date getLastUpdated()
          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.
 java.lang.String getNextPlainData(java.lang.StringBuffer buff, int start)
           
 java.lang.String htmlToUnicode(java.lang.String startValue)
           
 void setLastUpdated(java.util.Date date)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.edsdev.jconvert.common.CustomConversionDataInterface
getConversions
 

Constructor Detail

CustomConversionImpl

public CustomConversionImpl()
Method Detail

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