Package no.ugland.utransprod.model

Examples of no.ugland.utransprod.model.Transport


    public void actionPerformed(ActionEvent arg0) {
      if (selectedTransportViewHandlers.size() != 1) {
        Util.showErrorDialog(window, "Feil",
            "Det kan bare velges en transport for editering");
      } else {
        Transport transport = selectedTransportViewHandlers.keySet()
            .iterator().next();
        openEditView(transport);
        selectedTransportViewHandlers.clear();
      }
View Full Code Here


    /**
     * @see java.beans.PropertyChangeListener#propertyChange(java.beans.PropertyChangeEvent)
     */
    public void propertyChange(PropertyChangeEvent event) {
      Transport changedTransport = ((TransportModel) event.getSource())
          .getObject();
      if (event.getNewValue() != null && (Boolean) event.getNewValue()) {
        changedTransportViewHandlers.put(changedTransport,
            transportViewHandlers.get(changedTransport));
        fireTransportChange(true);
View Full Code Here

public class TransportableComparator implements Comparator<Transportable> {

    public final int compare(final Transportable transportable1,
            final Transportable transportable2) {
        Transport transport1 = transportable1.getTransport();
        Transport transport2 = transportable2.getTransport();
        if (transport1 != null && transport2 != null) {
            return new CompareToBuilder().append(transport1.getTransportYear(),
                    transport2.getTransportYear()).append(
                    transport1.getTransportWeek(),
                    transport2.getTransportWeek()).append(
                    transport1.getLoadingDate(), transport2.getLoadingDate())
                    .append(transport1.getTransportName(),
                            transport2.getTransportName()).toComparison();

        } else if (transport1 != null) {
            return -1;
        } else if (transport2 != null) {
            return 1;
View Full Code Here

TOP

Related Classes of no.ugland.utransprod.model.Transport

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.