Package no.ugland.utransprod.model

Examples of no.ugland.utransprod.model.Produceable


      super("Sett dato..");
      window = aWindow;
    }

    public void actionPerformed(ActionEvent e) {
      Produceable produceable = getSelectedProduceable();
      if (produceable != null) {
        produceable.setProduced(Util.getDate(window));
      }

    }
View Full Code Here


              customerNr,
              (ProductAreaGroup) productAreaGroupModel
                  .getValue(ProductAreaGroupModel.PROPERTY_PRODUCT_AREA_GROUP));
      objectSelectionList.clearSelection();

      Produceable produceable = getSearchObject(window, produceables);
      if (produceable != null) {
        int selectedIndex = objectList.indexOf(produceable);
        table.getSelectionModel().setSelectionInterval(
            table.convertRowIndexToView(selectedIndex),
            table.convertRowIndexToView(selectedIndex));
View Full Code Here

     * @param rowIndex
     * @param columnIndex
     * @return verdi
     */
    public Object getValueAt(final int rowIndex, final int columnIndex) {
      Produceable produceable = (Produceable) getRow(rowIndex);
      DecimalFormat decimalFormat = new DecimalFormat();
      decimalFormat.setDecimalSeparatorAlwaysShown(false);
      decimalFormat.setParseIntegerOnly(true);

      switch (columnIndex) {
      case 0:
        return produceable.getTransportDetails();
      case 1:
        return produceable;
      case 2:
        return Util.formatDate(produceable.getProductionDate(),
            Util.SHORT_DATE_FORMAT);
      case 3:
        if (produceable.getNumberOfItems() != null) {
          return decimalFormat.format(produceable.getNumberOfItems());
        }
        return "";
      case 4:
        return Util.removeNoAttributes(produceable.getAttributeInfo());
      case 5:

        Date loadingDate = produceable.getLoadingDate();
        if (loadingDate != null) {
          return Util.SHORT_DATE_FORMAT.format(loadingDate);
        }
        return null;

      case 6:
        if (produceable.getProduced() != null) {
          return Util.SHORT_DATE_FORMAT.format(produceable
              .getProduced());
        }
        return "---";
      case 7:
        if (produceable.getProductAreaGroupName() != null) {
          return produceable.getProductAreaGroupName();
        }
        return "";
      case 8:
        return produceable.getProductionUnitName();
      case 9:
        if (produceable.getActionStarted() != null) {
          return Util.SHORT_DATE_FORMAT.format(produceable
              .getActionStarted());
        }
        return "---";
      default:
        throw new IllegalStateException("Unknown column");
View Full Code Here

TOP

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

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.