de.kleopatra.forms.description.jgoodies
Class AbstractStylable

java.lang.Object
  extended byde.kleopatra.forms.description.jgoodies.AbstractStylable
All Implemented Interfaces:
Stylable
Direct Known Subclasses:
JGoodiesBorder, JGoodiesLine

public abstract class AbstractStylable
extends java.lang.Object
implements Stylable

Abstract Stylable meant for persistence.

Version:
$Revision: 1.1.1.1 $ - $Date: 2004/06/10 11:41:37 $
Author:
(C) Jeanette Winzenburg, Berlin

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

styleDelegate

protected Style styleDelegate
Constructor Detail

AbstractStylable

public AbstractStylable()
Method Detail

getEncodedString

public java.lang.String getEncodedString()

getLogicalType

public java.lang.Object getLogicalType()

getDescription

public java.lang.String getDescription()

setEncodedString

public void setEncodedString(java.lang.String border)

setLogicalType

public void setLogicalType(java.lang.Object typeKey)

createPersistenceDelegate

public static java.beans.PersistenceDelegate createPersistenceDelegate()

getType

public java.lang.Object getType()
Description copied from interface: Stylable
get/setType for use in (visual) builders.

actually getType returns getStyle - but for convenient binding the return type has to be the same as the parameter type in the setter.

Specified by:
getType in interface Stylable
Returns:

setType

public void setType(java.lang.Object desc)
Description copied from interface: Stylable
A lenient setter for Style.

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().

Specified by:
setType in interface Stylable
Parameters:
desc -

getStyle

public Style getStyle()
Description copied from interface: Stylable
returns the current style.

Specified by:
getStyle in interface Stylable
Returns:

getValidEncoding

public java.lang.String getValidEncoding()
Description copied from interface: Stylable
legacy (?)

Specified by:
getValidEncoding in interface Stylable
Returns:

isPredefinedStyle

protected abstract boolean isPredefinedStyle(java.lang.Object typeKey)

createCustomStyle

protected abstract Style createCustomStyle(java.lang.String encodedString)

createStyle

protected abstract Style createStyle(Style current,
                                     java.lang.Object newTypeKey)

getDefaultStyle

protected abstract Style getDefaultStyle()

checkStyle

protected abstract boolean checkStyle(java.lang.Object style)

createComparable

protected abstract java.lang.Object createComparable(java.lang.String encoding)

setStyle

protected void setStyle(Style style)
pre: checkStyle.


findStyleByKey

protected Style findStyleByKey(java.lang.Object typeKey)

findStyleByEncoding

protected Style findStyleByEncoding(java.lang.String encodedString)

createStyle

protected Style createStyle(java.lang.String encodedString)


Copyright © 2003, 2004 SwingEmpire Jeanette Winzenburg. All Rights Reserved.