Search in sources :

Example 1 with FilterField

use of com.sldeditor.filter.v2.function.FilterField in project sldeditor by robward-scisys.

the class FilterSubPanel method createUI.

/**
 * Creates the ui.
 */
private void createUI() {
    setLayout(new BorderLayout());
    box = Box.createVerticalBox();
    add(box, BorderLayout.CENTER);
    // 
    // Filter panel
    // 
    panelFilter = new JPanel(new FlowLayout());
    lblFilter = new JLabel(Localisation.getString(ExpressionPanelv2.class, "ExpressionPanelv2.filter"));
    panelFilter.add(lblFilter);
    filterPanel = new FilterField(new SubPanelUpdatedInterface() {

        @Override
        public void updateSymbol() {
            updateButtonState(true);
        }
    }, FilterManager.getInstance());
    panelFilter.add(filterPanel);
    box.add(panelFilter);
    box.add(createAddRemoveFilterPanel());
    box.add(createApplyRevertPanel());
}
Also used : JPanel(javax.swing.JPanel) FlowLayout(java.awt.FlowLayout) SubPanelUpdatedInterface(com.sldeditor.ui.attribute.SubPanelUpdatedInterface) BorderLayout(java.awt.BorderLayout) JLabel(javax.swing.JLabel) FilterField(com.sldeditor.filter.v2.function.FilterField)

Aggregations

FilterField (com.sldeditor.filter.v2.function.FilterField)1 SubPanelUpdatedInterface (com.sldeditor.ui.attribute.SubPanelUpdatedInterface)1 BorderLayout (java.awt.BorderLayout)1 FlowLayout (java.awt.FlowLayout)1 JLabel (javax.swing.JLabel)1 JPanel (javax.swing.JPanel)1