Created
May 3, 2018 08:51
-
-
Save mkarneim/c87955994f49de7c21e1d7949cd9c16a to your computer and use it in GitHub Desktop.
Beanfabrics Example ....
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package de.sanacorp.zado.client.dokument.browse; | |
| import org.beanfabrics.model.IntegerPM; | |
| import org.beanfabrics.model.PMManager; | |
| import org.beanfabrics.model.PresentationModel; | |
| import org.beanfabrics.model.TextPM; | |
| import de.sanacorp.appframeworkfx.pm.quickfilter.QuickFilterablePM; | |
| import de.sanacorp.zado.common.dokument.browse.DokumentRowDto; | |
| /** | |
| * Das {@link DokumentRowPM} ist das {@link PresentationModel} eines Dokuments im {@link DokumentMapPM}. | |
| */ | |
| public class DokumentRowPM extends QuickFilterablePM { | |
| private DokumentRowDto data; | |
| IntegerPM dokumentenNr = new IntegerPM(); | |
| TextPM name = new TextPM(); | |
| TextPM darreichungsform = new TextPM(); | |
| TextPM hersteller = new TextPM(); | |
| TextPM land = new TextPM(); | |
| public DokumentRowPM(DokumentRowDto data) { | |
| PMManager.setup(this); | |
| setData(data); | |
| } | |
| public DokumentRowDto getData() { | |
| return data; | |
| } | |
| private void setData(DokumentRowDto data) { | |
| this.data = data; | |
| dokumentenNr.setLong(data.id.getLong()); | |
| name.setText(data.name); | |
| darreichungsform.setText(data.darreichungsform); | |
| hersteller.setText(data.hersteller); | |
| land.setText(data.land); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment