Changeset 10008
- Timestamp:
- 2005-06-03T14:45:24+12:00 (19 years ago)
- Location:
- trunk/gli/src/org/greenstone/gatherer
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gli/src/org/greenstone/gatherer/cdm/SearchTypeManager.java
r9907 r10008 50 50 */ 51 51 public class SearchTypeManager 52 extends DOMProxyListModel { 53 52 extends DOMProxyListModel 53 { 54 static final private Dimension LABEL_SIZE = new Dimension(150, 25); 55 54 56 static final public String[] SEARCH_TYPES = { "plain" , "form"}; 55 57 static final public String[] BUILD_TYPES = { "lucene", "mgpp" }; … … 194 196 195 197 build_type_combobox = new GComboBox(BUILD_TYPES); 196 build_type_combobox.setPreferredSize( Utility.LABEL_SIZE);198 build_type_combobox.setPreferredSize(LABEL_SIZE); 197 199 build_type_combobox.setBackgroundNonSelectionColor(Configuration.getColor("coloring.editable_background", false)); 198 200 build_type_combobox.setBackgroundSelectionColor(Configuration.getColor("coloring.collection_selection_background", false)); … … 243 245 Dictionary.registerText(search_type_label, "CDM.SearchTypeManager.SearchType_Selection"); 244 246 search_type_combobox = new GComboBox(SEARCH_TYPES); 245 search_type_combobox.setPreferredSize( Utility.LABEL_SIZE);247 search_type_combobox.setPreferredSize(LABEL_SIZE); 246 248 search_type_combobox.setBackgroundNonSelectionColor(Configuration.getColor("coloring.editable_background", false)); 247 249 search_type_combobox.setBackgroundSelectionColor(Configuration.getColor("coloring.collection_selection_background", false)); -
trunk/gli/src/org/greenstone/gatherer/gui/DownloadProgressBar.java
r8994 r10008 45 45 import org.greenstone.gatherer.collection.DownloadJob; 46 46 import org.greenstone.gatherer.util.AppendLineOnlyFileDocument; 47 import org.greenstone.gatherer.util.Utility; 47 48 48 49 49 public class DownloadProgressBar 50 50 extends JPanel 51 51 implements ActionListener { 52 53 static final private Dimension MINIMUM_BUTTON_SIZE = new Dimension(100, 25); 54 static final private Dimension PROGRESS_BAR_SIZE = new Dimension(580,65); 52 55 53 56 private boolean simple = false; … … 127 130 stop_start_button.addActionListener(this); 128 131 stop_start_button.addActionListener(owner); 129 stop_start_button.setMinimumSize( Utility.MINIMUM_BUTTON_SIZE);132 stop_start_button.setMinimumSize(MINIMUM_BUTTON_SIZE); 130 133 stop_start_button.setMnemonic(KeyEvent.VK_P); 131 134 stop_start_button.setEnabled(true); … … 136 139 log_button.addActionListener(this); 137 140 log_button.setEnabled(false); 138 log_button.setMinimumSize( Utility.MINIMUM_BUTTON_SIZE);141 log_button.setMinimumSize(MINIMUM_BUTTON_SIZE); 139 142 log_button.setMnemonic(KeyEvent.VK_L); 140 143 Dictionary.registerBoth(log_button, "Mirroring.DownloadJob.Log", "Mirroring.DownloadJob.Log_Tooltip"); … … 143 146 close_button.addActionListener(owner); 144 147 close_button.addActionListener(this); 145 close_button.setMinimumSize( Utility.MINIMUM_BUTTON_SIZE);148 close_button.setMinimumSize(MINIMUM_BUTTON_SIZE); 146 149 close_button.setMnemonic(KeyEvent.VK_C); 147 150 close_button.setEnabled(true); … … 238 241 239 242 public Dimension getPreferredSize() { 240 return Utility.PROGRESS_BAR_SIZE;243 return PROGRESS_BAR_SIZE; 241 244 } 242 245 -
trunk/gli/src/org/greenstone/gatherer/util/Utility.java
r10007 r10008 60 60 * @version 2.3b 61 61 */ 62 public class Utility { 63 static final public Dimension MINIMUM_BUTTON_SIZE = new Dimension(100, 25); 64 // static final public Dimension DOUBLE_IMAGE_BUTTON_SIZE = new Dimension(190, 35); 65 static final public Dimension LABEL_SIZE = new Dimension(150, 25); 66 /** The default size of a gatherer progress bar, in either the download view or the build view. */ 67 static final public Dimension PROGRESS_BAR_SIZE = new Dimension(580,65); 68 /** The number of kilobytes to use as a io buffer. */ 69 static final public int FACTOR = 1; 70 /** The size of the io buffer, calculated as FACTOR * 1024. */ 71 static final public int BUFFER_SIZE = FACTOR * 1024; 62 public class Utility 63 { 64 /** The size of the io buffer, in bytes. */ 65 static final public int BUFFER_SIZE = 1024; 72 66 /** Definition of an important directory name, in this case the base dir, or the working directory of the Gatherer. */ 73 67
Note:
See TracChangeset
for help on using the changeset viewer.