Search in sources :

Example 1 with DataSourceAttributePanel

use of com.sldeditor.ui.attribute.DataSourceAttributePanel in project sldeditor by robward-scisys.

the class ExpressionSubPanel method setUpPropertyPanel.

/**
 * Sets the up property panel.
 */
protected void setUpPropertyPanel() {
    panelAttribute = new JPanel();
    FlowLayout fl_panelAttribute = (FlowLayout) panelAttribute.getLayout();
    fl_panelAttribute.setAlignment(FlowLayout.LEFT);
    rdbtnAttribute = new JRadioButton(Localisation.getString(ExpressionPanelv2.class, "ExpressionPanelv2.attribute"));
    rdbtnAttribute.setActionCommand(ATTRIBUTE);
    buttonGroup.add(rdbtnAttribute);
    panelAttribute.add(rdbtnAttribute);
    dataSourceAttributePanel = new DataSourceAttributePanel(new SubPanelUpdatedInterface() {

        @Override
        public void updateSymbol() {
            buttonGroup.setSelected(rdbtnAttribute.getModel(), true);
            updateButtonState(true);
        }
    });
    panelAttribute.add(dataSourceAttributePanel);
    box.add(panelAttribute);
}
Also used : JPanel(javax.swing.JPanel) FlowLayout(java.awt.FlowLayout) JRadioButton(javax.swing.JRadioButton) SubPanelUpdatedInterface(com.sldeditor.ui.attribute.SubPanelUpdatedInterface) DataSourceAttributePanel(com.sldeditor.ui.attribute.DataSourceAttributePanel)

Example 2 with DataSourceAttributePanel

use of com.sldeditor.ui.attribute.DataSourceAttributePanel in project sldeditor by robward-scisys.

the class PropertyPanel method createUI.

/**
 * Creates the ui.
 */
private void createUI() {
    setLayout(new BorderLayout());
    dataSourceAttributePanel = new DataSourceAttributePanel(new SubPanelUpdatedInterface() {

        @Override
        public void updateSymbol() {
            updateButtonState(true);
        }
    });
    add(dataSourceAttributePanel, BorderLayout.NORTH);
    add(createApplyRevertPanel(), BorderLayout.CENTER);
}
Also used : SubPanelUpdatedInterface(com.sldeditor.ui.attribute.SubPanelUpdatedInterface) BorderLayout(java.awt.BorderLayout) DataSourceAttributePanel(com.sldeditor.ui.attribute.DataSourceAttributePanel)

Example 3 with DataSourceAttributePanel

use of com.sldeditor.ui.attribute.DataSourceAttributePanel in project sldeditor by robward-scisys.

the class EnvironmentVariablePanel method createUI.

/**
 * Creates the ui.
 */
private void createUI() {
    setLayout(new BorderLayout());
    dataSourceAttributePanel = new DataSourceAttributePanel(new SubPanelUpdatedInterface() {

        @Override
        public void updateSymbol() {
            updateButtonState(true);
        }
    });
    add(dataSourceAttributePanel, BorderLayout.NORTH);
    add(createApplyRevertPanel(), BorderLayout.CENTER);
}
Also used : SubPanelUpdatedInterface(com.sldeditor.ui.attribute.SubPanelUpdatedInterface) BorderLayout(java.awt.BorderLayout) DataSourceAttributePanel(com.sldeditor.ui.attribute.DataSourceAttributePanel)

Aggregations

DataSourceAttributePanel (com.sldeditor.ui.attribute.DataSourceAttributePanel)3 SubPanelUpdatedInterface (com.sldeditor.ui.attribute.SubPanelUpdatedInterface)3 BorderLayout (java.awt.BorderLayout)2 FlowLayout (java.awt.FlowLayout)1 JPanel (javax.swing.JPanel)1 JRadioButton (javax.swing.JRadioButton)1