Package net.infonode.properties.types
Class IconProperty
- java.lang.Object
-
- net.infonode.properties.util.AbstractProperty
-
- net.infonode.properties.util.ValueHandlerProperty
-
- net.infonode.properties.types.IconProperty
-
- All Implemented Interfaces:
Property
public class IconProperty extends ValueHandlerProperty
A property of typeIcon
.
-
-
Constructor Summary
Constructors Constructor Description IconProperty(PropertyGroup group, java.lang.String name, java.lang.String description, PropertyValueHandler valueHandler)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.swing.Icon
get(java.lang.Object valueContainer)
Returns the icon value of this property in a value container.void
set(java.lang.Object valueContainer, javax.swing.Icon icon)
Sets the icon value of this property in a value container.-
Methods inherited from class net.infonode.properties.util.ValueHandlerProperty
getValue, removeValue, setValue, valueIsRemovable, valueIsSet
-
Methods inherited from class net.infonode.properties.util.AbstractProperty
canBeAssiged, getDescription, getGroup, getName, getType, isMutable, toString
-
-
-
-
Constructor Detail
-
IconProperty
public IconProperty(PropertyGroup group, java.lang.String name, java.lang.String description, PropertyValueHandler valueHandler)
Constructor.- Parameters:
group
- the property groupname
- the property namedescription
- the property descriptionvalueHandler
- handles values for this property
-
-
Method Detail
-
set
public void set(java.lang.Object valueContainer, javax.swing.Icon icon)
Sets the icon value of this property in a value container.- Parameters:
valueContainer
- the value containericon
- the icon value
-
get
public javax.swing.Icon get(java.lang.Object valueContainer)
Returns the icon value of this property in a value container.- Parameters:
valueContainer
- the value container- Returns:
- the icon value of this property
-
-