com.alee.extended.split.MultiSplitState Maven / Gradle / Ivy
The newest version!
/*
* This file is part of WebLookAndFeel library.
*
* WebLookAndFeel library is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* WebLookAndFeel library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with WebLookAndFeel library. If not, see .
*/
package com.alee.extended.split;
import com.alee.api.merge.Mergeable;
import com.thoughtworks.xstream.annotations.XStreamAlias;
import com.thoughtworks.xstream.annotations.XStreamImplicit;
import java.io.Serializable;
import java.util.List;
/**
* {@link Serializable} state object for {@link WebMultiSplitPane}.
* It can be used to save and restore {@link MultiSplitView}s state in runtime.
*
* @author Mikle Garin
* @see How to use WebMultiSplitPane
* @see WebMultiSplitPane
* @see How to use SettingsManager
* @see MultiSplitPaneSettingsProcessor
* @see com.alee.managers.settings.UISettingsManager
* @see com.alee.managers.settings.SettingsManager
* @see com.alee.managers.settings.SettingsProcessor
*/
@XStreamAlias ( "MultiSplitState" )
public class MultiSplitState implements Mergeable, Cloneable, Serializable
{
/**
* {@link List} of {@link MultiSplitViewState}.
*/
@XStreamImplicit
protected List states;
/**
* Returns {@link List} of {@link MultiSplitViewState}.
*
* @return {@link List} of {@link MultiSplitViewState}
*/
public List states ()
{
return states;
}
/**
* Sets {@link List} of {@link MultiSplitViewState}.
*
* @param states {@link List} of {@link MultiSplitViewState}
*/
public void setStates ( final List states )
{
this.states = states;
}
}