|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.text.Format
net.sf.doolin.gui.swing.ByClassAndPropertyFormat<T>
T - Type of the itempublic class ByClassAndPropertyFormat<T>
Completion handler that is based on a bean class name and one of its properties to store the text value
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class java.text.Format |
|---|
Format.Field |
| Constructor Summary | |
|---|---|
ByClassAndPropertyFormat()
Default constructor |
|
ByClassAndPropertyFormat(Class<T> beanClass,
String propertyName)
Constructor |
|
| Method Summary | |
|---|---|
StringBuffer |
format(Object obj,
StringBuffer toAppendTo,
FieldPosition pos)
|
Class<T> |
getBeanClass()
Returns the beanClass |
String |
getPropertyName()
Returns the propertyName |
Object |
parseObject(String source,
ParsePosition pos)
|
void |
setBeanClass(Class<T> beanClass)
Sets the beanClass |
void |
setPropertyName(String propertyName)
Sets the propertyName |
| Methods inherited from class java.text.Format |
|---|
clone, format, formatToCharacterIterator, parseObject |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ByClassAndPropertyFormat(Class<T> beanClass,
String propertyName)
beanClass - Bean classpropertyName - Name of the bean property that holds the text valuepublic ByClassAndPropertyFormat()
| Method Detail |
|---|
public Class<T> getBeanClass()
public void setBeanClass(Class<T> beanClass)
beanClass - Classpublic String getPropertyName()
public void setPropertyName(String propertyName)
propertyName - String
public StringBuffer format(Object obj,
StringBuffer toAppendTo,
FieldPosition pos)
format in class Format
public Object parseObject(String source,
ParsePosition pos)
parseObject in class Format
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||