Package clips.directory

Source Code of clips.directory.DialogDirectoryMatter

/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/

package clips.directory;

import cli_fmw.directory.DialogDirectoryTitleOnlyM;
import clips.delegate.directory.filtered.DirectoryMatterItem;
import cli_fmw.main.ClipsException;
import cli_fmw.utils.table_config_states.StateSaver;
import clips.delegate.directory.filtered.DirectoryMatter;
import framework.beans.directory.DirectoryItemDetails;
import java.awt.Frame;

/**
*
* @author axe
*/
public class DialogDirectoryMatter
        extends DialogDirectoryTitleOnlyM<DirectoryMatterItem, DirectoryMatter>{

    public DialogDirectoryMatter(Frame parent, DirectoryMatter directory, String currentValue, boolean withNull) throws ClipsException {
        super(parent, directory, currentValue, withNull);
    StateSaver.attachTo(this);
    }

    @Override
    protected DirectoryMatterItem getNewItem(String title) {
        if (title == null || title.trim().isEmpty()) {
            return null;
        } else {
            return new DirectoryMatterItem(new DirectoryItemDetails(0, title));
        }
    }
}
TOP

Related Classes of clips.directory.DialogDirectoryMatter

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.