public class BorderForwarder extends 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,
String id,
JComponent target)
Creates a new forwarder.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
forward(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(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 BorderForwarder(Path kind, String id, JComponent target)
public void setBorder(Border border)
BorderModifier.modify(Border).border - the new border, can be nullpublic void set(BorderModifier value)
UIValueUIValue changes.set in interface UIValue<BorderModifier>value - the new valuepublic BorderModifier get()
BorderModifier that is currently used by this forwarder.nullpublic void setController(DockController controller)
DockController which should be monitored for the current BorderModifier.controller - the new controller or nullprotected void forward(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 runningCopyright © 2017 Docking Frames. All rights reserved.