Examples of VerticalLayout


Examples of org.jdesktop.swingx.VerticalLayout

    });

    final DCPanel collapseButtonPanel = new DCPanel();
    collapseButtonPanel.setOpaque(true);
    collapseButtonPanel.setBackground(WidgetUtils.BG_COLOR_DARK);
    collapseButtonPanel.setLayout(new VerticalLayout(4));
    collapseButtonPanel.setBorder(null);
    collapseButtonPanel.add(_toggleTreeViewButton);

    setLayout(new BorderLayout());
    add(_collapsibleTreePane, BorderLayout.CENTER);
View Full Code Here

Examples of org.jdesktop.swingx.VerticalLayout

  public MultipleStringPropertyWidget(ConfiguredPropertyDescriptor propertyDescriptor,
      AbstractBeanJobBuilder<?, ?, ?> beanJobBuilder) {
    super(beanJobBuilder, propertyDescriptor);

    _textFieldPanel = new DCPanel();
    _textFieldPanel.setLayout(new VerticalLayout(2));

    String[] currentValue = (String[]) beanJobBuilder.getConfiguredProperty(propertyDescriptor);
    if (currentValue == null) {
      currentValue = new String[2];
    }
    updateComponents(currentValue);

    final JButton addButton = WidgetFactory.createSmallButton("images/actions/add.png");
    addButton.addActionListener(new ActionListener() {
      @Override
      public void actionPerformed(ActionEvent e) {
        addTextField("", true);
        fireValueChanged();
      }
    });

    final JButton removeButton = WidgetFactory.createSmallButton("images/actions/remove.png");
    removeButton.addActionListener(new ActionListener() {
      @Override
      public void actionPerformed(ActionEvent e) {
        int componentCount = _textFieldPanel.getComponentCount();
        if (componentCount > 0) {
          _textFieldPanel.remove(componentCount - 1);
          _textFieldPanel.updateUI();
          fireValueChanged();
        }
      }
    });

    final DCPanel buttonPanel = new DCPanel();
    buttonPanel.setBorder(new EmptyBorder(0, 4, 0, 0));
    buttonPanel.setLayout(new VerticalLayout(2));
    buttonPanel.add(addButton);
    buttonPanel.add(removeButton);

    final DCPanel outerPanel = new DCPanel();
    outerPanel.setLayout(new BorderLayout());
View Full Code Here

Examples of org.jdesktop.swingx.VerticalLayout

    }
  }

  public JComponent renderGroupedResult(ValueDistributionResult result) {
    final DCPanel panel = new DCPanel();
    panel.setLayout(new VerticalLayout(0));
    Set<ValueDistributionGroupResult> results = result.getGroupedValueDistributionResults();
    for (final ValueDistributionGroupResult res : results) {
      if (panel.getComponentCount() != 0) {
        panel.add(Box.createVerticalStrut(10));
      }
View Full Code Here

Examples of org.jdesktop.swingx.VerticalLayout

    _propertyDescriptor = propertyDescriptor;
    _beanJobBuilder = jobBuilder;
    _parent = parent;

    final DCPanel panel = new DCPanel();
    panel.setLayout(new VerticalLayout());

    if (allowExpressionBasedColumns) {
      final JButton expressionColumnButton = WidgetFactory.createSmallButton(EXPRESSION_COLUMN_ICON_PATH);
      expressionColumnButton.setToolTipText("Create expression/value based column");
      expressionColumnButton.addActionListener(new AddExpressionBasedColumnActionListener(this));
View Full Code Here

Examples of org.jdesktop.swingx.VerticalLayout

        _filterJobBuilder.getAnalysisJobBuilder().removeFilter(_filterJobBuilder);
      }
    });

    final DCPanel buttonPanel = new DCPanel();
    buttonPanel.setLayout(new VerticalLayout(4));
    buttonPanel.add(_requirementButton);
    buttonPanel.add(removeButton);

    int buttonPanelHeight = _descriptor.getConfiguredProperties().size();
    if (buttonPanelHeight == 0) {
View Full Code Here

Examples of org.jdesktop.swingx.VerticalLayout

        .brightMultiLine("A text file dictionary is a dictionary based on a text file containing values separated by linebreaks.");
    descriptionLabel.setBorder(new EmptyBorder(10, 10, 10, 20));
    descriptionLabel.setPreferredSize(new Dimension(300, 100));

    final DCPanel mainPanel = new DCPanel();
    mainPanel.setLayout(new VerticalLayout(4));
    mainPanel.add(descriptionLabel);
    mainPanel.add(formPanel);

    return mainPanel;
  }
