public class IconProperty extends ValueHandlerProperty
Icon
.Constructor and Description |
---|
IconProperty(PropertyGroup group,
java.lang.String name,
java.lang.String description,
PropertyValueHandler valueHandler)
Constructor.
|
Modifier and Type | Method and 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.
|
getValue, removeValue, setValue, valueIsRemovable, valueIsSet
canBeAssiged, getDescription, getGroup, getName, getType, isMutable, toString
public IconProperty(PropertyGroup group, java.lang.String name, java.lang.String description, PropertyValueHandler valueHandler)
group
- the property groupname
- the property namedescription
- the property descriptionvalueHandler
- handles values for this propertypublic void set(java.lang.Object valueContainer, javax.swing.Icon icon)
valueContainer
- the value containericon
- the icon valuepublic javax.swing.Icon get(java.lang.Object valueContainer)
valueContainer
- the value container