Package com.onpositive.semantic.model.ui.property.editors

Examples of com.onpositive.semantic.model.ui.property.editors.CompositeEditor


    return r;
  }

  private static CompositeEditor createOptionsPageForBulkImport(
      final Binding bndr) {
    CompositeEditor r = new CompositeEditor(bndr);

    Container c = new Container(Container.GROUP);
    c.setCaption("Output format");
    c.setLayoutManager(new OneElementOnLineLayouter());
    c.add(new ButtonSelector(bndr.getBinding("asCsv"), SWT.RADIO));
    c.add(new ButtonSelector(bndr.getBinding("asXML"), SWT.RADIO));

    r.add(c);
    return r;
  }
View Full Code Here


    r.add(c);
    return r;
  }

  private static CompositeEditor createOptionsPage(final Binding bndr) {
    CompositeEditor r = new CompositeEditor(bndr);
    Container c = new Container(Container.GROUP);
    c.setCaption("Output format");
    c.setLayoutManager(new OneElementOnLineLayouter());
    c.add(new ButtonSelector(bndr.getBinding("asCsv"), SWT.RADIO));
    c.add(new ButtonSelector(bndr.getBinding("asXML"), SWT.RADIO));
    c.add(new ButtonSelector(bndr.getBinding("asBinary"), SWT.RADIO));

    r.add(c);

    Container cm = new Container(Container.GROUP);
    cm.setCaption("Scope of import");
    cm.setLayoutManager(new OneElementOnLineLayouter());
    cm.add(new ButtonSelector(bndr.getBinding("allEntitiesOf"), SWT.RADIO));
    cm.add(new ButtonSelector(bndr.getBinding("selectedEntitiesOf"),
        SWT.RADIO));
    cm.add(new ButtonSelector(bndr.getBinding("entitiesOfSelectedKinds"),
        SWT.RADIO));
    r.add(cm);

    return r;
  }
View Full Code Here

    return r;
  }

  private static CompositeEditor createOptionsPageForExport(final Binding bndr) {
    CompositeEditor r = new CompositeEditor(bndr);
    Container c = new Container(Container.GROUP);
    c.setCaption("Type of import");
    c.setLayoutManager(new OneElementOnLineLayouter());
    c.add(new ButtonSelector(bndr.getBinding("asCsv"), SWT.RADIO));
    c.add(new ButtonSelector(bndr.getBinding("asXML"), SWT.RADIO));
    c.add(new ButtonSelector(bndr.getBinding("asBinary"), SWT.RADIO));

    r.add(c);

    Container cm = new Container(Container.GROUP);
    cm.setCaption("Scope of export");
    cm.setLayoutManager(new OneElementOnLineLayouter());
    cm.add(new ButtonSelector(bndr.getBinding("multiExport"), SWT.CHECK));

    r.add(cm);

    return r;
  }
View Full Code Here

    return r;
  }

  private static CompositeEditor createOptionsPageForBulkExport(
      final Binding bndr) {
    CompositeEditor r = new CompositeEditor(bndr);
    Container c = new Container(Container.GROUP);
    c.setCaption("Type of import");
    c.setLayoutManager(new OneElementOnLineLayouter());
    c.add(new ButtonSelector(bndr.getBinding("asCsv"), SWT.RADIO));
    c.add(new ButtonSelector(bndr.getBinding("asXML"), SWT.RADIO));

    r.add(c);

    // Container cm = new Container(Container.GROUP);
    // cm.setCaption("Scope of export");
    // cm.setLayoutManager(new OneElementOnLineLayouter());
    // cm.add(new ButtonSelector(bndr.getBinding("multiExport"),
View Full Code Here

    return r;
  }

  private static CompositeEditor createColumnsPage(
      final BaseDataFacade facade, final Binding bndr) {
    CompositeEditor m = new CompositeEditor(bndr);
    ListEnumeratedValueSelector<String> mr = new ListEnumeratedValueSelector<String>();
    Binding binding = bndr.getBinding("columns");
    Realm realm = new Realm(facade.getFields());
    binding.setRealm(realm);
    mr.setBinding(binding);
    mr.setAsCheckBox(true);
    m.add(mr);
    return m;
  }
