public abstract class AbstractRenderer extends Object implements RolloverRenderer, StringValue, Serializable, UIDependent
Modifier and Type | Field and Description |
---|---|
protected ComponentProvider<?> |
componentController |
Constructor and Description |
---|
AbstractRenderer(ComponentProvider<?> provider) |
Modifier and Type | Method and Description |
---|---|
protected abstract ComponentProvider<?> |
createDefaultComponentProvider()
The default ComponentProvider to use if no special.
|
void |
doClick()
Same as AbstractButton.doClick().
|
ComponentProvider<?> |
getComponentProvider()
Returns the ComponentProvider used by this renderer.
|
String |
getString(Object value)
Returns a string representation of the given value.
|
boolean |
isEnabled() |
void |
setBackground(Color background) |
void |
setForeground(Color foreground) |
void |
updateUI()
Updates all internal visuals after changing a UI-delegate.
|
protected ComponentProvider<?> componentController
public AbstractRenderer(ComponentProvider<?> provider)
public ComponentProvider<?> getComponentProvider()
protected abstract ComponentProvider<?> createDefaultComponentProvider()
ComponentProvider
public String getString(Object value)
PENDING JW: forgot - why not null return guaranteed?
getString
in interface StringValue
value
- the object to present as a stringpublic void doClick()
doClick
in interface RolloverRenderer
public boolean isEnabled()
isEnabled
in interface RolloverRenderer
public void updateUI()
updateUI
in interface UIDependent
JComponent.updateUI()
public void setBackground(Color background)
background
- public void setForeground(Color foreground)
foreground
- WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses