Examples of CheckBoxField


Examples of melnorme.util.swt.components.fields.CheckBoxField

 
  @Override
  protected void createAppearanceGroup(Composite parent) {
    createBooleanField(parent,
      PreferenceConstants.EDITOR_MATCHING_BRACKETS,
      new CheckBoxField(PreferencesMessages.EditorPreferencePage_matchingBrackets));
   
    super.createAppearanceGroup(parent);
  }
View Full Code Here

Examples of melnorme.util.swt.components.fields.CheckBoxField

    group.setLayout(GridLayoutFactory.swtDefaults().numColumns(2).create());
   
    if(DevelopmentCodeMarkers.UNIMPLEMENTED_FUNCTIONALITY) {
    createBooleanField(group,
      LangAutoEditPreferenceConstants.AE_CLOSE_STRINGS.key,
      new CheckBoxField(PreferencesMessages.LangSmartTypingConfigurationBlock_closeStrings));
   
    createBooleanField(group,
      LangAutoEditPreferenceConstants.AE_CLOSE_BRACKETS.key,
      new CheckBoxField(PreferencesMessages.LangSmartTypingConfigurationBlock_closeBrackets));
    }
   
    createBooleanField(group,
      LangAutoEditPreferenceConstants.AE_CLOSE_BRACES.key,
      new CheckBoxField(PreferencesMessages.LangSmartTypingConfigurationBlock_closeBraces));
   
  }
View Full Code Here

Examples of melnorme.util.swt.components.fields.CheckBoxField

   
    group.setLayout(GridLayoutFactory.swtDefaults().numColumns(2).create());
   
    createBooleanField(group,
      LangAutoEditPreferenceConstants.AE_SMART_INDENT.key,
      new CheckBoxField(PreferencesMessages.EditorPreferencePage_smartIndent));
   
    createBooleanField(group,
      LangAutoEditPreferenceConstants.AE_SMART_DEINDENT.key,
      new CheckBoxField(PreferencesMessages.EditorPreferencePage_smartDeIndent));
   
    createBooleanField(group,
      LangAutoEditPreferenceConstants.AE_PARENTHESES_AS_BLOCKS.key,
      new CheckBoxField(PreferencesMessages.EditorPreferencePage_considerParenthesesAsBlocks));
   
    return group;
  }
View Full Code Here

