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