|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectbibliothek.gui.dock.themes.border.BorderForwarder
public class BorderForwarder
This helper class implements DockBorder, provides methods to register
itself on the current ThemeManager, and updates the border of some
JComponent using the current BorderModifier.
| Field Summary |
|---|
| Fields inherited from interface bibliothek.gui.dock.themes.border.DockBorder |
|---|
KIND |
| Constructor Summary | |
|---|---|
BorderForwarder(Path kind,
String id,
JComponent target)
Creates a new forwarder. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BorderForwarder(Path kind,
String id,
JComponent target)
kind - what kind of UIValue this isid - the identifier this UIValue should monitortarget - the component whose border is going to be replaced| Method Detail |
|---|
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 running
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||