Examples of melnorme.util.swt.components.fields.CheckBoxField

    Composite itemEditorComposite = new Composite(editorComposite, SWT.NONE);
    itemEditorComposite.setLayoutData(
      gdFillDefaults().create());
    itemEditorComposite.setLayout(GridLayoutFactory.swtDefaults().extendedMargins(5, 20, 5, 5).create());
   
    enableField = new CheckBoxField(PreferencesMessages.DLTKEditorPreferencePage_enable);
    enableField.createComponent(itemEditorComposite, gdFillDefaults().create());
   
    colorField = new ColorField(PreferencesMessages.DLTKEditorPreferencePage_color);
    colorField.createComponent(itemEditorComposite, gdFillDefaults().indent(20, 0).create());
    boldCheckboxField = new CheckBoxField(PreferencesMessages.DLTKEditorPreferencePage_bold);
    boldCheckboxField.createComponent(itemEditorComposite, gdFillDefaults().indent(20, 0).create());
    italicCheckboxField = new CheckBoxField(PreferencesMessages.DLTKEditorPreferencePage_italic);
    italicCheckboxField.createComponent(itemEditorComposite, gdFillDefaults().indent(20, 0).create());
    striketroughCheckboxField = new CheckBoxField(PreferencesMessages.DLTKEditorPreferencePage_strikethrough);
    striketroughCheckboxField.createComponent(itemEditorComposite, gdFillDefaults().indent(20, 0).create());
    underlineCheckboxField = new CheckBoxField(PreferencesMessages.DLTKEditorPreferencePage_underline);
    underlineCheckboxField.createComponent(itemEditorComposite, gdFillDefaults().indent(20, 0).create());
   
    enableField.addValueChangedListener(new IFieldValueListener() {
      @Override
      public void fieldValueChanged() {
View Full Code Here

Examples of melnorme.util.swt.components.fields.CheckBoxField

import org.eclipse.jface.preference.IPreferenceStore;

public class BooleanFieldAdapter extends AbstractFieldAdapter<Boolean> implements IPreferencesComponent {
 
  public BooleanFieldAdapter(String label) {
    this(label, new CheckBoxField(label));
  }
View Full Code Here

Examples of melnorme.util.swt.components.fields.CheckBoxField

      ctWarning.setEditable(false);
      ctWarning.setText(GoUIMessages.AUTOMATIC_UNIT_TESTING_WARNING);
      ctWarning.setLayoutData(gdFillDefaults().grab(true, false).hint(400, 200).span(2, 1).create());
     
     
      ctEnablement = new CheckBoxField("Enable Continuous Testing");
      ctEnablement.createComponentInlined(topControl);
     
      testFilesRegex = new TextField("Test Name Regex:");
      testFilesRegex.createComponentInlined(topControl);
     
View Full Code Here

Examples of net.rim.device.api.ui.component.CheckboxField

    return fieldManager;
  }

  protected Field createCheckBoxAndTextField(String label, boolean checked, final Execution exec, String text) {
    HorizontalFieldManager fieldManager = new HorizontalFieldManager();
    final CheckboxField checkBoxField = new CheckboxField(label, checked, NO_USE_ALL_WIDTH);
    FieldChangeListener changeListener = new FieldChangeListener() {
      public void fieldChanged(Field field, int context) {
        boolean checked = checkBoxField.getChecked();
        if (!exec.execute(new Boolean(checked))) {
          checkBoxField.setChecked(!checked);
        }
      }
    };
    checkBoxField.setChangeListener(changeListener);
    RichTextField textField = new RichTextField(text, RichTextField.TEXT_ALIGN_RIGHT | RichTextField.NON_FOCUSABLE);
    fieldManager.add(checkBoxField);
    fieldManager.add(textField);

    return fieldManager;
View Full Code Here

Examples of net.rim.device.api.ui.component.CheckboxField

            calendarSourceUriField  = new BasicEditField
                                        (sdh.getLanguage("source-uri-calendar") + "  " ,
                                        c.calendarSourceUri );
                                       

            syncContactField        = new CheckboxField
                                        (sdh.getLanguage("enable-sync-contact")       ,
                                        c.syncContact );

            syncCalendarField       = new CheckboxField
                                        (sdh.getLanguage("enable-sync-calendar")      ,
                                        c.syncCalendar );
                                       
            syncMailField           = new CheckboxField
                                        (sdh.getLanguage("enable-sync-mail")      ,
                                        c.syncMail);
                                       
            pollingField            = new CheckboxField(
                                        sdh.getLanguage("enable-polling"),
                                        c.enablePolling);
                                      
            smsField                = new CheckboxField(
                                        sdh.getLanguage("enable-sms-server-alerted-sync"),
                                        c.enableSmsSync);
                                      
            gatewayApnField         = new BasicEditField
                                        (sdh.getLanguage("gateway-apn") + " "        ,
View Full Code Here

Examples of net.rim.device.api.ui.component.CheckboxField

        buttonPanel.add(new SimpleButton("XYZ"));
        _eyelidFieldManager.addBottom(buttonPanel);

        // Add checkbox in non-eyelid region for showing eyelids on user input
        _showOnInputCheckbox =
                new CheckboxField("Show eyelids on user input", true,
                        Field.FIELD_HCENTER);
        _showOnInputCheckbox.setChangeListener(this);
        _eyelidFieldManager.add(_showOnInputCheckbox, 0, 85);

        // Add checkbox in non-eyelid region for locking the eyelids
        _lockCheckbox =
                new CheckboxField("Lock eyelids", false, Field.FIELD_HCENTER);
        _lockCheckbox.setChangeListener(this);
        _eyelidFieldManager.add(_lockCheckbox, 0, 115);

        add(_eyelidFieldManager);
View Full Code Here

Examples of net.rim.device.api.ui.component.CheckboxField

    public ReverseGeocodeScreen() {
        setTitle("Reverse Geocode");

        _editFieldLatitude = new BasicEditField("Latitude: ", "");
        _editFieldLongitude = new BasicEditField("Longitude: ", "");
        _blockingCheckBox = new CheckboxField("Blocking:", false);
        _bearingEditField =
                new BasicEditField("Bearing: ", "-1", 4,
                        BasicEditField.FILTER_INTEGER);

        add(_editFieldLatitude);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.