SRJRCFrames
v0.1.296

de.schwarzrot.ui.control.model
Class FontSelectionAdapter

java.lang.Object
  extended by de.schwarzrot.ui.control.model.FontSelectionModel
      extended by de.schwarzrot.ui.control.model.FontSelectionAdapter

public class FontSelectionAdapter
extends FontSelectionModel

an implementation of a FontSelectionModel, where the font properties are held separately

Author:
Reinhard Mantey

Field Summary
 
Fields inherited from class de.schwarzrot.ui.control.model.FontSelectionModel
changeEvent, listenerList
 
Constructor Summary
FontSelectionAdapter(com.jgoodies.binding.value.ValueModel fontNameModel, com.jgoodies.binding.value.ValueModel fontStyleModel, com.jgoodies.binding.value.ValueModel fontSizeModel)
           
FontSelectionAdapter(com.jgoodies.binding.value.ValueModel fontNameModel, com.jgoodies.binding.value.ValueModel fontStyleModel, com.jgoodies.binding.value.ValueModel fontSizeModel, com.jgoodies.binding.value.ValueModel sampleTextModel)
           
 
Method Summary
protected  de.schwarzrot.ui.control.model.FontSelectionAdapter.SubjectValueChangeHandler createValueChangeHandler()
           
 String getFontName()
           
 int getFontSize()
           
 int getFontStyle()
           
 String getSampleText()
           
 void setFontName(String newFontName)
           
 void setFontSize(int newFontSize)
           
 void setFontStyle(int newFontStyle)
           
 void setSampleText(String newSampleText)
           
 
Methods inherited from class de.schwarzrot.ui.control.model.FontSelectionModel
addChangeListener, fireStateChanged, getChangeListeners, getSelectedFont, removeChangeListener, updateFont
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FontSelectionAdapter

public FontSelectionAdapter(com.jgoodies.binding.value.ValueModel fontNameModel,
                            com.jgoodies.binding.value.ValueModel fontStyleModel,
                            com.jgoodies.binding.value.ValueModel fontSizeModel)

FontSelectionAdapter

public FontSelectionAdapter(com.jgoodies.binding.value.ValueModel fontNameModel,
                            com.jgoodies.binding.value.ValueModel fontStyleModel,
                            com.jgoodies.binding.value.ValueModel fontSizeModel,
                            com.jgoodies.binding.value.ValueModel sampleTextModel)
Method Detail

getFontName

public String getFontName()
Overrides:
getFontName in class FontSelectionModel

getFontSize

public int getFontSize()
Overrides:
getFontSize in class FontSelectionModel

getFontStyle

public int getFontStyle()
Overrides:
getFontStyle in class FontSelectionModel

getSampleText

public String getSampleText()
Overrides:
getSampleText in class FontSelectionModel

setFontName

public void setFontName(String newFontName)
Overrides:
setFontName in class FontSelectionModel

setFontSize

public void setFontSize(int newFontSize)
Overrides:
setFontSize in class FontSelectionModel

setFontStyle

public void setFontStyle(int newFontStyle)
Overrides:
setFontStyle in class FontSelectionModel

setSampleText

public void setSampleText(String newSampleText)
Overrides:
setSampleText in class FontSelectionModel

createValueChangeHandler

protected de.schwarzrot.ui.control.model.FontSelectionAdapter.SubjectValueChangeHandler createValueChangeHandler()

SRJRCFrames
v0.1.296

hosted at
Find SRJRCFrames at SourceForge.net. Fast, secure and free:
           Open Source Software download
Submit a bug or request a feature

SRJRCFrames is published according to the GNU General Public License
Copyright 2005-2012 Reinhard Mantey - some rights reserved.