Package org.qi4j.sample.dcicargo.sample_b.infrastructure.wicket.color

Examples of org.qi4j.sample.dcicargo.sample_b.infrastructure.wicket.color.ErrorColor


                item.add( new Label( "destination", destination ) );

                item.add( new Label( "deadline", new Model<Date>( deadline ) ) );

                item.add( new Label( "routingStatus", routingStatus.toString() ).add( new ErrorColor( isMisrouted ) ) );

                String customsLabel = transportStatus.name() + ( inCustoms ? " (CUSTOMS)" : "" );
                item.add( new Label( "transportStatus", customsLabel ).add( new ErrorColor( isHiJacked ) ) );

                String directed = isMisdirected ? "Misdirected" : "On track";
                item.add( new Label( "deliveryStatus", directed ).add( new ErrorColor( isMisdirected ) ) );
            }
        } );
    }
View Full Code Here


        add( new Label( "departure", Model.of( routeSpecification.earliestDeparture().get() ) ) );
        add( new Label( "destination", routeSpecification.destination()
            .get()
            .getString() ).add( new CorrectColor( isMisrouted ) ) );
        add( new Label( "deadline", Model.of( routeSpecification.arrivalDeadline().get() ) ) );
        add( new Label( "routingStatus", routingStatus.toString() ).add( new ErrorColor( isMisrouted ) ) );
        add( new LinkPanel( "changeDestination", ChangeDestinationPage.class, trackingId, "Change destination" ) );

        if( transportStatus.equals( CLAIMED ) )
        {
            // Can't re-route claimed cargo
View Full Code Here

                    item.add( new Label( "loadTime", new Model<Date>( leg.loadTime().get() ) ) );
                    item.add( new Label( "voyage", leg.voyage().get().voyageNumber().get().number().get() ) );

                    Boolean isMisrouted = routingStatus == MISROUTED && item.getIndex() == ( getList().size() - 1 );
                    item.add( new Label( "unloadLocation", leg.unloadLocation().get().getCode() )
                                  .add( new ErrorColor( isMisrouted ) ) );

                    item.add( new Label( "unloadTime", new Model<Date>( leg.unloadTime().get() ) ) );
                }
            } );
        }
View Full Code Here

                {
                    map.put( "voyage", event.voyage().get().voyageNumber().get().number().get() );
                }
                IModel text = new StringResourceModel( "handlingEvent.${type}", this, new Model<ValueMap>( map ) );
                item.add( new Label( "event", text )
                              .add( new ErrorColor( isLast && isMisdirected ) )
                              .setEscapeModelStrings( false ) );
            }
        } );
    }
View Full Code Here

TOP

Related Classes of org.qi4j.sample.dcicargo.sample_b.infrastructure.wicket.color.ErrorColor

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.