JIDE 3.5.15

com.jidesoft.converter
Class PasswordConverter

java.lang.Object
  extended by com.jidesoft.converter.DefaultObjectConverter
      extended by com.jidesoft.converter.PasswordConverter
All Implemented Interfaces:
ObjectConverter

public class PasswordConverter
extends DefaultObjectConverter

Converter which converts String to String and converts it back.


Field Summary
static ConverterContext CONTEXT
          ConverterContext if the String is a file name.
 
Constructor Summary
PasswordConverter()
           
PasswordConverter(char echoChar)
          Creates a PasswordConverter.
 
Method Summary
 Object fromString(String string, ConverterContext context)
          Converts from String to an object.
 char getEchoChar()
           
 void setEchoChar(char echoChar)
           
 boolean supportFromString(String string, ConverterContext context)
          If it supports fromString.
 String toString(Object object, ConverterContext context)
          Converts from object to String based on current locale.
 
Methods inherited from class com.jidesoft.converter.DefaultObjectConverter
supportToString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CONTEXT

public static ConverterContext CONTEXT
ConverterContext if the String is a file name.

Constructor Detail

PasswordConverter

public PasswordConverter()

PasswordConverter

public PasswordConverter(char echoChar)
Creates a PasswordConverter.

Parameters:
echoChar - The echo char. It is used to replace the real password so that other people can't see what user is typing.
Method Detail

toString

public String toString(Object object,
                       ConverterContext context)
Description copied from interface: ObjectConverter
Converts from object to String based on current locale.

Specified by:
toString in interface ObjectConverter
Overrides:
toString in class DefaultObjectConverter
Parameters:
object - object to be converted
context - converter context to be used
Returns:
the String

getEchoChar

public char getEchoChar()

setEchoChar

public void setEchoChar(char echoChar)

supportFromString

public boolean supportFromString(String string,
                                 ConverterContext context)
Description copied from interface: ObjectConverter
If it supports fromString.

Specified by:
supportFromString in interface ObjectConverter
Overrides:
supportFromString in class DefaultObjectConverter
Parameters:
string - the string
context - context to be converted
Returns:
true if it supports

fromString

public Object fromString(String string,
                         ConverterContext context)
Description copied from interface: ObjectConverter
Converts from String to an object.

Specified by:
fromString in interface ObjectConverter
Overrides:
fromString in class DefaultObjectConverter
Parameters:
string - the string
context - context to be converted
Returns:
the object converted from string

JIDE 3.5.15