Changeset 2188 for trunk/java-client/org/nzdl/gsdl/SimpleGraphicalClient
- Timestamp:
- 2001-03-16T13:47:02+13:00 (23 years ago)
- Location:
- trunk/java-client/org/nzdl/gsdl/SimpleGraphicalClient
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/java-client/org/nzdl/gsdl/SimpleGraphicalClient/Makefile
r2144 r2188 1 CLASSES = CSFrame.class \ 1 CLASSES = PreferencesDialog.class\ 2 CSFrame.class \ 2 3 CSModel.class\ 3 4 Constants.class\ -
trunk/java-client/org/nzdl/gsdl/SimpleGraphicalClient/PreferencesDialog.java
r2185 r2188 37 37 package org.nzdl.gsdl.SimpleGraphicalClient; 38 38 39 import org.nzdl.gsdl.util.NzdlPreferences; 39 40 import javax.swing.*; 40 41 import java.awt.*; … … 69 70 70 71 //contentBox.add(); 72 String preferanceName = null; 71 73 // the preferences themselves ... 72 74 73 JCheckBox showFirstDocCheckBox = new JCheckBox("Automatically display the document contents of the first result", true); //should read initial value from preferences data structure 75 preferanceName = "Automatically display the first document"; 76 JCheckBox showFirstDocCheckBox = 77 new JCheckBox(preferanceName, NzdlPreferences.getBoolean(preferanceName)); 74 78 showFirstDocCheckBox.setHorizontalAlignment(SwingConstants.LEFT); 75 79 76 JCheckBox showAsTextCheckBox = new JCheckBox("Always display raw text (don't interpret HTML)", false); //should read initial value from preferences data structure 80 preferanceName = "Always display raw text (don't interpret HTML)"; 81 JCheckBox showAsTextCheckBox = 82 new JCheckBox(preferanceName, NzdlPreferences.getBoolean(preferanceName)); 77 83 showAsTextCheckBox.setHorizontalAlignment(SwingConstants.LEFT); 78 84 85 preferanceName = "Connect to multiple servers"; 86 JCheckBox connectToMultipleCheckBox = 87 new JCheckBox(preferanceName, NzdlPreferences.getBoolean(preferanceName)); 88 connectToMultipleCheckBox.setHorizontalAlignment(SwingConstants.LEFT); 89 90 preferanceName = "Log at the NzdlService level"; 91 JCheckBox logNetworkLevelCheckBox = 92 new JCheckBox(preferanceName, NzdlPreferences.getBoolean(preferanceName)); 93 logNetworkLevelCheckBox.setHorizontalAlignment(SwingConstants.LEFT); 94 95 preferanceName = "Cache corba requests"; 96 JCheckBox useCacheCheckBox = 97 new JCheckBox(preferanceName, NzdlPreferences.getBoolean(preferanceName)); 98 useCacheCheckBox.setHorizontalAlignment(SwingConstants.LEFT); 99 100 preferanceName = "Save documents"; 101 JCheckBox saveDocsCheckBox = 102 new JCheckBox(preferanceName, NzdlPreferences.getBoolean(preferanceName)); 103 saveDocsCheckBox.setHorizontalAlignment(SwingConstants.LEFT); 79 104 80 105 … … 84 109 contentBox.add(showFirstDocCheckBox); 85 110 contentBox.add(showAsTextCheckBox); 111 contentBox.add(connectToMultipleCheckBox); 112 contentBox.add(logNetworkLevelCheckBox); 113 contentBox.add(useCacheCheckBox); 114 contentBox.add(saveDocsCheckBox); 86 115 87 116 okButton = new JButton("Ok"); … … 115 144 //System.err.println("ok button pressed!"); 116 145 117 dispose(); //close window 146 NzdlPreferences.getInstance().save(); 147 dispose(); //close window 118 148 } 119 149 else
Note:
See TracChangeset
for help on using the changeset viewer.