Set Message for Slider (Ext GWT) : Slider « GWT « Java

Set Message for Slider (Ext GWT)

Set Message for Slider (Ext GWT)

 * Ext GWT - Ext for GWT
 * Copyright(c) 2007-2009, Ext JS, LLC.

import com.extjs.gxt.ui.client.Style.Scroll;
import com.extjs.gxt.ui.client.event.ButtonEvent;
import com.extjs.gxt.ui.client.event.SelectionListener;
import com.extjs.gxt.ui.client.widget.LayoutContainer;
import com.extjs.gxt.ui.client.widget.Slider;
import com.extjs.gxt.ui.client.widget.button.Button;
import com.extjs.gxt.ui.client.widget.layout.FillData;

public class Hello implements EntryPoint {
  public void onModuleLoad() {
    RootPanel.get().add(new CustomSliderExample());
class CustomSliderExample extends LayoutContainer {
  public CustomSliderExample() {

  private int margins = 30;

  protected void onRender(Element parent, int pos) {
    super.onRender(parent, pos);

    final Slider slider4 = new Slider();
    slider4.setMessage("{0}% complete");
    LayoutContainer lc = new LayoutContainer();

    add(lc, new FillData(margins));

    add(new Button("set value to 40", new SelectionListener<ButtonEvent>() {
      public void componentSelected(ButtonEvent ce) {
    }), new FillData(margins));



  4,297 k)

Related examples in the same category

1.Vertical/Horizontal Slider Sample (Smart GWT)Vertical/Horizontal Slider Sample (Smart GWT)
2.Drag the slider to change opacity (Smart GWT)Drag the slider to change opacity (Smart GWT)
3.Using Slider to control the width and sharpness of a shadow (Smart GWT)Using Slider to control the width and sharpness of a shadow (Smart GWT)
4.Using SliderItem to create slider (Smart GWT)Using SliderItem to create slider (Smart GWT)
5.Using Slider and SliderField (Ext GWT)Using Slider and SliderField (Ext GWT)
6.Vertical.Horizontal Slider (Ext GWT)Vertical.Horizontal Slider (Ext GWT)
7.Set value for Slider (Ext GWT)Set value for Slider (Ext GWT)