Package net.sf.cannagrower.data.event

Source Code of net.sf.cannagrower.data.event.EnvironmentAirState

package net.sf.cannagrower.data.event;

import net.sf.cannagrower.data.Event;
import net.sf.cannagrower.gui.PanelEvent;
import net.sf.cannagrower.i18n.Messages;
import net.sf.orexio.common.Properties;

public class EnvironmentAirState extends Event {
  static final long serialVersionUID = 1L;
 
  public String toString() {
    return toString(
      getProperties().getProperty(Messages.eventAirTemperature)+" / "+
      getProperties().getProperty(Messages.eventAirHygronomy)
      );
  }
 
  public PanelEvent getViewer() {
    return new PanelEvent();
  }
 
  public Properties getProperties() {
    if(properties==null){
      if(super.getProperties()==null){return null;}
      properties.setProperty(Messages.eventAirTemperature, "20 \u00B0C");
      properties.setProperty(Messages.eventAirHygronomy, "50 \u0025");
    }
    return properties;
 
}
TOP

Related Classes of net.sf.cannagrower.data.event.EnvironmentAirState

TOP
Copyright © 2018 www.massapi.com. 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.