View Full Code Here

    return m;
  }

  private static CompositeEditor createKindsPage(final BaseDataFacade facade,
      final Binding bndr) {
    CompositeEditor m = new CompositeEditor(bndr);
    ListEnumeratedValueSelector<String> mr = new ListEnumeratedValueSelector<String>();
    Binding binding = bndr.getBinding("kinds");
    Realm realm = new Realm(getKnownKinds(facade));
    binding.setRealm(realm);
    mr.setBinding(binding);
    mr.setAsCheckBox(true);
    m.add(mr);
    return m;
  }
View Full Code Here

    options.alwaysUse = alwaysUse;
    Display.getDefault().syncExec(new Runnable() {

      public void run() {
        CompositeEditor compositeEditor = new CompositeEditor(options,
            true);

        Binding binding = (Binding) compositeEditor.getBinding();
        binding.setName("Credentials");
        binding
            .setDescription("Authentification to Google Account for application: "
                + appId);
        compositeEditor.add(new OneLineTextElement<String>(binding
            .getBinding("usId")));
        OneLineTextElement<String> element = new OneLineTextElement<String>(
            binding.getBinding("password"));
        element.setIsPassword(true);
        Binding binding2 = binding.getBinding("alwaysUse");
        binding2
            .setName("Remember password(Could trigger secure storage login)");
        ButtonSelector sl = new ButtonSelector(binding2);
        compositeEditor.add(element);
        compositeEditor.add(sl);

        TitledDialog t = new TitledDialog(compositeEditor);
        DisposeBindingListener.linkBindingLifeCycle(binding,
            compositeEditor);
        int open = t.open();
View Full Code Here

      return new String[] {};
    }
  }

  static WizardPage getKindsSelectingPage(Binding bndr, BaseDataFacade facade) {
    CompositeEditor r = new CompositeEditor(bndr);
    ListEnumeratedValueSelector<String> mr = new ListEnumeratedValueSelector<String>();
    Binding binding = bndr.getBinding("columns");
    Realm realm = new Realm(getKnownKinds(facade));
    binding.setRealm(realm);
    mr.setBinding(binding);
    mr.setAsCheckBox(true);
    r.add(mr);
    BindedWizardPage q = new BindedWizardPage(r);
    return q;
  }
View Full Code Here

    }
  }

  public String[] openDetailDialog(String kind) {
    ApiProxy.setEnvironmentForCurrentThread(new FakeEnvironment(getAppId()));
    CompositeEditor editor = new CompositeEditor();
    final Binding bnd = new Binding(String.class);
    bnd.setName("Key details");

    editor.setBinding(bnd);

    final ListEnumeratedValueSelector<Field> vl = new ListEnumeratedValueSelector<Field>();
    final DetailsFilterDialog dlg = new DetailsFilterDialog(editor, vl);
    vl.setAsCheckBox(true);
    dlg.setResizable(true);
    editor.add(vl);
    final OrderedRealm<Field> realm = new OrderedRealm<Field>();
    bnd.setDescription("Capturing properties...");
    vl.setRealm(realm);

    DisposeBindingListener.linkBindingLifeCycle(bnd, editor);
View Full Code Here

    List<AbstractUIElement<?>> children = root.getChildren();
    for (AbstractUIElement<?> c : children) {
      if (c instanceof IPropertyEditor<?>) {
        IPropertyEditor<?> m = (IPropertyEditor<?>) c;
        if (m instanceof CompositeEditor) {
          CompositeEditor ce = (CompositeEditor) m;
          String idd = ((CompositeEditor) m).getId();
          if (idd != null && idd.equals(id)) {
            AbstractUIElement<?> findEditor = findEditor(ce, id);
            if (findEditor != null) {
              return findEditor;
View Full Code Here

TOP

Related Classes of com.onpositive.semantic.model.ui.property.editors.CompositeEditor

Copyright © 2018 www.massapicom. 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.