Package org.freeplane.core.ui.components

Examples of org.freeplane.core.ui.components.TypedListCellRenderer


        if (e.getClickCount() == 2) {
          addButton.doClick();
        }
      }
    });
    list.setCellRenderer(new TypedListCellRenderer());
    list.setModel(data);
    list.addListSelectionListener(new ListSelectionChangeListener());
    final JScrollPane listScroller = new JScrollPane(list);
    listScroller.setPreferredSize(new Dimension(250, 80));
    listScroller.setAlignmentX(Component.LEFT_ALIGNMENT);
View Full Code Here


      public void itemStateChanged(final ItemEvent e) {
        selectedAttributeChanged(e.getItem(), attributeValues);
      }
    });
    attributeValues = new JComboBox();
    attributeValues.setRenderer(new TypedListCellRenderer());
    attributeValues.setMaximumSize(comboBoxMaximumSize);
    attributeValues.setPreferredSize(comboBoxMaximumSize);
    replacingAttributeNames = new JComboBox();
    replacingAttributeNames.setMaximumSize(comboBoxMaximumSize);
    replacingAttributeNames.setPreferredSize(comboBoxMaximumSize);
    replacingAttributeNames.addItemListener(new ItemListener() {
      public void itemStateChanged(final ItemEvent e) {
        selectedAttributeChanged(e.getItem(), replacingAttributeValues);
      }
    });
    replacingAttributeValues = new JComboBox();
    replacingAttributeValues.setRenderer(new TypedListCellRenderer());
    replacingAttributeValues.setMaximumSize(comboBoxMaximumSize);
    replacingAttributeValues.setPreferredSize(comboBoxMaximumSize);
    final Box addDeleteBtnBox = Box.createVerticalBox();
    addDeleteBtnBox.setBorder(btnBorder);
    addDeleteBtnBox.add(Box.createVerticalGlue());
View Full Code Here

      }
    });
    panel.add(attributeNames, gridBagConstraints);
    //Attribute value combo-box
    attributeValues = new JComboBox();
    attributeValues.setRenderer(new TypedListCellRenderer());
    attributeValues.setMaximumSize(comboBoxMaximumSize);
    attributeValues.setPreferredSize(comboBoxMaximumSize);
    gridBagConstraints.gridx++;
    panel.add(attributeValues, gridBagConstraints);
    //set focus to attributeNames
View Full Code Here

  public ListCellRenderer getValueRenderer(Object selectedProperty, NamedObject selectedCondition) {
        if(selectedCondition.objectEquals(ConditionFactory.FILTER_CONTAINS)
                || selectedCondition.objectEquals(ConditionFactory.FILTER_REGEXP) )
            return null;
      return new TypedListCellRenderer();
    }
View Full Code Here

  public ListCellRenderer getValueRenderer(Object selectedProperty, NamedObject selectedCondition) {
        if(selectedCondition.objectEquals(ConditionFactory.FILTER_CONTAINS)
                || selectedCondition.objectEquals(ConditionFactory.FILTER_REGEXP) )
            return null;
      return new TypedListCellRenderer();
    }
View Full Code Here

    final JComboBox comboBox;
    if (dce == null) {
      comboBox = new JComboBox();
      comboBox.addFocusListener(AttributeTable.focusListener);
      comboBox.getEditor().getEditorComponent().addFocusListener(AttributeTable.focusListener);
      comboBox.setRenderer(new TypedListCellRenderer());
      dce = new DefaultCellEditor(comboBox) {
            public Component getTableCellEditorComponent(JTable table, Object value, boolean isSelected, int row, int col) {
                return super.getTableCellEditorComponent(table, ((AttributeTable)table).getValueForEdit(row, col), isSelected, row, col);
            }
      };
View Full Code Here

TOP

Related Classes of org.freeplane.core.ui.components.TypedListCellRenderer

Copyright © 2018 www.massapicom. 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.