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


Java PropertyPane类代码示例

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


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

示例1: initForm

import com.bc.ceres.swing.binding.PropertyPane; //导入依赖的package包/类
private void initForm() {
    form = new JTabbedPane();

    //only add ioParametersPanel if there are input or target products
    if(ioParametersPanel.getTargetProductSelectorDisplay() || ioParametersPanel.getSourceProductSelectorList().size() > 0) {
        form.add("I/O Parameters", ioParametersPanel);
    } else {
        //if there is no ioParametersPanel, the size of the form could be too small
        form.setPreferredSize(new Dimension(400, 300));
    }

    if (bindingContext.getPropertySet().getProperties().length > 0) {
        final PropertyPane parametersPane = new PropertyPane(bindingContext);
        final JPanel parametersPanel = parametersPane.createPanel();
        parametersPanel.setBorder(new EmptyBorder(4, 4, 4, 4));
        form.add("Processing Parameters", new JScrollPane(parametersPanel));
        updateSourceProduct();
    }
}
 
开发者ID:senbox-org,项目名称:snap-desktop,代码行数:20,代码来源:DefaultSingleTargetProductDialog.java

示例2: actionPerformed

import com.bc.ceres.swing.binding.PropertyPane; //导入依赖的package包/类
@Override
public void actionPerformed(ActionEvent e) {
    ProductNode productNode = SnapApp.getDefault().getSelectedProductNode(SnapApp.SelectionSourceHint.VIEW);
    if (productNode == null) {
        return;
    }
    Product product = productNode.getProduct();
    if (product != null) {
        DialogData dialogData = new DialogData(product.getVectorDataGroup());
        PropertySet propertySet = PropertyContainer.createObjectBacked(dialogData);
        propertySet.getDescriptor("name").setNotNull(true);
        propertySet.getDescriptor("name").setNotEmpty(true);
        propertySet.getDescriptor("name").setValidator(new NameValidator(product));
        propertySet.getDescriptor("description").setNotNull(true);

        final PropertyPane propertyPane = new PropertyPane(propertySet);
        JPanel panel = propertyPane.createPanel();
        panel.setPreferredSize(new Dimension(400, 100));
        ModalDialog dialog = new MyModalDialog(propertyPane);
        dialog.setContent(panel);
        int i = dialog.show();
        if (i == ModalDialog.ID_OK) {
            createDefaultVectorDataNode(product, dialogData.name, dialogData.description);
        }
    }
}
 
开发者ID:senbox-org,项目名称:snap-desktop,代码行数:27,代码来源:CreateVectorDataNodeAction.java

示例3: createProcessingParamTab

import com.bc.ceres.swing.binding.PropertyPane; //导入依赖的package包/类
private JScrollPane createProcessingParamTab() {
    PropertyPane parametersPane = new PropertyPane(propertySet);
    BindingContext bindingContext = parametersPane.getBindingContext();
    bindingContext.bindEnabledState("inputFactor", true, "includeInputFactor", true);

    final JPanel parametersPanel = parametersPane.createPanel();
    parametersPanel.setBorder(new EmptyBorder(4, 4, 4, 4));
    return new JScrollPane(parametersPanel);
}
 
开发者ID:senbox-org,项目名称:snap-examples,代码行数:10,代码来源:SimpleForm.java

示例4: RadiometricIndicesPanel

import com.bc.ceres.swing.binding.PropertyPane; //导入依赖的package包/类
RadiometricIndicesPanel(String operatorName, PropertySet propertySet, BindingContext bindingContext, Callable<Product> productAccessor) {
    if (productAccessor == null) {
        throw new IllegalArgumentException("The accessor for fetching source products must not be null");
    }
    OperatorSpi operatorSpi = GPF.getDefaultInstance().getOperatorSpiRegistry().getOperatorSpi(operatorName);
    if (operatorSpi == null) {
        throw new IllegalArgumentException("No SPI found for operator name '" + operatorName + "'");
    }
    this.operatorDescriptor = operatorSpi.getOperatorDescriptor();
    this.propertySet = propertySet;
    this.bindingContext = bindingContext == null ? new BindingContext(propertySet) : bindingContext;
    this.sourceProductAccessor = productAccessor;
    PropertyPane parametersPane = new PropertyPane(this.bindingContext);
    this.operatorPanel = new JScrollPane(parametersPane.createPanel());
}
 
