net.sf.doolin.gui.style
Class PropertyStyle

java.lang.Object
  extended by net.sf.doolin.gui.style.PropertyStyle
All Implemented Interfaces:
Style

public class PropertyStyle
extends Object
implements Style

Applies a style using a property of the target component.

Author:
Damien Coraboeuf

Constructor Summary
PropertyStyle()
          Constructor with no property
PropertyStyle(String propertyName, Object propertyValue)
          Constructor.
 
Method Summary
 void apply(Component component)
          Applies this style to this component
 String getPropertyName()
          Gets the property name
 Object getPropertyValue()
          Gets the property value
 void setPropertyName(String propertyName)
          Sets the property name
 void setPropertyValue(Object propertyValue)
          Sets the property value
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PropertyStyle

public PropertyStyle(String propertyName,
                     Object propertyValue)
Constructor.

Parameters:
propertyName - Property to set on the component
propertyValue - Property value to set on the component

PropertyStyle

public PropertyStyle()
Constructor with no property

Method Detail

apply

public void apply(Component component)
Description copied from interface: Style
Applies this style to this component

Specified by:
apply in interface Style
Parameters:
component - Component to apply the style to

getPropertyName

public String getPropertyName()
Gets the property name

Returns:
Property name

setPropertyName

public void setPropertyName(String propertyName)
Sets the property name

Parameters:
propertyName - Property name

getPropertyValue

public Object getPropertyValue()
Gets the property value

Returns:
Property value

setPropertyValue

public void setPropertyValue(Object propertyValue)
Sets the property value

Parameters:
propertyValue - Property value


Copyright © 2011. All Rights Reserved.