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;
}
}