1 package rero.dialogs; 2 3 import java.awt.*; 4 import java.awt.event.*; 5 6 import javax.swing.*; 7 import javax.swing.event.*; 8 9 import java.util.*; 10 11 import rero.dck.items.*; 12 import rero.config.*; 13 import rero.dck.*; 14 15 public class SwitchBarDialog extends DMain 16 { 17 public String getTitle() 18 { 19 return "Switchbar"; 20 } 21 22 public String getDescription() 23 { 24 return "Switchbar Options"; 25 } 26 27 public void setupDialog() 28 { 29 addBlankSpace(); 30 addBlankSpace(); 31 32 DGroup temp = addDialogGroup(new DGroup("Switchbar Options", 30) 33 { 34 public void setupDialog() 35 { 36 addSelectInput("switchbar.position", 0, new String [] { "Top", "Bottom", "Left", "Right" }, "Position: ", 'P', 25); 37 addColorInput("switchbar.color", ClientDefaults.switchbar_color, "Activity Color", 'A'); 39 addCheckboxInput("switchbar.fixed", ClientDefaults.switchbar_fixed, "Fixed width switchbar buttons", 'F', FlowLayout.LEFT); 40 addCheckboxInput("switchbar.sort", ClientDefaults.switchbar_sort, "Sort buttons alphabetically", 'F', FlowLayout.LEFT); 41 } 42 }); 43 44 CheckboxInput boxed = addCheckboxInput("switchbar.enabled", true, "Enable Switchbar", 'S', FlowLayout.CENTER); 45 boxed.addDependent(temp); 46 } 47 } 48 49 50 51 | Popular Tags |