com.intel.gpe.gridbeans.plugins.translators
Class GPEInputRemoteFileValueTranslator

java.lang.Object
  extended by com.intel.gpe.gridbeans.plugins.translators.GPEInputRemoteFileValueTranslator
All Implemented Interfaces:
IValueTranslator

public class GPEInputRemoteFileValueTranslator
extends java.lang.Object
implements IValueTranslator

This translator translates between GPEFile and String. The string represents the remote file name.

Version:
$Id: GPEInputRemoteFileValueTranslator.java,v 1.1 2006/11/30 14:30:32 mlukichev Exp $
Author:
Alexander Lukichev

Constructor Summary
GPEInputRemoteFileValueTranslator()
           
 
Method Summary
static IValueTranslator getInstance()
           
 java.lang.Object translateFrom(java.lang.Object v)
          Translate the value from the user's representation to the internal representation.
 java.lang.Object translateTo(java.lang.Object v)
          Translate the value from the internal representation to the user's representation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GPEInputRemoteFileValueTranslator

public GPEInputRemoteFileValueTranslator()
Method Detail

translateTo

public java.lang.Object translateTo(java.lang.Object v)
                             throws TranslationException
Description copied from interface: IValueTranslator
Translate the value from the internal representation to the user's representation. The Swing controls are then assigned with values in the user's representation.

Specified by:
translateTo in interface IValueTranslator
Parameters:
v - The internal representation
Returns:
The user's representation
Throws:
TranslationException - If the translation cannot be performed

translateFrom

public java.lang.Object translateFrom(java.lang.Object v)
                               throws TranslationException
Description copied from interface: IValueTranslator
Translate the value from the user's representation to the internal representation. The Swing controls return the values in the user's representation, these values are translated to the internal representation. The internal representation goes to the GridBean model.

Specified by:
translateFrom in interface IValueTranslator
Parameters:
v - The user's representation
Returns:
The internal representation
Throws:
TranslationException - If the translation cannot be performed

getInstance

public static IValueTranslator getInstance()


Copyright © 2008. All Rights Reserved.