1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 package io.github.tonywasher.joceanus.tethys.javafx.button;
18
19 import io.github.tonywasher.joceanus.tethys.core.button.TethysUICoreIconButtonManager;
20 import io.github.tonywasher.joceanus.tethys.core.factory.TethysUICoreFactory;
21 import io.github.tonywasher.joceanus.tethys.javafx.base.TethysUIFXNode;
22
23
24
25
26
27
28 public final class TethysUIFXIconButtonManager<T>
29 extends TethysUICoreIconButtonManager<T> {
30
31
32
33
34
35
36 TethysUIFXIconButtonManager(final TethysUICoreFactory<?> pFactory,
37 final Class<T> pClazz) {
38
39 super(pFactory, pClazz);
40 }
41
42 @Override
43 public TethysUIFXNode getNode() {
44 return (TethysUIFXNode) super.getNode();
45 }
46
47 @Override
48 public void setVisible(final boolean pVisible) {
49 getNode().setManaged(pVisible);
50 getNode().setVisible(pVisible);
51 }
52
53 @Override
54 public void setPreferredWidth(final Integer pWidth) {
55 getNode().setPreferredWidth(pWidth);
56 }
57
58 @Override
59 public void setPreferredHeight(final Integer pHeight) {
60 getNode().setPreferredHeight(pHeight);
61 }
62
63 @Override
64 public void setBorderPadding(final Integer pPadding) {
65 super.setBorderPadding(pPadding);
66 getNode().createWrapperPane(getBorderTitle(), getBorderPadding());
67 }
68
69 @Override
70 public void setBorderTitle(final String pTitle) {
71 super.setBorderTitle(pTitle);
72 getNode().createWrapperPane(getBorderTitle(), getBorderPadding());
73 }
74 }