当前位置: 首页>>代码示例>>Java>>正文


Java ModelessDialog类代码示例

本文整理汇总了Java中org.esa.snap.ui.ModelessDialog的典型用法代码示例。如果您正苦于以下问题:Java ModelessDialog类的具体用法?Java ModelessDialog怎么用?Java ModelessDialog使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


ModelessDialog类属于org.esa.snap.ui包,在下文中一共展示了ModelessDialog类的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: addIcon

import org.esa.snap.ui.ModelessDialog; //导入依赖的package包/类
protected void addIcon(final ModelessDialog dlg) {
    String iconName = getIcon();
    if (iconName == null) {
        //setIcon(dlg, IconUtils.esaPlanetIcon);
    } else if (iconName.equals("esaIcon")) {
        setIcon(dlg, esaPlanetIcon);
    } else if (iconName.equals("rstbIcon")) {
        setIcon(dlg, rstbIcon);
    } else if (iconName.equals("geoAusIcon")) {
        setIcon(dlg, geoAusIcon);
    } else {
        final ImageIcon icon = UIUtils.loadImageIcon(iconName, OperatorAction.class);
        if (icon != null)
            setIcon(dlg, icon);
    }
}
 
开发者ID:senbox-org,项目名称:snap-desktop,代码行数:17,代码来源:OperatorAction.java

示例2: createOperatorDialog

import org.esa.snap.ui.ModelessDialog; //导入依赖的package包/类
@Override
protected ModelessDialog createOperatorDialog() {
    RadiometricIndicesDialog productDialog = new RadiometricIndicesDialog(getOperatorName(), getAppContext(), getDialogTitle(), getHelpId());
    if (getTargetProductNameSuffix() != null) {
        productDialog.setTargetProductNameSuffix(getTargetProductNameSuffix());
    }
    return productDialog;
}
 
开发者ID:senbox-org,项目名称:s2tbx,代码行数:9,代码来源:RadiometricOperatorAction.java

示例3: createOperatorDialog

import org.esa.snap.ui.ModelessDialog; //导入依赖的package包/类
@Override
protected ModelessDialog createOperatorDialog() {
    GenericRegionMergingTargetProductDialog productDialog = new GenericRegionMergingTargetProductDialog(getOperatorName(), getAppContext(), getDialogTitle(), getHelpId());
    if (getTargetProductNameSuffix() != null) {
        productDialog.setTargetProductNameSuffix(getTargetProductNameSuffix());
    }
    return productDialog;
}
 
开发者ID:senbox-org,项目名称:s2tbx,代码行数:9,代码来源:GenericRegionMergingOperatorAction.java

示例4: createOperatorDialog

import org.esa.snap.ui.ModelessDialog; //导入依赖的package包/类
@Override
protected ModelessDialog createOperatorDialog() {
    ReflectanceTargetProductDialog productDialog = new ReflectanceTargetProductDialog(getOperatorName(), getAppContext(), getDialogTitle(), getHelpId());
    if (getTargetProductNameSuffix() != null) {
        productDialog.setTargetProductNameSuffix(getTargetProductNameSuffix());
    }
    return productDialog;
}
 
开发者ID:senbox-org,项目名称:s2tbx,代码行数:9,代码来源:ReflectanceOperatorAction.java

示例5: createOperatorDialog

import org.esa.snap.ui.ModelessDialog; //导入依赖的package包/类
protected ModelessDialog createOperatorDialog() {
    setHelpId(getPropertyString("helpId"));

    final SingleOperatorDialog productDialog = new SingleOperatorDialog(getOperatorName(), getAppContext(),
                                                                        getDialogTitle(), getHelpId());
    if (getTargetProductNameSuffix() != null) {
        productDialog.setTargetProductNameSuffix(getTargetProductNameSuffix());
    }
    addIcon(productDialog);
    return productDialog;
}
 
开发者ID:senbox-org,项目名称:snap-desktop,代码行数:12,代码来源:OperatorAction.java

示例6: createOperatorDialog

import org.esa.snap.ui.ModelessDialog; //导入依赖的package包/类
@Override
protected ModelessDialog createOperatorDialog() {
    setHelpId(getPropertyString("helpId"));

    final GraphBuilderDialog dialog = new GraphBuilderDialog(getAppContext(), getDialogTitle(), getHelpId(), isEditingEnabled());
    dialog.show();

    final File graphPath = GraphBuilderDialog.getInternalGraphFolder();
    final File graphFile = new File(graphPath, getGraphFileName());

    addIcon(dialog);
    dialog.LoadGraph(graphFile);
    return dialog;
}
 
开发者ID:senbox-org,项目名称:snap-desktop,代码行数:15,代码来源:GraphAction.java

示例7: createOperatorDialog

import org.esa.snap.ui.ModelessDialog; //导入依赖的package包/类
protected ModelessDialog createOperatorDialog() {
    DefaultSingleTargetProductDialog productDialog = new DefaultSingleTargetProductDialog(getOperatorName(), getAppContext(),
                                                                                          getDialogTitle(), getHelpId());
    if (getTargetProductNameSuffix() != null) {
        productDialog.setTargetProductNameSuffix(getTargetProductNameSuffix());
    }
    return productDialog;
}
 
开发者ID:senbox-org,项目名称:snap-desktop,代码行数:9,代码来源:DefaultOperatorAction.java

示例8: actionPerformed

import org.esa.snap.ui.ModelessDialog; //导入依赖的package包/类
@Override
public void actionPerformed(ActionEvent event) {
    ModelessDialog dialog = createOperatorDialog();
    dialog.show();
}
 
开发者ID:senbox-org,项目名称:s2tbx,代码行数:6,代码来源:RadiometricOperatorAction.java

示例9: setIcon

import org.esa.snap.ui.ModelessDialog; //导入依赖的package包/类
private static void setIcon(final ModelessDialog dlg, final ImageIcon ico) {
    if (ico == null) return;
    dlg.getJDialog().setIconImage(ico.getImage());
}
 
开发者ID:senbox-org,项目名称:snap-desktop,代码行数:5,代码来源:OperatorAction.java


注:本文中的org.esa.snap.ui.ModelessDialog类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。