View Full Code Here

Examples of org.jdesktop.swingx.VerticalLayout

    }
  }

  public JComponent renderGroupedResult(PatternFinderResult result) {
    final DCPanel panel = new DCPanel();
    panel.setLayout(new VerticalLayout(0));
    final Map<String, Crosstab<?>> crosstabs = result.getGroupedCrosstabs();
    boolean collapsed = false;
    if (crosstabs.size() > MAX_EXPANDED_GROUPS) {
      collapsed = true;
    }
View Full Code Here

Examples of org.jdesktop.swingx.VerticalLayout

      DCFileChooser fileChooser, Provider<OpenAnalysisJobActionListener> openAnalysisJobActionListenerProvider) {
    super();
    _windowContext = windowContext;
    _configuration = configuration;
    _centerPanel = new DCPanel();
    _centerPanel.setLayout(new VerticalLayout(0));
    _fileChooser = fileChooser;
    _fileChooser.addPropertyChangeListener(this);
    _openJobButton = getOpenJobButton();
    _openAnalysisJobActionListenerProvider = openAnalysisJobActionListenerProvider;

    setPreferredSize(220, 10);

    setBorder(new EmptyBorder(0, 10, 0, 0));
    setLayout(new BorderLayout());
    setVisible(false);

    final JLabel iconLabel = new JLabel(ImageManager.getInstance().getImageIcon("images/window/app-icon.png"));

    final JLabel headerLabel = new JLabel("DataCleaner analysis job:");
    headerLabel.setFont(WidgetUtils.FONT_HEADER1);

    final DCPanel northPanel = new DCPanel();
    northPanel.setLayout(new VerticalLayout(0));
    northPanel.add(iconLabel);
    northPanel.add(Box.createVerticalStrut(10));
    northPanel.add(headerLabel);
    northPanel.add(Box.createVerticalStrut(10));
    northPanel.add(_centerPanel);
    northPanel.add(Box.createVerticalStrut(10));

    final DCPanel southPanel = new DCPanel();
    southPanel.setLayout(new VerticalLayout(0));
    northPanel.add(Box.createVerticalStrut(4));
    southPanel.add(_openJobButton);
    southPanel.add(Box.createVerticalStrut(4));
    southPanel.add(getOpenAsTemplateButton());
View Full Code Here

Examples of org.jdesktop.swingx.VerticalLayout

    _hintLabel.setIconTextGap(20);
    _hintLabel.setIcon(ImageManager.getInstance().getImageIcon("images/model/column.png"));

    _analysisJobBuilder.getSourceColumnListeners().add(this);
    setBorder(WidgetUtils.BORDER_EMPTY);
    setLayout(new VerticalLayout(4));

    add(_maxRowsFilterShortcutPanel);
    add(_hintLabel);
    add(Box.createVerticalStrut(10));
View Full Code Here

Examples of org.jdesktop.swingx.VerticalLayout

    CrosstabPanel valueCombinationPanel = crosstabResultSwingRenderer.renderInternal(new CrosstabResult(
        valueCombinationCrosstab), true);

    DCPanel panel = new DCPanel();
    panel.setLayout(new VerticalLayout(4));

    JLabel label = new JLabel("Column statistics:");
    label.setFont(WidgetUtils.FONT_HEADER1);
    panel.add(label);
    panel.add(columnStatisticsPanel);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.