com.simba.dsi.utilities
Class CPPWarningListenerWrapper

java.lang.Object
  extended by com.simba.dsi.CppClassWrapper
      extended by com.simba.dsi.utilities.CPPWarningListenerWrapper
All Implemented Interfaces:
com.simba.support.IWarningListener

public class CPPWarningListenerWrapper
extends CppClassWrapper
implements com.simba.support.IWarningListener


Constructor Summary
CPPWarningListenerWrapper(long objRef)
           
 
Method Summary
 java.util.Locale getLocale()
          Get the locale for this IWarningListener.
 com.simba.support.IMessageSource getMessageSource()
          Get the message source for this warning listener.
 java.util.List<com.simba.support.Warning> getWarnings()
          Always returns an empty list, as the wrapped C++ IWarningListener doesn't support retrieving posted warnings
 void postWarning(com.simba.support.Warning warning)
          Posts a Warning to the wrapped C++ IWarningListener
 void setLocale(java.util.Locale locale)
          Sets the locale for this IWarningListener.
 
Methods inherited from class com.simba.dsi.CppClassWrapper
getObjRef
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CPPWarningListenerWrapper

public CPPWarningListenerWrapper(long objRef)
                          throws com.simba.support.exceptions.ErrorException
Parameters:
objRef - A C++ pointer to a Simba::JNIDSI::JNIDSIWarningListenerWrapper
Throws:
com.simba.support.exceptions.ErrorException
Method Detail

getLocale

public java.util.Locale getLocale()
Get the locale for this IWarningListener.

Specified by:
getLocale in interface com.simba.support.IWarningListener
Returns:
The locale for this IWarningListener.

getMessageSource

public com.simba.support.IMessageSource getMessageSource()
Description copied from interface: com.simba.support.IWarningListener
Get the message source for this warning listener.

Specified by:
getMessageSource in interface com.simba.support.IWarningListener
Returns:
The message source for this warning listener.

getWarnings

public java.util.List<com.simba.support.Warning> getWarnings()
Always returns an empty list, as the wrapped C++ IWarningListener doesn't support retrieving posted warnings

Specified by:
getWarnings in interface com.simba.support.IWarningListener
Returns:
A List of Warning objects.

postWarning

public void postWarning(com.simba.support.Warning warning)
Posts a Warning to the wrapped C++ IWarningListener

Specified by:
postWarning in interface com.simba.support.IWarningListener
Parameters:
warning - The warning to post to the wrapped listener.

setLocale

public void setLocale(java.util.Locale locale)
Sets the locale for this IWarningListener.

Specified by:
setLocale in interface com.simba.support.IWarningListener
Parameters:
locale - The locale to set for this warning listener.


Copyright © 2006-2014 Simba Technologies Incorporated. All Rights Reserved.