net.sf.doolin.gui.field
Class FieldPassword<V>

java.lang.Object
  extended by net.sf.doolin.bus.bean.Bean
      extended by net.sf.doolin.gui.field.AbstractFieldDescriptor<V>
          extended by net.sf.doolin.gui.field.AbstractPropertyFieldDescriptor<V>
              extended by net.sf.doolin.gui.field.FieldPassword<V>
Type Parameters:
V - Type of bean for the view
All Implemented Interfaces:
Serializable, IBean, FieldDescriptor<V>

public class FieldPassword<V>
extends AbstractPropertyFieldDescriptor<V>

This field is used to enter a password.

The target property that hosts the password value in the model can be either a character array (char[]) or the result of a digest (as returned by the PasswordUtils.digestPassword(char[]) method. This field mode is chosen according to the value of the digest property.

Author:
Damien Coraboeuf
See Also:
Serialized Form

Constructor Summary
FieldPassword()
           
 
Method Summary
protected  com.google.common.base.Function<char[],? extends Object> createConverter()
           
 Field<V> createField(GUIView<V> view)
          Creates a field.
 int getColumns()
          Gets the number of columns for the password field
 FieldPasswordStore getStore()
           
 boolean isDigest()
          Deprecated. Use getStore() instead
 void setColumns(int columns)
          Sets the number of columns for the password field
 void setDigest(boolean digest)
          Deprecated. Use setStore(FieldPasswordStore) instead
 void setStore(FieldPasswordStore store)
           
 
Methods inherited from class net.sf.doolin.gui.field.AbstractPropertyFieldDescriptor
getAdapter, getProperty, getPropertyPath, setAdapter, setProperty, setPropertyPath, subscribe, subscribe
 
Methods inherited from class net.sf.doolin.gui.field.AbstractFieldDescriptor
getActionFactory, getConstraint, getDisplayStateHandler, getIconService, getName, getStyle, getTransferHandler, onInit, onShow, setActionFactory, setConstraint, setDisplayState, setDisplayStateHandler, setIconService, setName, setStyle, setTransferHandler
 
Methods inherited from class net.sf.doolin.bus.bean.Bean
getBeanNotificationSupport, getParentBean, notify, setParentBean
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FieldPassword

public FieldPassword()
Method Detail

createConverter

protected com.google.common.base.Function<char[],? extends Object> createConverter()

createField

public Field<V> createField(GUIView<V> view)
Description copied from interface: FieldDescriptor
Creates a field.

Parameters:
view - Owning view
Returns:
Created field

getColumns

public int getColumns()
Gets the number of columns for the password field

Returns:
Number of columns

getStore

public FieldPasswordStore getStore()

isDigest

@Deprecated
public boolean isDigest()
Deprecated. Use getStore() instead

Checks if the field value must be renderer as a digest (true) or a character array (false).

Returns:
Digest mode

setColumns

public void setColumns(int columns)
Sets the number of columns for the password field

Parameters:
columns - Number of columns
See Also:
JTextField.setColumns(int)

setDigest

@Deprecated
public void setDigest(boolean digest)
Deprecated. Use setStore(FieldPasswordStore) instead

Sets if the field value must be renderer as a digest (true) or a character array (false).

Parameters:
digest - Digest mode

setStore

public void setStore(FieldPasswordStore store)


Copyright © 2011. All Rights Reserved.