public class BorderForwarder extends java.lang.Object implements DockBorder
DockBorder
, provides methods to register
itself on the current ThemeManager
, and updates the border of some
JComponent
using the current BorderModifier
.KIND
Constructor and Description |
---|
BorderForwarder(Path kind,
java.lang.String id,
javax.swing.JComponent target)
Creates a new forwarder.
|
Modifier and Type | Method and Description |
---|---|
protected void |
forward(javax.swing.border.Border border)
Calls
JComponent.setBorder(Border) on the target JComponent of
this forwarder. |
BorderModifier |
get()
Gets the
BorderModifier that is currently used by this forwarder. |
boolean |
isForwarding()
Tells whether the current call to
JComponent.setBorder(Border) is executed
by this forwarder. |
void |
set(BorderModifier value)
Called when the underlying resource of this
UIValue changes. |
void |
setBorder(javax.swing.border.Border border)
Sets the basic border of this forwarder.
|
void |
setController(DockController controller)
Sets the
DockController which should be monitored for the current BorderModifier . |
public void setBorder(javax.swing.border.Border border)
BorderModifier.modify(Border)
.border
- the new border, can be null
public void set(BorderModifier value)
UIValue
UIValue
changes.set
in interface UIValue<BorderModifier>
value
- the new valuepublic BorderModifier get()
BorderModifier
that is currently used by this forwarder.null
public void setController(DockController controller)
DockController
which should be monitored for the current BorderModifier
.controller
- the new controller or null
protected void forward(javax.swing.border.Border border)
JComponent.setBorder(Border)
on the target JComponent
of
this forwarder. During the call isForwarding()
returns true
.border
- the border to really showpublic boolean isForwarding()
JComponent.setBorder(Border)
is executed
by this forwarder.true
if currently forward(Border)
is running