Example usage for com.jgoodies.binding PresentationModel PresentationModel

List of usage examples for com.jgoodies.binding PresentationModel PresentationModel

Introduction

In this page you can find the example usage for com.jgoodies.binding PresentationModel PresentationModel.

Prototype

public PresentationModel(ValueModel beanChannel, ValueModel triggerChannel) 

Source Link

Document

Constructs a PresentationModel on the given bean channel using the given trigger channel.

Usage

From source file:ch.fork.AdHocRailway.ui.locomotives.configuration.LocomotiveConfig.java

License:Open Source License

private void init(LocomotiveContext ctx, Locomotive myLocomotive, LocomotiveGroup selectedLocomotiveGroup,
        boolean createLocomotive) {
    this.ctx = ctx;
    this.createLocomotive = createLocomotive;
    this.selectedLocomotiveGroup = selectedLocomotiveGroup;
    this.presentationModel = new PresentationModel<Locomotive>(myLocomotive, trigger);
    initGUI();/*  w  ww  .  j a  v  a  2s  .c o  m*/
}

From source file:ch.fork.AdHocRailway.ui.routes.configuration.RouteConfig.java

License:Open Source License

private void init(final RouteContext ctx, final Route myRoute, final RouteGroup selectedRouteGroup,
        boolean createRoute) {
    this.routeContext = ctx;
    this.createRoute = createRoute;
    routeManager = ctx.getRouteManager();
    turnoutManager = ctx.getTurnoutManager();

    testRoute = RouteHelper.copyRoute(myRoute);
    this.selectedRouteGroup = selectedRouteGroup;
    this.presentationModel = new PresentationModel<Route>(myRoute, trigger);
    initGUI();//  www  .  j ava2s .c o m
}

From source file:ch.fork.AdHocRailway.ui.turnouts.configuration.TurnoutConfig.java

License:Open Source License

private void init(final TurnoutContext ctx, final Turnout myTurnout, final TurnoutGroup selectedTurnoutGroup,
        boolean createTurnout) {
    this.ctx = ctx;
    this.createTurnout = createTurnout;

    turnoutManager = ctx.getTurnoutManager();
    testTurnout = TurnoutHelper.copyTurnout(myTurnout);
    this.presentationModel = new PresentationModel<Turnout>(myTurnout, trigger);
    this.selectedTurnoutGroup = selectedTurnoutGroup;
    initGUI();/*from  w  ww. j a v  a  2  s. co  m*/
}

From source file:cz.vity.freerapid.gui.dialogs.SubmitErrorDialog.java

private void buildGUI() {
    model = new PresentationModel<SubmitErrorInfo>(errorInfo, new Trigger());
    Bindings.bind(fieldName, model.getBufferedModel("name"));
    Bindings.bind(fieldEmail, model.getBufferedModel("email"));
    Bindings.bind(commentTextArea, model.getBufferedModel("comment"));
}