net.sf.doolin.gui.field
Class FieldFont<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.FieldFont<V>
Type Parameters:
V - Type of bean for the view
All Implemented Interfaces:
Serializable, IBean, FieldDescriptor<V>

public class FieldFont<V>
extends AbstractPropertyFieldDescriptor<V>

This field allows the user to pick a Font.

Author:
Damien Coraboeuf
See Also:
Serialized Form

Constructor Summary
FieldFont()
           
 
Method Summary
 Field<V> createField(GUIView<V> view)
          Creates a field.
 String getSampleString()
          Gets the text which is used as a sample text to display the font.
 void setSampleString(String sampleString)
          Sets the text which is used as a sample text to display the font.
 
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

FieldFont

public FieldFont()
Method Detail

createField

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

Parameters:
view - Owning view
Returns:
Created field

getSampleString

public String getSampleString()
Gets the text which is used as a sample text to display the font.

Returns:
Sample string

setSampleString

public void setSampleString(String sampleString)
Sets the text which is used as a sample text to display the font. It is set by default to "aAbBcCdDeE".

Parameters:
sampleString - Sample string


Copyright © 2011. All Rights Reserved.