Package no.ugland.utransprod.model

Examples of no.ugland.utransprod.model.DeviationStatus


  @Override
  public DeviationStatusModel getBufferedObjectModel(
      PresentationModel presentationModel) {

    DeviationStatusModel model = new DeviationStatusModel(
        new DeviationStatus());
    model.setDeviationStatusDescription((String) presentationModel
        .getBufferedValue(PROPERTY_DEVIATION_STATUS_DESCRIPTION));
    model.setDeviationStatusName((String) presentationModel
        .getBufferedValue(PROPERTY_DEVIATION_STATUS_NAME));
    model.setForManagerBool((Boolean) presentationModel
View Full Code Here


   
    public DeviationStatus getDeviationStatus(){
      return object.getDeviationStatus();
    }
    public void setDeviationStatus(DeviationStatus status){
      DeviationStatus oldStatus=getDeviationStatus();
      object.setDeviationStatus(status);
      firePropertyChange(PROPERTY_DEVIATION_STATUS, oldStatus, status);
    }
View Full Code Here

    /**
     * @param deviationStatus
     */
    public void setDeviationStatus(DeviationStatus deviationStatus) {
        DeviationStatus oldStatus = getDeviationStatus();
        object.setDeviationStatus(deviationStatus);
        firePropertyChange(PROPERTY_DEVIATION_STATUS, oldStatus,
                deviationStatus);
    }
View Full Code Here

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

         * @param rowIndex
         * @param columnIndex
         * @return verdi
         */
        public Object getValueAt(int rowIndex, int columnIndex) {
            DeviationStatus deviationStatus = (DeviationStatus) getRow(rowIndex);
            String columnName = StringUtils.upperCase(getColumnName(columnIndex)).replaceAll(" ", "_");
            return DeviationStatusColumn.valueOf(columnName).getValue(deviationStatus);
        }
View Full Code Here

      deviationStatusList.add(0, null);
  }
 
  public JComboBox getComboBoxStatus(PresentationModel presentationModel) {
    initDeviationStatusList();
    DeviationStatus status = (DeviationStatus) presentationModel
        .getBufferedValue(AccidentModel.PROPERTY_DEVIATION_STATUS);
    JComboBox comboBox = new JComboBox(
        new ComboBoxAdapter(
            deviationStatusList,
            presentationModel
View Full Code Here

    public final DeviationStatus getDeviationStatus() {
        return deviationStatus;
    }

    public final void setDeviationStatus(final DeviationStatus aDeviationStatus) {
        DeviationStatus oldStatus = getDeviationStatus();
        this.deviationStatus = aDeviationStatus;
        firePropertyChange(PROPERTY_DEVIATION_STATUS, oldStatus,
                aDeviationStatus);
    }
View Full Code Here

    public void propertyChange(PropertyChangeEvent evt) {
      String closedDate = (String) presentationModel
          .getBufferedValue(DeviationModel.PROPERTY_DATE_CLOSED_STRING);
      if (closedDate == null) {
        DeviationStatus status = (DeviationStatus) presentationModel
            .getBufferedValue(DeviationModel.PROPERTY_DEVIATION_STATUS);
        if (Util.convertNumberToBoolean(status != null ? status
            .getDeviationDone() : null)) {
          presentationModel.setBufferedValue(
              DeviationModel.PROPERTY_DATE_CLOSED_STRING, Util
                  .getCurrentDateAsDateString());
        }
View Full Code Here

   * @return komboboks
   */
  public JComboBox getComboBoxStatus(PresentationModel presentationModel) {
    boolean isManager = initDeviationStatusList((JobFunction) presentationModel
        .getBufferedValue(DeviationModel.PROPERTY_DEVIATION_FUNCTION));
    DeviationStatus status = (DeviationStatus) presentationModel
        .getBufferedValue(DeviationModel.PROPERTY_DEVIATION_STATUS);
    JComboBox comboBox = new JComboBox(
        new ComboBoxAdapter(
            deviationStatusList,
            presentationModel
                .getBufferedModel(DeviationModel.PROPERTY_DEVIATION_STATUS)));
    if (status != null
        && Util.convertNumberToBoolean(status.getForManager())
        && !isManager) {
      comboBox.setEnabled(false);
    } else {
      comboBox.setEnabled(hasWriteAccess());
    }
View Full Code Here

TOP

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

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.