de.caff.maze
Class MazePropertyOwner.BooleanPropertyInformation

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

protected abstract static class MazePropertyOwner.BooleanPropertyInformation
extends AbstractPropertyInformation

A boolean property and its setters.

 

Field Summary
 
Fields inherited from interface de.caff.maze.PropertyInformation
SHORT_DESCRIPTION_SUFFIX
 
Constructor Summary
MazePropertyOwner.BooleanPropertyInformation(java.lang.String name)
          Constructor.
 
Method Summary
protected abstract  boolean 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  void setOwnerValue()
          Set the value from the GUI component.
protected abstract  void setOwnerValue(boolean state)
          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.BooleanPropertyInformation

public MazePropertyOwner.BooleanPropertyInformation(java.lang.String name)
Constructor.

Parameters:
name - property id
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

setOwnerValue

protected void setOwnerValue()
Set the value from the GUI component.


getPropertyValue

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

Returns:
property value

setOwnerValue

protected abstract void setOwnerValue(boolean state)
Set the value of the owner of the property.

Parameters:
state - new value

getOwnerValue

protected abstract boolean getOwnerValue()
Get the value from the owner of the property.

Returns:
value