Package com.intellij.ui

Examples of com.intellij.ui.BooleanTableCellRenderer


        getColumnModel().getColumn(0).setHeaderValue("");
        getColumnModel().getColumn(1).setHeaderValue("Name");
        getColumnModel().getColumn(2).setHeaderValue("Description");

        // Render checkbox disabled if table is disabled
        getColumnModel().getColumn(0).setCellRenderer(new BooleanTableCellRenderer() {
            public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) {
                final Component rendererComponent = super.getTableCellRendererComponent(table, value, isSelected, hasFocus, row, column);
                rendererComponent.setEnabled(editable);
                return rendererComponent;
            }
View Full Code Here


* @author peter
*/
public class BooleanColumnInfo extends DomColumnInfo<GenericDomValue<Boolean>, Boolean> {

  public BooleanColumnInfo(final String name) {
    super(name, new BooleanTableCellRenderer());
  }
View Full Code Here

TOP

Related Classes of com.intellij.ui.BooleanTableCellRenderer

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.