de.caff.maze
Class MazePropertyOwner.PaintPropertyInformation

java.lang.Object
  extended by de.caff.maze.AbstractPropertyInformation
      extended by de.caff.maze.MazePropertyOwner.PaintPropertyInformation
All Implemented Interfaces:
PropertyInformation
Enclosing class:
MazePropertyOwner

protected abstract static class MazePropertyOwner.PaintPropertyInformation
extends AbstractPropertyInformation

A color property and its setters.

 

Field Summary
 
Fields inherited from interface de.caff.maze.PropertyInformation
SHORT_DESCRIPTION_SUFFIX
 
Constructor Summary
MazePropertyOwner.PaintPropertyInformation(java.lang.String name, boolean allowNone)
          Constructor.
 
Method Summary
protected abstract  java.awt.Paint getOwnerValue()
          Get the value from the owner of the property.
 java.lang.Object getPropertyValue()
          Get the current value of property.
 javax.swing.JComponent getSetterComponent()
          A component to set the property.
protected abstract  void setOwnerValue(java.awt.Paint paint)
          Set the value of the owner of the property.
 
Methods inherited from class de.caff.maze.AbstractPropertyInformation
forget, getLocalizedDescription, getLocalizedShortDescription, getName, isInformational
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MazePropertyOwner.PaintPropertyInformation

public MazePropertyOwner.PaintPropertyInformation(java.lang.String name,
                                                  boolean allowNone)
Constructor.

Parameters:
name - resource name
allowNone - if true it's allowed to give no color at all
Method Detail

getSetterComponent

public javax.swing.JComponent getSetterComponent()
A component to set the property.

Specified by:
getSetterComponent in interface PropertyInformation
Specified by:
getSetterComponent in class AbstractPropertyInformation
Returns:
setter component

getPropertyValue

public java.lang.Object getPropertyValue()
Get the current value of property.

Returns:
property value

setOwnerValue

protected abstract void setOwnerValue(java.awt.Paint paint)
Set the value of the owner of the property.

Parameters:
paint - new value

getOwnerValue

protected abstract java.awt.Paint getOwnerValue()
Get the value from the owner of the property.

Returns:
value