Package no.ugland.utransprod.model

Examples of no.ugland.utransprod.model.Info


    /**
     * @see no.ugland.utransprod.gui.handlers.AbstractViewHandler#getNewObject()
     */
    @Override
    public Info getNewObject() {
        return new Info();
    }
View Full Code Here


         * @param rowIndex
         * @param columnIndex
         * @return verdi
         */
        public Object getValueAt(int rowIndex, int columnIndex) {
            Info info = (Info) getRow(rowIndex);
            switch (columnIndex) {
            case 0:
                return info.getInfoText();
            case 1:
                return info.getDateFrom();
            case 2:
                return info.getDateTo();
            default:
                throw new IllegalStateException("Unknown column");
            }

        }
View Full Code Here

  /**
   * @see no.ugland.utransprod.gui.model.AbstractModel#getBufferedObjectModel(com.jgoodies.binding.PresentationModel)
   */
  @Override
  public InfoModel getBufferedObjectModel(PresentationModel presentationModel) {
    InfoModel infoModel = new InfoModel(new Info());
    infoModel.setDateFrom((Date) presentationModel
        .getBufferedValue(PROPERTY_DATE_FROM));
    infoModel.setDateTo((Date) presentationModel
        .getBufferedValue(PROPERTY_DATE_TO));
    infoModel.setInfoText((String) presentationModel
View Full Code Here

            for (Info info : list) {
                buffer.append(info.getInfoText()).append("\n");
                texts.add(info.getInfoText());
            }
        }
        return new Info(null, buffer.toString(), null, null);
    }
View Full Code Here

TOP

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

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.