Package javax.swing

Examples of javax.swing.DefaultCellEditor


           PropertyDescriptor descriptor =  model.getDescriptors()[row];
           Class valueClass = descriptor.getPropertyType();
          
            if (editorMap.containsKey(valueClass)) {

                DefaultCellEditor editor =
                    (DefaultCellEditor) editorMap.get(valueClass);
                logger.debug("Located CellEditor for " + valueClass);
                currentEditor = editor;

                return currentEditor.getTableCellEditorComponent(table, value,
View Full Code Here


   * @return TableCellEditor
   */
  public static final TableCellEditor createBooleanTableCellEditor() {
 
    JComboBox comboBox = new JComboBox(new Boolean[] {Boolean.TRUE, Boolean.FALSE});
    return new DefaultCellEditor(comboBox);
   
  }
View Full Code Here

   * @return table cell editor
   */
  public static Object createLevelTableCellEditor()
  {
    JComboBox comboBox = new JComboBox(new Level[] {Level.DEBUG, Level.INFO, Level.WARN, Level.ERROR, Level.FATAL, Level.OFF, Level.ALL});
    return new DefaultCellEditor(comboBox);
  }
View Full Code Here

                @Override
                public String getName() {
                    return "Tree.cellEditor";
                }
            };
            DefaultCellEditor editor = new DefaultCellEditor(tf);

            // One click to edit.
            editor.setClickCountToStart(1);
            return editor;
        }
View Full Code Here

                @Override
                public String getName() {
                    return "Tree.cellEditor";
                }
            };
            DefaultCellEditor editor = new DefaultCellEditor(tf);

            // One click to edit.
            editor.setClickCountToStart(1);
            return editor;
        }
View Full Code Here

    if(multiple){
      if(getConditionNames()!=null)
        combo = new JComboBox(getConditionNames());
      else
        combo = new JComboBox();
      editor = new DefaultCellEditor(combo);
     
     
    }
   
    this.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
View Full Code Here

    };

    JUndoableTextField textField = new JUndoableTextField( true );

    PropertyExpansionPopupListener.enable( textField, getModelItem() );
    propertyHolderTable.getPropertiesTable().setDefaultEditor( String.class, new DefaultCellEditor( textField ) );

    return propertyHolderTable;
  }
View Full Code Here

      this.editable = editable;
      this.formatter = formatter;

      JTextField textField = new JTextField();
      textField.setBorder( BorderFactory.createEmptyBorder() );
      cellEditor = new DefaultCellEditor( textField );
    }
View Full Code Here

        comboBox.setEditable( true );
        comboBox.removeItemAt( 0 );
      }

      comboBox.setBorder( null );
      cellEditor = new DefaultCellEditor( comboBox );
    }
View Full Code Here

      this.name = name;
      this.editable = editable;

      JPasswordField textField = new JPasswordField();
      textField.setBorder( BorderFactory.createEmptyBorder() );
      cellEditor = new DefaultCellEditor( textField );
    }
View Full Code Here

TOP

Related Classes of javax.swing.DefaultCellEditor

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.