|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.kleopatra.forms.description.jgoodies.AbstractStylable
Abstract Stylable meant for persistence.
Field Summary | |
protected Style |
styleDelegate
|
Constructor Summary | |
AbstractStylable()
|
Method Summary | |
protected abstract boolean |
checkStyle(java.lang.Object style)
|
protected abstract java.lang.Object |
createComparable(java.lang.String encoding)
|
protected abstract Style |
createCustomStyle(java.lang.String encodedString)
|
static java.beans.PersistenceDelegate |
createPersistenceDelegate()
|
protected Style |
createStyle(java.lang.String encodedString)
|
protected abstract Style |
createStyle(Style current,
java.lang.Object newTypeKey)
|
protected Style |
findStyleByEncoding(java.lang.String encodedString)
|
protected Style |
findStyleByKey(java.lang.Object typeKey)
|
protected abstract Style |
getDefaultStyle()
|
java.lang.String |
getDescription()
|
java.lang.String |
getEncodedString()
|
java.lang.Object |
getLogicalType()
|
Style |
getStyle()
returns the current style. |
java.lang.Object |
getType()
get/setType for use in (visual) builders. |
java.lang.String |
getValidEncoding()
legacy (?) |
protected abstract boolean |
isPredefinedStyle(java.lang.Object typeKey)
|
void |
setEncodedString(java.lang.String border)
|
void |
setLogicalType(java.lang.Object typeKey)
|
protected void |
setStyle(Style style)
pre: checkStyle. |
void |
setType(java.lang.Object desc)
A lenient setter for Style. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface de.kleopatra.forms.description.Stylable |
getStyles |
Field Detail |
protected Style styleDelegate
Constructor Detail |
public AbstractStylable()
Method Detail |
public java.lang.String getEncodedString()
public java.lang.Object getLogicalType()
public java.lang.String getDescription()
public void setEncodedString(java.lang.String border)
public void setLogicalType(java.lang.Object typeKey)
public static java.beans.PersistenceDelegate createPersistenceDelegate()
public java.lang.Object getType()
Stylable
actually getType returns getStyle - but for convenient binding the return type has to be the same as the parameter type in the setter.
getType
in interface Stylable
public void setType(java.lang.Object desc)
Stylable
It's up the the concrete implemantation to define valid input types and formats. Minimally it must guarantee to accept all objects returned in the getStyles() and the output of getValidEncoding().
setType
in interface Stylable
desc
- public Style getStyle()
Stylable
getStyle
in interface Stylable
public java.lang.String getValidEncoding()
Stylable
getValidEncoding
in interface Stylable
protected abstract boolean isPredefinedStyle(java.lang.Object typeKey)
protected abstract Style createCustomStyle(java.lang.String encodedString)
protected abstract Style createStyle(Style current, java.lang.Object newTypeKey)
protected abstract Style getDefaultStyle()
protected abstract boolean checkStyle(java.lang.Object style)
protected abstract java.lang.Object createComparable(java.lang.String encoding)
protected void setStyle(Style style)
protected Style findStyleByKey(java.lang.Object typeKey)
protected Style findStyleByEncoding(java.lang.String encodedString)
protected Style createStyle(java.lang.String encodedString)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |