nu.zoom.swing.desktop.component.stringmenu.StringMenuFactory Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of filechooser Show documentation
Show all versions of filechooser Show documentation
A zoom.nu desktop plugin that makes the stock java filechooser remember where it was the last time.
The newest version!
/*
* Copyright (C) 2006 Johan Maasing johan at zoom.nu 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 nu.zoom.swing.desktop.component.stringmenu;
import java.io.Serializable;
/**
* Creates string menues.
*
*/
public interface StringMenuFactory {
/**
* Get a menu. The menu will be cached with the preferenceKey as the cache
* key, subsequent calls to this method with the same preference key will
* always return the same menu instance.
*
* @param clazz
* The that is the value of the menu items.
* @param preferenceKey
* The key to use to store the menu when the application shuts
* down. Will be used to restore the menu when it is created.
* @return A StringMenu
*/
public & Serializable> StringMenu getMenu(
Class clazz, String preferenceKey);
}