Skip to content

Package: NetworkconfiguratorConstants

NetworkconfiguratorConstants

nameinstructionbranchcomplexitylinemethod
static {...}
M: 0 C: 25
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 3
100%
M: 0 C: 1
100%

Coverage

1: package networkconfigurator;
2:
3: import java.awt.Color;
4:
5: /**
6: * Constants for the fli4l network configurator.
7: *
8: * @author Erik Arand
9: */
10: final class NetworkconfiguratorConstants {
11:         /**
12:          * the constants.
13:          */
14:         private NetworkconfiguratorConstants() {
15:                 super();
16:         }
17:
18:         /**
19:          * String for adding a slot.
20:          */
21:         static final String ADD_SLOT = "Add slot";
22:         /**
23:          * String for adding a adapter.
24:          */
25:         static final String ADD_NETWORK_ADAPTER = "Add network adapter";
26:         /**
27:          * String for delete.
28:          */
29:         static final String DELETE = "Delete";
30:         /**
31:          * String for connect.
32:          */
33:         static final String CONNECT = "Connect";
34:         /**
35:          * String for rename.
36:          */
37:         static final String RENAME = "Rename";
38:         /**
39:          * title of the Error message.
40:          */
41:         public static final String ERROR_TITEL = "Error";
42:         /**
43:          * title of the Warning message.
44:          */
45:         public static final String WARNING_TITEL = "Warning";
46:         /**
47:          * text of the Warning message.
48:          */
49:         public static final String WARNING_MESSAGE =
50:                         "Adapters can only be connected with one other item";
51:         /**
52:          * text for changing the connection type.
53:          */
54:         public static final String CHANGETYPE = "Change Type of Connection";
55:         /**
56:          * Standard path for icons.
57:          */
58:         public static final String PACKAGE_ICONS = "icons" + System.getProperty("file.separator");
59:         /**
60:          * Error message for variable IP_NET_N is undefined.
61:          */
62:         public static final String THE_VARIABLE_IP_NET_N_OR_IP_NET_N_DEV_FOR_THE_N_IS_UNDEFINED =
63:                         "The variable IP_NET_N or IP_NET_N_DEV for the n is undefined.";
64:         /**
65:          * Error message for variable HOST_N_NAME is undefined.
66:          */
67:         public static final String THE_VARIABLE_HOST_N_NAME_FOR_THE_N_IS_UNDEFINED =
68:                         "The variable HOST_N_NAME for the n is undefined.";
69:         /**
70:          * Error message for variable IP_ROUTE_N is undefined.
71:          */
72:         public static final String THE_VARIABLE_IP_ROUTE_N_FOR_THE_N_IS_UNDEFINED =
73:                         "The variable IP_ROUTE_N for the n is undefined.";
74:         /**
75:          * Error message for variable IP_ROUTE_N is undefined.
76:          */
77:         public static final String THE_VARIABLE_HOSTNAME_IS_UNDEFINED =
78:                         "The variable HOSTNAME is undefined.";
79:         /**
80:          * String for Hostname.
81:          */
82:         public static final String HOSTNAME = "HOSTNAME";
83:         /**
84:          * String for IP_NET_%d.
85:          */
86:         public static final String IP_NET_D = "IP_NET_%d";
87:         /**
88:          * String for IP_NET_%d_DEV.
89:          */
90:         public static final String IP_NET_D_DEV = "IP_NET_%d_DEV";
91:         /**
92:          * String for HOST_%d_NAME.
93:          */
94:         public static final String HOST_D_NAME = "HOST_%d_NAME";
95:         /**
96:          * String for IP_ROUTE_%d.
97:          */
98:         public static final String IP_ROUTE_D = "IP_ROUTE_%d";
99:         /**
100:          * String for IP_ROUTE_N.
101:          */
102:         public static final String IP_ROUTE_N = "IP_ROUTE_N";
103:         /**
104:          * String for IP_NET_N.
105:          */
106:         public static final String IP_NET_N = "IP_NET_N";
107:         /**
108:          * String for HOST_N.
109:          */
110:         public static final String HOST_N = "HOST_N";
111:         /**
112:          * Color LIGHTRED.
113:          */
114:         static final Color LIGHTRED = new Color(255, 102, 102);
115:         /**
116:          * Color LIGHTGREEN.
117:          */
118:         static final Color LIGHTGREEN = new Color(102, 255, 102);
119:
120: }