Package org.pentaho.reporting.libraries.designtime.swing

Examples of org.pentaho.reporting.libraries.designtime.swing.GenericCellRenderer


    setDefaultEditor(java.sql.Date.class, new DateCellEditor(Date.class));
    setDefaultEditor(Time.class, new TimeCellEditor(Time.class));
    setDefaultEditor(Timestamp.class, new DateCellEditor(Timestamp.class));

    setDefaultRenderer(Paint.class, new PaintCellRenderer());
    setDefaultRenderer(Object.class, new GenericCellRenderer());
    setDefaultRenderer(String.class, new GenericCellRenderer());

    final SimpleDateFormat isoDateFormat =
        new SimpleDateFormat(DATETIME_FORMAT_DEFAULT, Locale.ENGLISH);
    setDefaultRenderer(Date.class, new FormattingTableCellRenderer(isoDateFormat));
    setDefaultRenderer(java.sql.Date.class, new FormattingTableCellRenderer
View Full Code Here


    setDefaultRenderer(GroupingHeader.class, new GroupingHeaderCellRenderer());
    setDefaultRenderer(GroupedName.class, new GroupedNameCellRenderer());
    setDefaultRenderer(StructureFunction.class, expressionsCellRenderer);
    setDefaultRenderer(Expression.class, expressionsCellRenderer);
    setDefaultRenderer(Paint.class, new PaintCellRenderer());
    setDefaultRenderer(Object.class, new GenericCellRenderer());
    setDefaultRenderer(String.class, new GenericCellRenderer());
    setDefaultRenderer(ReportPreProcessor.class, reportPreProcessorCellRenderer);

    final SimpleDateFormat isoDateFormat =
        new SimpleDateFormat(WorkspaceSettings.DATETIME_FORMAT_DEFAULT, Locale.ENGLISH);
    setDefaultRenderer(Date.class, new FormattingTableCellRenderer(isoDateFormat));
View Full Code Here

    setShowVerticalLines(false);
    setModel(repositoryTableModel);
    setIntercellSpacing(new Dimension(0, 0));
    setDefaultRenderer(String.class, new RepositoryEntryCellRenderer());
    setDefaultRenderer(Date.class, new DateCellRenderer());
    setDefaultRenderer(Object.class, new GenericCellRenderer());
  }
View Full Code Here

  public DefaultValueEditorPanel()
  {
    singleValueMetaTableModel = new SingleValueMetaTableModel();

    editor = new InstantEditingTable();
    editor.setDefaultRenderer(Boolean.class, new GenericCellRenderer());
    editor.setDefaultEditor(Boolean.class,
        new DefaultCellEditor(new JComboBox(new Object[]{null, Boolean.TRUE, Boolean.FALSE})));
    editor.setModel(singleValueMetaTableModel);

    setLayout(new BorderLayout());
View Full Code Here

    GenericCellEditor cellEditor = new GenericCellEditor(String.class, false);

    propertiesTable = new JTable(new MondrianPropertiesTableModel());
    propertiesTable.setDefaultEditor(String.class, cellEditor);
    propertiesTable.setDefaultRenderer(String.class, new GenericCellRenderer());
    propertiesTable.setShowHorizontalLines(true);
    propertiesTable.setShowVerticalLines(true);
    propertiesTable.setGridColor(SystemColor.controlShadow);
    propertiesTable.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
    propertiesTable.setPreferredScrollableViewportSize(new Dimension(200, 100));
View Full Code Here

    final SimpleDateFormat isoDateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss.SSS");
    setDefaultRenderer(Date.class, new FormattingTableCellRenderer(isoDateFormat));
    setDefaultRenderer(java.sql.Date.class, new FormattingTableCellRenderer(new SimpleDateFormat("yyyy-MM-dd")));
    setDefaultRenderer(Time.class, new FormattingTableCellRenderer(new SimpleDateFormat("HH:mm:ss.SSS")));
    setDefaultRenderer(Timestamp.class, new FormattingTableCellRenderer(isoDateFormat));
    setDefaultRenderer(String.class, new GenericCellRenderer());
    setDefaultRenderer(Object.class, new GenericCellRenderer());

    setDefaultEditor(Number.class, new GenericCellEditor(BigDecimal.class));
    setDefaultEditor(Integer.class, new GenericCellEditor(Integer.class));
    setDefaultEditor(Float.class, new GenericCellEditor(Float.class));
    setDefaultEditor(Double.class, new GenericCellEditor(Double.class));
View Full Code Here

    final SimpleDateFormat isoDateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss.SSS");
    setDefaultRenderer(Date.class, new FormattingTableCellRenderer(isoDateFormat));
    setDefaultRenderer(java.sql.Date.class, new FormattingTableCellRenderer(new SimpleDateFormat("yyyy-MM-dd")));
    setDefaultRenderer(Time.class, new FormattingTableCellRenderer(new SimpleDateFormat("HH:mm:ss.SSS")));
    setDefaultRenderer(Timestamp.class, new FormattingTableCellRenderer(isoDateFormat));
    setDefaultRenderer(String.class, new GenericCellRenderer());
    setDefaultRenderer(Object.class, new GenericCellRenderer());

    setDefaultEditor(Number.class, new GenericCellEditor(BigDecimal.class));
    setDefaultEditor(Integer.class, new GenericCellEditor(Integer.class));
    setDefaultEditor(Float.class, new GenericCellEditor(Float.class));
    setDefaultEditor(Double.class, new GenericCellEditor(Double.class));
View Full Code Here

TOP

Related Classes of org.pentaho.reporting.libraries.designtime.swing.GenericCellRenderer

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.