/*
* 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));
}
}
}