blob: 87d2c203e343b725fc86fd3c81872a8655057089 [file] [log] [blame]
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.myfaces.tobago.example.sandbox;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.text.SimpleDateFormat;
import java.util.Date;
public class Controller {
private static final Logger LOG = LoggerFactory.getLogger(Controller.class);
private int sliderValue;
private String[] shuffleValue;
private String splitLayout1 = "1*;1*";
private String splitLayout2 = "1*;1*";
public String action1() {
LOG.info("action 1");
return null;
}
public String action2() {
LOG.info("action 2");
return null;
}
public String action3() {
LOG.info("action 3");
return null;
}
public String getCurrentTime() {
return new SimpleDateFormat("hh:MM:ss").format(new Date());
}
public int getSliderValue() {
return sliderValue;
}
public void setSliderValue(final int sliderValue) {
this.sliderValue = sliderValue;
}
public String sliderSubmit() {
LOG.info("Slider: " + sliderValue);
return null;
}
public String[] getShuffleValue() {
return shuffleValue;
}
public void setShuffleValue(final String[] shuffleValue) {
this.shuffleValue = shuffleValue;
}
public String submit() {
return null;
}
public String getSplitLayout1() {
return splitLayout1;
}
public void setSplitLayout1(final String splitLayout1) {
this.splitLayout1 = splitLayout1;
}
public String getSplitLayout2() {
return splitLayout2;
}
public void setSplitLayout2(final String splitLayout2) {
this.splitLayout2 = splitLayout2;
}
}