EchoPoint
1.0

echopoint.model
Class DefaultFontSelectionModel

java.lang.Object
  extended byechopoint.model.DefaultFontSelectionModel
All Implemented Interfaces:
FontSelectionModel, java.io.Serializable

public class DefaultFontSelectionModel
extends java.lang.Object
implements FontSelectionModel, java.io.Serializable

A generic implementation of FontSelectionModel.

See Also:
Serialized Form

Field Summary
protected  nextapp.echo.event.ChangeEvent changeEvent
          Only one ChangeEvent is needed per model instance since the event's only (read-only) state is the source property.
protected  nextapp.echo.event.EventListenerList listenerList
           
 
Constructor Summary
DefaultFontSelectionModel(nextapp.echo.Font font)
          Initializes the selectedFont to font
 
Method Summary
 void addChangeListener(nextapp.echo.event.ChangeListener l)
          Adds a ChangeListener to the button.
 void fireStateChanged()
          Notifies all listeners that have registered for this event type.
 nextapp.echo.Font getSelectedFont()
          Returns the currently selected Font
 void removeChangeListener(nextapp.echo.event.ChangeListener l)
          Removes a ChangeListener from the button.
 void setSelectedFont(nextapp.echo.Font font)
          Sets the currently selected Font
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

changeEvent

protected transient nextapp.echo.event.ChangeEvent changeEvent
Only one ChangeEvent is needed per model instance since the event's only (read-only) state is the source property. The source of events generated here is always "this".


listenerList

protected nextapp.echo.event.EventListenerList listenerList
Constructor Detail

DefaultFontSelectionModel

public DefaultFontSelectionModel(nextapp.echo.Font font)
Initializes the selectedFont to font

Method Detail

addChangeListener

public void addChangeListener(nextapp.echo.event.ChangeListener l)
Adds a ChangeListener to the button.

Specified by:
addChangeListener in interface FontSelectionModel
Parameters:
l - The ChangeListener to be added.

fireStateChanged

public void fireStateChanged()
Notifies all listeners that have registered for this event type.


getSelectedFont

public nextapp.echo.Font getSelectedFont()
Description copied from interface: FontSelectionModel
Returns the currently selected Font

Specified by:
getSelectedFont in interface FontSelectionModel
See Also:
FontSelectionModel.getSelectedFont()

removeChangeListener

public void removeChangeListener(nextapp.echo.event.ChangeListener l)
Removes a ChangeListener from the button.

Specified by:
removeChangeListener in interface FontSelectionModel
Parameters:
l - The ChangeListener to be removed.

setSelectedFont

public void setSelectedFont(nextapp.echo.Font font)
Description copied from interface: FontSelectionModel
Sets the currently selected Font

Specified by:
setSelectedFont in interface FontSelectionModel
See Also:
FontSelectionModel.setSelectedFont(nextapp.echo.Font)

EchoPoint
1.0