开发者ID:senbox-org,项目名称:s2tbx,代码行数:16,代码来源:RadiometricIndicesPanel.java

示例5: CreateOpTab

import com.bc.ceres.swing.binding.PropertyPane; //导入依赖的package包/类
@Override
public JComponent CreateOpTab(final String operatorName,
                              final Map<String, Object> parameterMap, final AppContext appContext) {

    initializeOperatorUI(operatorName, parameterMap);
    final BindingContext context = new BindingContext(propertySet);

    initParameters();

    final PropertyPane parametersPane = new PropertyPane(context);
    return new JScrollPane(parametersPane.createPanel());
}
 
开发者ID:senbox-org,项目名称:snap-desktop,代码行数:13,代码来源:DefaultUI.java

示例6: actionPerformed

import com.bc.ceres.swing.binding.PropertyPane; //导入依赖的package包/类
@Override
public void actionPerformed(ActionEvent e) {
    final String operationName = model.operationWrapper.getName();
    final ModalDialog modalDialog = new ModalDialog(parent, operationName + " - Parameters",
                                                    ModalDialog.ID_OK_CANCEL, null);
    final ParameterValueGroup workCopy = model.parameters.clone();
    final PropertyContainer propertyContainer = createValueContainer(workCopy);
    modalDialog.setContent(new PropertyPane(propertyContainer).createPanel());
    if (modalDialog.show() == AbstractDialog.ID_OK) {
        vc.setValue(PARAMETERS, workCopy);
    }
}
 
开发者ID:senbox-org,项目名称:snap-desktop,代码行数:13,代码来源:CustomCrsPanel.java

示例7: createControl

import com.bc.ceres.swing.binding.PropertyPane; //导入依赖的package包/类
@Override
public JComponent createControl() {
    bindingContext = new BindingContext();
    PropertySet propertySet = bindingContext.getPropertySet();
    propertySet.addPropertyChangeListener(new PropertyChangeHandler());
    addEditablePropertyDescriptors();
    PropertyPane propertyPane = new PropertyPane(bindingContext);
    return propertyPane.createPanel();
}
 
开发者ID:senbox-org,项目名称:snap-desktop,代码行数:10,代码来源:AbstractLayerConfigurationEditor.java

示例8: createPropertyPanel

import com.bc.ceres.swing.binding.PropertyPane; //导入依赖的package包/类
private JPanel createPropertyPanel(PropertySet propertySet) {
    Property[] properties = propertySet.getProperties();
    for (Property property : properties) {
        String propertyName = property.getName();
        if ("type".equals(propertyName)) {
            property.getDescriptor().setAttribute("visible", false);
        }
        if (AggregatorTableController.isSourcePropertyName(propertyName)) {
            property.getDescriptor().setValueSet(new ValueSet(sourceVarNames));
        }
    }
    return new PropertyPane(propertySet).createPanel();
}
 
开发者ID:senbox-org,项目名称:snap-desktop,代码行数:14,代码来源:AggregatorItemDialog.java

示例9: MyModalDialog

import com.bc.ceres.swing.binding.PropertyPane; //导入依赖的package包/类
private MyModalDialog(PropertyPane propertyPane) {
    super(SnapApp.getDefault().getMainFrame(),
            Bundle.CTL_CreateVectorDataNodeActionText(),
            ModalDialog.ID_OK_CANCEL_HELP,
            HELP_ID);
    this.propertyPane = propertyPane;
}
 
开发者ID:senbox-org,项目名称:snap-desktop,代码行数:8,代码来源:CreateVectorDataNodeAction.java

示例10: getComponent

import com.bc.ceres.swing.binding.PropertyPane; //导入依赖的package包/类
JPanel getComponent() {
    if (panel == null) {
        panel = new JPanel(new BorderLayout());
        panel.add(new PropertyPane(bindingContext).createPanel(), BorderLayout.CENTER);
    }
    return panel;
}
 
开发者ID:senbox-org,项目名称:snap-desktop,代码行数:8,代码来源:PreferencesPanel.java

示例11: createComponent

import com.bc.ceres.swing.binding.PropertyPane; //导入依赖的package包/类
private JComponent createComponent() {
    PropertyPane propertyPane = new PropertyPane(bindingContext);
    return propertyPane.createPanel();
}
 
开发者ID:senbox-org,项目名称:snap-desktop,代码行数:5,代码来源:ExportImageAction.java


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