class JobTreeTableBean implements Serializable {

    public void setRefreshTimeSeconds(String refreshTimeSeconds) {
        if (NumberUtils.isCreatable(refreshTimeSeconds)) {
            int num = Integer.parseInt(refreshTimeSeconds);
            if (num >= MIN_REFRESH) {
                refreshInterval = num;
                this.refreshTimeSeconds = refreshTimeSeconds;
            } else {
                messages.warn("Refresh Interval must be at least " + MIN_REFRESH + " seconds.");
            }
        } else if (StringUtils.isEmpty(refreshTimeSeconds)) {
            refreshInterval = 0;
            this.refreshTimeSeconds = refreshTimeSeconds;
        } else {
            messages.warn("Refresh Interval must be an interger with a minimum value of " + MIN_REFRESH + " seconds.");
        }
    }

}