Package de.chris_soft.fyllgen.widget.person

Examples of de.chris_soft.fyllgen.widget.person.PersonOption


      // Optionen zur Auswahl.
      else if (atom.type.equals("option")) {
        if (relationshipType == null) {
          CurrentPersonChangeListener cpcl =
            new PersonOption(parentComposite, atom.name, atom.keys, atom.values, "?", viewData);
          cpcl.setCurrentPersonChanger(currentPersonChanger);
        }
        else {
          RelationshipChangeListener rcl =
            new RelationshipOption(parentComposite, atom.name, atom.keys, atom.values, "?", viewData);
          rcl.setRelationshipChanger(relationshipChanger);
        }
      }

      // Personen-ComboBox.
      else if (atom.type.equals("personcombo")) {
        if (relationshipChanger == null) {
          // Ein Composite erzeugen, in dem die ComboBox und ein Button zum
          // Wechsel liegen.
          Composite c2 = new Composite(parentComposite, 0);
          GridData gd = new GridData(SWT.FILL, SWT.CENTER, true, false);
          c2.setLayoutData(gd);
          GridLayout gl = new GridLayout();
          gl.numColumns = 2;
          gl.marginHeight = gl.marginWidth = 0;
          c2.setLayout(gl);

          // ComboBox im inneren Composite erzeugen.
          PersonRelationCombo personRelationCombo = new PersonRelationCombo(c2, relationshipType);
          CurrentPersonChangeListener cpcl = personRelationCombo;
          gd = new GridData(SWT.FILL, SWT.CENTER, true, false);
          cpcl.getControl().setLayoutData(gd);
          cpcl.setCurrentPersonChanger(currentPersonChanger);

          // ComboBox als Personenbeziehungsbox merken.
          relationshipChanger = (PersonRelationCombo) cpcl;

          // Schlie�lich noch der Button zum Personen-Wechsel.
View Full Code Here


      // Optionen zur Auswahl.
      else if (atom.type.equals("option")) {
        if (relationshipType == null) {
          CurrentPersonChangeListener cpcl =
            new PersonOption(parentComposite, atom.name, atom.keys, atom.values, "?", viewData);
          cpcl.setCurrentPersonChanger(currentPersonChanger);
        }
        else {
          RelationshipChangeListener rcl =
            new RelationshipOption(parentComposite, atom.name, atom.keys, atom.values, "?", viewData);
          rcl.setRelationshipChanger(relationshipChanger);
        }
      }

      // Personen-ComboBox.
      else if (atom.type.equals("personcombo")) {
        if (relationshipChanger == null) {
          // Ein Composite erzeugen, in dem die ComboBox und ein Button zum
          // Wechsel liegen.
          Composite c2 = new Composite(parentComposite, 0);
          GridData gd = new GridData(SWT.FILL, SWT.CENTER, true, false);
          c2.setLayoutData(gd);
          GridLayout gl = new GridLayout();
          gl.numColumns = 2;
          gl.marginHeight = gl.marginWidth = 0;
          c2.setLayout(gl);

          // ComboBox im inneren Composite erzeugen.
          PersonRelationCombo personRelationCombo = new PersonRelationCombo(c2, relationshipType);
          CurrentPersonChangeListener cpcl = personRelationCombo;
          gd = new GridData(SWT.FILL, SWT.CENTER, true, false);
          cpcl.getControl().setLayoutData(gd);
          cpcl.setCurrentPersonChanger(currentPersonChanger);

          // ComboBox als Personenbeziehungsbox merken (f�r weitere zu
          // erstellendes Controls).
          relationshipChanger = (PersonRelationCombo) cpcl;
View Full Code Here

TOP

Related Classes of de.chris_soft.fyllgen.widget.person.PersonOption

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.