1 2 package org.catacomb.druid.blocks; 3 4 import org.catacomb.druid.build.Context; 5 import org.catacomb.druid.build.GUIPath; 6 import org.catacomb.druid.gui.base.DruPanel; 7 import org.catacomb.druid.gui.edit.DruInt; 8 9 10 public class IntSlider extends Panel { 11 12 13 public String label; 14 public String store; 15 16 public String action; 17 public int min; 18 public int max; 19 public String style; 20 21 22 public DruPanel instantiatePanel() { 23 return new DruInt((min + max)/2, min, max, style); 24 } 25 26 public void populatePanel(DruPanel dp, Context ctx, GUIPath gpath) { 27 28 DruInt drui = (DruInt)dp; 29 drui.setLabel(label); 30 drui.setMethodName(action); 31 32 } 33 34 35 }