Examples of Owner


Examples of org.springframework.samples.petclinic.Owner

        private CompositeDialogPage compositePage;

        private TitledPageApplicationDialog dialog;

        private void createDialog() {
            ownerFormModel = FormModelHelper.createCompoundFormModel(new Owner());
            ownerGeneralForm = new OwnerGeneralForm(FormModelHelper.createChildPageFormModel(ownerFormModel, null));

            compositePage = new TabbedDialogPage("ownerProperties");
            compositePage.addForm(ownerGeneralForm);
            compositePage.addForm(new OwnerAddressForm(FormModelHelper.createChildPageFormModel(ownerFormModel, null)));

            dialog = new TitledPageApplicationDialog(compositePage, getWindowControl(), CloseAction.HIDE) {
                protected void onAboutToShow() {
                    ownerGeneralForm.requestFocusInWindow();
                    setEnabled(compositePage.isPageComplete());
                }

                protected boolean onFinish() {
                    ownerFormModel.commit();
                    Owner owner = (Owner)ownerGeneralForm.getFormObject();
                    clinic.storeOwner(owner);
                    ownersTreeModel.nodeChanged(getSelectedOwnerNode());
                    return true;
                }
            };
View Full Code Here

Examples of org.springframework.samples.petclinic.Owner

    }

    public void execute() {
        if (wizardDialog == null) {
            wizardForm = new CompoundForm();
            wizardForm.setFormObject(new Owner());
            wizardDialog = new WizardDialog(this);
        }
        wizardForm.setFormObject(new Owner());
        wizardDialog.showDialog();
    }
View Full Code Here

Examples of org.springframework.samples.petclinic.Owner

        wizardForm.setFormObject(new Owner());
        wizardDialog.showDialog();
    }

    protected boolean onFinish() {
        Owner newOwner = getNewOwner();
        clinic.storeOwner(newOwner);
        getApplicationContext()
                .publishEvent(new LifecycleApplicationEvent(LifecycleApplicationEvent.CREATED, newOwner));
        return true;
    }
View Full Code Here

Examples of org.springframework.samples.petclinic.model.Owner

     * Loads the {@link Owner} with the supplied <code>id</code>; also loads the {@link Pet Pets} and {@link Visit Visits}
     * for the corresponding owner, if not already loaded.
     */
    @Override
    public Owner findById(int id) throws DataAccessException {
        Owner owner;
        try {
            Map<String, Object> params = new HashMap<String, Object>();
            params.put("id", id);
            owner = this.namedParameterJdbcTemplate.queryForObject(
                    "SELECT id, first_name, last_name, address, city, telephone FROM owners WHERE id= :id",
View Full Code Here

Examples of org.togglz.core.annotation.Owner

        }
        return feature.name();
    }

    public static String getOwner(Feature feature) {
        Owner owner = getAnnotation(feature, Owner.class);
        if (owner != null) {
            return owner.value();
        }
        return null;
    }
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.