public class ComponentForegroundProperty extends AbstractComponentProperty<Component,Color>
Component.
It is possible to control the foreground color of the component by setting the value of this property or by calling
the Component.setForeground(Color) method of that component.
Finally, note that null values are supported by this property.
component| Constructor and Description |
|---|
ComponentForegroundProperty(Component component) |
| Modifier and Type | Method and Description |
|---|---|
protected Color |
getPropertyValueFromComponent()
Reads the value from
AbstractComponentProperty.component. |
protected void |
setPropertyValueToComponent(Color value)
Sets the value to
AbstractComponentProperty.component. |
dispose, getValue, setValueaddChangeListener, getChangeListeners, isInhibited, isNotifyingListeners, maybeNotifyListeners, removeChangeListener, setInhibitedpublic ComponentForegroundProperty(Component component)
protected Color getPropertyValueFromComponent()
AbstractComponentPropertyAbstractComponentProperty.component.
Note that whenever this method is called, AbstractComponentProperty.component is not null.
getPropertyValueFromComponent in class AbstractComponentProperty<Component,Color>AbstractComponentProperty.getPropertyValueFromComponent()protected void setPropertyValueToComponent(Color value)
AbstractComponentPropertyAbstractComponentProperty.component.
Note that whenever this method is called, AbstractComponentProperty.component is not null.
setPropertyValueToComponent in class AbstractComponentProperty<Component,Color>value - Component value.AbstractComponentProperty.setPropertyValueToComponent(Object)Copyright © 2017. All rights reserved.