Package clips.directory

Source Code of clips.directory.DialogDirectoryVidal

/*
* 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.complex.DirectoryVidalItem;
import cli_fmw.main.ClipsException;
import cli_fmw.utils.table_config_states.StateSaver;
import clips.delegate.directory.complex.DirectoryVidal;
import framework.beans.directory.DirectoryItemDetails;
import java.awt.Frame;

/**
*
* @author axe
*/
public class DialogDirectoryVidal
        extends DialogDirectoryTitleOnlyM<DirectoryVidalItem, DirectoryVidal>{

    public DialogDirectoryVidal(Frame parent, DirectoryVidal directory, String currentValue)
            throws ClipsException {
        super(parent, directory, currentValue, true);
    StateSaver.attachTo(this);
    }

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


}
TOP

Related Classes of clips.directory.DialogDirectoryVidal

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.