Package de.chris_soft.fyllgen.widget

Examples of de.chris_soft.fyllgen.widget.FamilyComposite


        // Alle Personen ggf. in einer Datei ausgeben.
        if (OptionData.instance.getBoolean(OptionData.WRITE_SHORT_CONNECTIONS_INTO_FILE)) {
          writeShortConnectionIntoFile(listFound);
        }

        FamilyComposite familyComposite = GUI.instance.getFamilyComposite();
        familyComposite.setFamilyModel(new FamilyModelShowPersonsConnection(familyComposite, listFound));
      }
      else {
        String msg = "Es besteht keine Verbindung zwischen " + currentPerson.getValue(Person.NAME);
        msg += " und " + searchPerson.getValue(Person.NAME) + "!";
        SwtUtilities.sayInfo(GUI.instance.shell, msg);
View Full Code Here


  /**
   * Setzt die Standard-Familienansicht.
   * @see org.eclipse.swt.widgets.Listener#handleEvent(org.eclipse.swt.widgets.Event)
   */
  public void handleEvent(Event event) {
    FamilyComposite familyComposite = GUI.instance.getFamilyComposite();
    familyComposite.setFamilyModel(new FamilyModelStandard(familyComposite));
  }
View Full Code Here

  /**
   * Stammansicht setzen.
   * @see org.eclipse.swt.widgets.Listener#handleEvent(org.eclipse.swt.widgets.Event)
   */
  public void handleEvent(Event event) {
    FamilyComposite familyComposite = GUI.instance.getFamilyComposite();
    familyComposite.setFamilyModel(new FamilyModelUniSex(familyComposite));
  }
View Full Code Here

   * @param askForViewChange (0) Kein Wechsel der Ansicht, (1) evtl. nach
   *          Wechsel fragen, (2) unbedingt wechseln falls notwendig.
   */
  public void setCurrentPerson(Person person, int askForViewChange) {
    // Erstmal pr�fen, ob wir eventuell das Modell anpassen m�ssen.
    FamilyComposite familyComposite = GUI.instance.getFamilyComposite();
    FamilyModel familyModel = familyComposite.getFamilyModel();
    if (askForViewChange > 0 && !(familyModel instanceof FamilyModelStandard)) {
      String quest = "Wollen Sie in die Standardansicht wechseln?";
      if (askForViewChange == 2 || SwtUtilities.askYesNo(GUI.instance.shell, quest, "Ansichtenwechsel?")) {
        familyComposite.setFamilyModel(new FamilyModelStandard(familyComposite));
      }
    }

    currentPerson = person;
    sendCurrentPersonChangeListenerEvent(new CurrentPersonChangeEvent(person));
View Full Code Here

    scrollerFamilyComposite = new ScrolledComposite(shell, SWT.BORDER | SWT.H_SCROLL | SWT.V_SCROLL);
    scrollerFamilyComposite.getVerticalBar().setIncrement(10);
    scrollerFamilyComposite.getVerticalBar().setPageIncrement(100);
    scrollerFamilyComposite.getHorizontalBar().setIncrement(10);
    scrollerFamilyComposite.getHorizontalBar().setPageIncrement(100);
    familyComposite = new FamilyComposite(scrollerFamilyComposite);
    scrollerFamilyComposite.setContent(familyComposite);
    scrollerFamilyComposite.setExpandVertical(true);
    scrollerFamilyComposite.setExpandHorizontal(true);

    // Mausrad soll innerhalb der Shell wirken.
View Full Code Here

TOP

Related Classes of de.chris_soft.fyllgen.widget.FamilyComposite

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.