de.caff.maze
Class MazePropertyOwner.IntegerPropertyInformation

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

protected abstract static class MazePropertyOwner.IntegerPropertyInformation
extends AbstractPropertyInformation

An integer property and its setters.

 

Field Summary
 
Fields inherited from interface de.caff.maze.PropertyInformation
SHORT_DESCRIPTION_SUFFIX
 
Constructor Summary
protected MazePropertyOwner.IntegerPropertyInformation(java.lang.String name)
          Constructor.
protected MazePropertyOwner.IntegerPropertyInformation(java.lang.String name, int minValue, int maxValue)
          Constructor.
 
Method Summary
protected abstract  int 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(int value)
          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.IntegerPropertyInformation

protected MazePropertyOwner.IntegerPropertyInformation(java.lang.String name)
Constructor.

Parameters:
name - id

MazePropertyOwner.IntegerPropertyInformation

protected MazePropertyOwner.IntegerPropertyInformation(java.lang.String name,
                                                       int minValue,
                                                       int maxValue)
Constructor.

Parameters:
name - id
minValue - minimal value
maxValue - maximal value
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 abstract void setOwnerValue(int value)
Set the value of the owner of the property.

Parameters:
value - new value

getOwnerValue

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

Returns:
the current value

getPropertyValue

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

Returns:
property value