com.pietschy.command.configuration.impl
Class FaceVerticalTextPositionParser

java.lang.Object
  extended by com.pietschy.command.configuration.impl.FaceAttributeParser
      extended by com.pietschy.command.configuration.impl.InheritedAttributeParser
          extended by com.pietschy.command.configuration.impl.FaceVerticalTextPositionParser

 class FaceVerticalTextPositionParser
extends InheritedAttributeParser

Parser for the verticalTextPostion property.


Constructor Summary
FaceVerticalTextPositionParser()
          Creates a new instance.
 
Method Summary
protected  java.lang.Object parseValue(java.lang.String propertyName, java.lang.String value, ExceptionFactory factory)
          Parses the verticalTextPosition property.
 
Methods inherited from class com.pietschy.command.configuration.impl.InheritedAttributeParser
parseEmptyImpl, parseImpl
 
Methods inherited from class com.pietschy.command.configuration.impl.FaceAttributeParser
getProperties, parse
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FaceVerticalTextPositionParser

public FaceVerticalTextPositionParser()
Creates a new instance.

Method Detail

parseValue

protected java.lang.Object parseValue(java.lang.String propertyName,
                                      java.lang.String value,
                                      ExceptionFactory factory)
                               throws ParseException
Parses the verticalTextPosition property. The value is converted to the appropriate SwingConstant.

Specified by:
parseValue in class InheritedAttributeParser
Parameters:
propertyName - ignored.
value - the value.
factory - the exception factory.
Returns:
the swing constant represented by the value.
Throws:
ParseException - if the value was invalid.


Copyright © 2006 - 2007 Andrew Pietsch