Disabled CheckBox : CheckBox « GWT « Java






Disabled CheckBox

  

package com.java2s.gwt.client;

import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.user.client.Window;
import com.google.gwt.user.client.ui.Button;
import com.google.gwt.user.client.ui.ClickListener;
import com.google.gwt.user.client.ui.RootPanel;
import com.google.gwt.user.client.ui.Widget;
import com.google.gwt.user.client.ui.CheckBox;

public class GWTClient implements EntryPoint {

  public void onModuleLoad() {
    CheckBox disabledCheck = new CheckBox("Disabled Check");
    disabledCheck.setEnabled(false);
    
    
    RootPanel.get().add(disabledCheck);
  }
}



           
         
    
  








GWT-disabledCheckBox.zip( 2 k)

Related examples in the same category

1.Using CheckboxItem to create check box (Smart GWT)Using CheckboxItem to create check box (Smart GWT)
2.Change listener for CheckBoxItem (Smart GWT)Change listener for CheckBoxItem (Smart GWT)
3.Using CheckBoxGroup to group CheckBoxes (Ext GWT)Using CheckBoxGroup to group CheckBoxes (Ext GWT)