|
JHotDraw 7.2 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.swing.JFormattedTextField.AbstractFormatter javax.swing.text.DefaultFormatter org.jhotdraw.text.FontFormatter
public class FontFormatter
FontFormatter
is used to format fonts into a textual representation
which can be edited in an entry field.
Constructor Summary | |
---|---|
FontFormatter()
|
|
FontFormatter(boolean allowsNullValue)
|
Method Summary | |
---|---|
static javax.swing.JFormattedTextField.AbstractFormatterFactory |
createFormatterFactory()
Convenience method for creating a formatter factory with a FontFormatter . |
static javax.swing.JFormattedTextField.AbstractFormatterFactory |
createFormatterFactory(boolean allowsNullValue)
Convenience method for creating a formatter factory with a 8@code FontFormatter}. |
boolean |
getAllowsNullValue()
Returns true, if null value is allowed. |
void |
setAllowsNullValue(boolean newValue)
Sets whether a null value is allowed. |
java.lang.Object |
stringToValue(java.lang.String str)
|
java.lang.String |
valueToString(java.lang.Object value)
|
Methods inherited from class javax.swing.text.DefaultFormatter |
---|
clone, getAllowsInvalid, getCommitsOnValidEdit, getDocumentFilter, getNavigationFilter, getOverwriteMode, getValueClass, install, setAllowsInvalid, setCommitsOnValidEdit, setOverwriteMode, setValueClass |
Methods inherited from class javax.swing.JFormattedTextField.AbstractFormatter |
---|
getActions, getFormattedTextField, invalidEdit, setEditValid, uninstall |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FontFormatter()
public FontFormatter(boolean allowsNullValue)
Method Detail |
---|
public void setAllowsNullValue(boolean newValue)
newValue
- public boolean getAllowsNullValue()
public java.lang.Object stringToValue(java.lang.String str) throws java.text.ParseException
stringToValue
in class javax.swing.text.DefaultFormatter
java.text.ParseException
public java.lang.String valueToString(java.lang.Object value) throws java.text.ParseException
valueToString
in class javax.swing.text.DefaultFormatter
java.text.ParseException
public static javax.swing.JFormattedTextField.AbstractFormatterFactory createFormatterFactory()
FontFormatter
.
Uses the RGB_INTEGER format and disallows null values.
public static javax.swing.JFormattedTextField.AbstractFormatterFactory createFormatterFactory(boolean allowsNullValue)
|
Copyright 1996-2009 (c) by the authors and contributors of the JHotDraw project. Some rights reserved. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |