org.apache.fop.fo.properties

Class ListProperty

Known Direct Subclasses:
BackgroundPositionShorthand, FontFamilyProperty, FontShorthandProperty, TextDecorationProperty

public class ListProperty
extends Property

Superclass for properties that are lists of other properties

Nested Class Summary

static class
ListProperty.Maker
Inner class for creating instances of ListProperty

Field Summary

protected List
list
Vector containing the list of sub-properties

Fields inherited from class org.apache.fop.fo.properties.Property

log

Constructor Summary

ListProperty()
Simple constructor used by subclasses to do some special processing.
ListProperty(Property prop)

Method Summary

void
addProperty(Property prop)
Add a new property to the list
List
getList()
Object
getObject()

Methods inherited from class org.apache.fop.fo.properties.Property

getCharacter, getColor, getCondLength, getEnum, getKeep, getLength, getLengthPair, getLengthRange, getList, getNCname, getNumber, getNumeric, getObject, getSpace, getSpecifiedValue, getString, isAuto, setSpecifiedValue, toString

Field Details

list

protected List list
Vector containing the list of sub-properties

Constructor Details

ListProperty

protected ListProperty()
Simple constructor used by subclasses to do some special processing.

ListProperty

public ListProperty(Property prop)
Parameters:
prop - the first Property to be added to the list

Method Details

addProperty

public void addProperty(Property prop)
Add a new property to the list
Parameters:
prop - Property to be added to the list

getList

public List getList()
Overrides:
getList in interface Property
Returns:
this.list

getObject

public Object getObject()
Overrides:
getObject in interface Property
Returns:
this.list cast as an Object

Copyright 1999-2008 The Apache Software Foundation. All Rights Reserved.