fix: replaced bad boolean conversion calls
This commit is contained in:
parent
1454d68b4a
commit
f5bf88532d
3 changed files with 6 additions and 6 deletions
|
@ -263,14 +263,14 @@ public class EpubPanel extends JPanel {
|
||||||
|
|
||||||
JCheckBox addPagination(HashMap<String, Component> configuration, UIPreferences preferences) {
|
JCheckBox addPagination(HashMap<String, Component> configuration, UIPreferences preferences) {
|
||||||
cb_Pagination_1 = new JCheckBox(Localizer.get(LABEL_PAGINATION));
|
cb_Pagination_1 = new JCheckBox(Localizer.get(LABEL_PAGINATION));
|
||||||
cb_Pagination_1.setSelected(Boolean.getBoolean(preferences.get(PREF_PAGINATION)));
|
cb_Pagination_1.setSelected(Boolean.valueOf(preferences.get(PREF_PAGINATION)));
|
||||||
configuration.put(ARG_PAGINATION, cb_Pagination_1);
|
configuration.put(ARG_PAGINATION, cb_Pagination_1);
|
||||||
return cb_Pagination_1;
|
return cb_Pagination_1;
|
||||||
}
|
}
|
||||||
|
|
||||||
JCheckBox addConvertToPX(HashMap<String, Component> configuration, UIPreferences preferences) {
|
JCheckBox addConvertToPX(HashMap<String, Component> configuration, UIPreferences preferences) {
|
||||||
cb_convertToPx_1 = new JCheckBox(Localizer.get(LABEL_CONVERT_TO_PX));
|
cb_convertToPx_1 = new JCheckBox(Localizer.get(LABEL_CONVERT_TO_PX));
|
||||||
cb_convertToPx_1.setSelected(Boolean.getBoolean(preferences.get(PREF_CONVERT_TO_PX)));
|
cb_convertToPx_1.setSelected(Boolean.valueOf(preferences.get(PREF_CONVERT_TO_PX)));
|
||||||
configuration.put(ARG_CONVERT_TO_PX, cb_convertToPx_1);
|
configuration.put(ARG_CONVERT_TO_PX, cb_convertToPx_1);
|
||||||
return cb_convertToPx_1;
|
return cb_convertToPx_1;
|
||||||
}
|
}
|
||||||
|
|
|
@ -303,14 +303,14 @@ public class HTMLPanel extends JPanel{
|
||||||
|
|
||||||
JCheckBox addPagination(HashMap<String, Component> configuration, UIPreferences preferences) {
|
JCheckBox addPagination(HashMap<String, Component> configuration, UIPreferences preferences) {
|
||||||
cb_Pagination_1 = new JCheckBox(Localizer.get(LABEL_PAGINATION));
|
cb_Pagination_1 = new JCheckBox(Localizer.get(LABEL_PAGINATION));
|
||||||
cb_Pagination_1.setSelected(Boolean.getBoolean(preferences.get(PREF_PAGINATION)));
|
cb_Pagination_1.setSelected(Boolean.valueOf(preferences.get(PREF_PAGINATION)));
|
||||||
configuration.put(ARG_PAGINATION, cb_Pagination_1);
|
configuration.put(ARG_PAGINATION, cb_Pagination_1);
|
||||||
return cb_Pagination_1;
|
return cb_Pagination_1;
|
||||||
}
|
}
|
||||||
|
|
||||||
JCheckBox addConvertToPX(HashMap<String, Component> configuration, UIPreferences preferences) {
|
JCheckBox addConvertToPX(HashMap<String, Component> configuration, UIPreferences preferences) {
|
||||||
cb_convertToPx_1 = new JCheckBox(Localizer.get(LABEL_CONVERT_TO_PX));
|
cb_convertToPx_1 = new JCheckBox(Localizer.get(LABEL_CONVERT_TO_PX));
|
||||||
cb_convertToPx_1.setSelected(Boolean.getBoolean(preferences.get(PREF_CONVERT_TO_PX)));
|
cb_convertToPx_1.setSelected(Boolean.valueOf(preferences.get(PREF_CONVERT_TO_PX)));
|
||||||
configuration.put(ARG_CONVERT_TO_PX, cb_convertToPx_1);
|
configuration.put(ARG_CONVERT_TO_PX, cb_convertToPx_1);
|
||||||
return cb_convertToPx_1;
|
return cb_convertToPx_1;
|
||||||
}
|
}
|
||||||
|
|
|
@ -340,14 +340,14 @@ public class RDFPanel extends JPanel {
|
||||||
|
|
||||||
JCheckBox addPagination(HashMap<String, Component> configuration, UIPreferences preferences) {
|
JCheckBox addPagination(HashMap<String, Component> configuration, UIPreferences preferences) {
|
||||||
cb_Pagination_1 = new JCheckBox(Localizer.get(LABEL_PAGINATION));
|
cb_Pagination_1 = new JCheckBox(Localizer.get(LABEL_PAGINATION));
|
||||||
cb_Pagination_1.setSelected(Boolean.getBoolean(preferences.get(PREF_PAGINATION)));
|
cb_Pagination_1.setSelected(Boolean.valueOf(preferences.get(PREF_PAGINATION)));
|
||||||
configuration.put(ARG_PAGINATION, cb_Pagination_1);
|
configuration.put(ARG_PAGINATION, cb_Pagination_1);
|
||||||
return cb_Pagination_1;
|
return cb_Pagination_1;
|
||||||
}
|
}
|
||||||
|
|
||||||
JCheckBox addConvertToPX(HashMap<String, Component> configuration, UIPreferences preferences) {
|
JCheckBox addConvertToPX(HashMap<String, Component> configuration, UIPreferences preferences) {
|
||||||
cb_convertToPx_1 = new JCheckBox(Localizer.get(LABEL_CONVERT_TO_PX));
|
cb_convertToPx_1 = new JCheckBox(Localizer.get(LABEL_CONVERT_TO_PX));
|
||||||
cb_convertToPx_1.setSelected(Boolean.getBoolean(preferences.get(PREF_CONVERT_TO_PX)));
|
cb_convertToPx_1.setSelected(Boolean.valueOf(preferences.get(PREF_CONVERT_TO_PX)));
|
||||||
configuration.put(ARG_CONVERT_TO_PX, cb_convertToPx_1);
|
configuration.put(ARG_CONVERT_TO_PX, cb_convertToPx_1);
|
||||||
return cb_convertToPx_1;
|
return cb_convertToPx_1;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue