/*
* Copyright 2015 Mirosław Romaniuk (mi9rom@gmail.com)
*
* Licensed 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 com.vaadHL.window.customize;
/**
* Simple implementation of the {@link ICustomizeWin} base window customization
* interface.
*
* @author Miroslaw Romaniuk
*
*/
public class CustomizeBaseWin implements ICustomizeWin {
private boolean autoSaveState;
private boolean autoRestoreState;
private boolean showMenu;
public CustomizeBaseWin() {
setDefault();
}
void setDefault() {
autoSaveState = false;
autoRestoreState = false;
showMenu = true;
}
@Override
public boolean isAutoSaveState() {
return autoSaveState;
}
public void setAutoSaveState(boolean autoSaveState) {
this.autoSaveState = autoSaveState;
}
@Override
public boolean isAutoRestoreState() {
return autoRestoreState;
}
public void setAutoRestoreState(boolean autoRestoreState) {
this.autoRestoreState = autoRestoreState;
}
@Override
public boolean isShowMenu() {
return showMenu;
}
public void setShowMenu(boolean showMenu) {
this.showMenu = showMenu;
}
}