MCPcopy Index your code
hub / github.com/BombusMod/BombusMod / ConfigForm

Method ConfigForm

src/main/java/Client/ConfigForm.java:122–333  ·  view source on GitHub ↗

Creates a new instance of ConfigForm

()

Source from the content-addressed store, hash-verified

120 * Creates a new instance of ConfigForm
121 */
122 public ConfigForm() {
123 super(SR.MS_OPTIONS);
124
125 cf = Config.getInstance();
126
127 itemsList.addElement(new SimpleString(SR.MS_ROSTER_ELEMENTS, true));
128 showOfflineContacts = new CheckBox(SR.MS_OFFLINE_CONTACTS, cf.showOfflineContacts);
129 itemsList.addElement(showOfflineContacts);
130 selfContact = new CheckBox(SR.MS_SELF_CONTACT, cf.selfContact);
131 itemsList.addElement(selfContact);
132 showTransports = new CheckBox(SR.MS_TRANSPORTS, cf.showTransports);
133 itemsList.addElement(showTransports);
134 ignore = new CheckBox(SR.MS_IGNORE_LIST, cf.ignore);
135 itemsList.addElement(ignore);
136 collapsedGroups = new CheckBox(SR.MS_COLLAPSED_GROUPS, cf.collapsedGroups);
137 itemsList.addElement(collapsedGroups);
138 autoFocus = new CheckBox(SR.MS_AUTOFOCUS, cf.autoFocus);
139 itemsList.addElement(autoFocus);
140 showResources = new CheckBox(SR.MS_SHOW_RESOURCES, cf.showResources);
141 itemsList.addElement(showResources);
142 useBoldFont = new CheckBox(SR.MS_BOLD_FONT, cf.useBoldFont);
143 itemsList.addElement(useBoldFont);
144 rosterStatus = new CheckBox(SR.MS_SHOW_STATUSES, cf.rosterStatus);
145 itemsList.addElement(rosterStatus);
146//#ifdef CLIENTS_ICONS
147 showClientIcon = new CheckBox(SR.MS_SHOW_CLIENTS_ICONS, cf.showClientIcon);
148 itemsList.addElement(showClientIcon);
149//#endif
150 autoClean = new CheckBox(SR.MS_AUTOCLEAN_GROUPS, cf.autoClean);
151 itemsList.addElement(autoClean);
152
153 itemsList.addElement(new SpacerItem(10));
154 subscr = new DropChoiceBox(SR.MS_AUTH_NEW);
155 subscr.add(SR.MS_SUBSCR_AUTO);
156 subscr.add(SR.MS_SUBSCR_ASK);
157 subscr.add(SR.MS_SUBSCR_DROP);
158 subscr.add(SR.MS_SUBSCR_REJECT);
159 subscr.setSelectedIndex(cf.autoSubscribe);
160 itemsList.addElement(subscr);
161
162 itemsList.addElement(new SpacerItem(10));
163
164
165 itemsList.addElement(new SpacerItem(10));
166 itemsList.addElement(new SimpleString(SR.MS_MESSAGES, true));
167//#ifdef SMILES
168 smiles = new CheckBox(SR.MS_SMILES, cf.smiles);
169 itemsList.addElement(smiles);
170//#endif
171 eventComposing = new CheckBox(SR.MS_COMPOSING_EVENTS, cf.eventComposing);
172 itemsList.addElement(eventComposing);
173 capsState = new CheckBox(SR.MS_CAPS_STATE, cf.capsState);
174 itemsList.addElement(capsState);
175//#ifndef WMUC
176 storeConfPresence = new CheckBox(SR.MS_STORE_PRESENCE, cf.storeConfPresence);
177 itemsList.addElement(storeConfPresence);
178//#endif
179 autoScroll = new CheckBox(SR.MS_AUTOSCROLL, cf.autoScroll);

Callers

nothing calls this directly

Calls 15

getInstanceMethod · 0.95
isPlatformSupportedMethod · 0.95
getInstanceMethod · 0.95
addElementMethod · 0.80
setSelectedIndexMethod · 0.80
stringLoaderMethod · 0.80
getPropertyMethod · 0.80
toLowerCaseMethod · 0.80
moveCursorToMethod · 0.80
getNextSelectableRefMethod · 0.80
hasPointerEventsMethod · 0.65
addMethod · 0.45

Tested by

no test coverage detected