////////////////////////////////////////////////////////////////////////////// // DX SOURCEFILE // ////////////////////////////////////////////////////////////////////////////// /* * $Header: /home/gda/dxcvs/dx/src/ui++/java/dx/runtime/StepperGroup.java,v 1.1.1.1 1999/03/24 15:17:32 gda Exp $ */ package dx.runtime; import java.awt.*; // // Provide behavior similar to a Motif Label widget: support multi // line labels which java labels don't seem to be able to do. // public class StepperGroup extends Panel { // // private // int stepper_count; int next; Object[] stepper_array; Font local_font; Color local_fg; Color local_bg; boolean initialized; StepperInteractor notifier; boolean use_arrows = true; public StepperGroup(int count, StepperInteractor snot, boolean usem) { use_arrows = usem; stepper_count = count; stepper_array = new Object[stepper_count]; next = 0; local_font = null; local_fg = null; local_bg = null; initialized = false; notifier = snot; } public StepperGroup(int count, StepperInteractor snot) { use_arrows = true; stepper_count = count; stepper_array = new Object[stepper_count]; next = 0; local_font = null; local_fg = null; local_bg = null; initialized = false; notifier = snot; } public void setFont(Font newf) { if (initialized == true) { int i; for (i=0; i