Loading...
Searching...
No Matches
FloorSelectorViewConfig.java
Go to the documentation of this file.
1package com.navigine.view.widgets;
2
17public class FloorSelectorViewConfig {
18
19 private Integer accentColor;
20 private Integer textColor;
21 private Integer buttonBackgroundColor;
22 private int marginLeft;
23 private int marginTop;
24
25 private FloorSelectorViewConfig() {}
26
27 public static Builder builder() {
28 return new Builder();
29 }
30
31 public static FloorSelectorViewConfig defaultConfig() {
32 return builder().build();
33 }
34
35 public static class Builder {
36 private final FloorSelectorViewConfig config = new FloorSelectorViewConfig();
37
38 public Builder accentColor(int color) {
39 config.accentColor = color;
40 return this;
41 }
42
43 public Builder textColor(int color) {
44 config.textColor = color;
45 return this;
46 }
47
48 public Builder buttonBackgroundColor(int color) {
49 config.buttonBackgroundColor = color;
50 return this;
51 }
52
53 public Builder marginLeft(int dp) {
54 config.marginLeft = dp;
55 return this;
56 }
57
58 public Builder marginTop(int dp) {
59 config.marginTop = dp;
60 return this;
61 }
62
63 public FloorSelectorViewConfig build() {
64 return config;
65 }
66 }
67
68 public Integer getAccentColor() { return accentColor; }
69 public Integer getTextColor() { return textColor; }
70 public Integer getButtonBackgroundColor() { return buttonBackgroundColor; }
71 public int getMarginLeft() { return marginLeft; }
72 public int getMarginTop() { return marginTop; }
73}