Examples of JXTable


Examples of org.jdesktop.swingx.JXTable

        null);
    ColorHighlighter startedPackingHighlighter = new ColorHighlighter(
        new PatternPredicate("Ja", 11), ColorEnum.YELLOW.getColor(),
        null);

    table = new JXTable();
    productionOverviewTableModel = new ProductionOverviewTableModel(
        objectList);
    table.setModel(productionOverviewTableModel);
    table.setAutoResizeMode(JTable.AUTO_RESIZE_OFF);
    table.setSelectionModel(new SingleListSelectionAdapter(
View Full Code Here

Examples of org.jdesktop.swingx.JXTable

                userTypeAccessMap.put(userTypeAccess.getWindowAccess(),
                        userTypeAccess);
            }
        }

        tableWindows = new JXTable(new WindowsTableModel(windowList,
                userTypeAccessMap, presentationModel));
        tableWindows.setAutoResizeMode(JTable.AUTO_RESIZE_OFF);
        tableWindows.getColumnExt(0).setPreferredWidth(250);
        tableWindows.getColumnExt(1).setPreferredWidth(70);
        tableWindows.getColumnExt(2).setPreferredWidth(70);
View Full Code Here

Examples of org.jdesktop.swingx.JXTable

        .getBean("postShipmentManager");

    ColorHighlighter pattern = new ColorHighlighter(new PatternPredicate(
        "Ja", 6), ColorEnum.GREEN.getColor(), null);

    tablePostShipment = new JXTable();
    tablePostShipment.addHighlighter(pattern);
    postShipmentList.clear();
    List<PostShipment> postShipmentLines = postShipmentManager
        .findAllWithoutTransport();
    if (postShipmentLines != null) {
View Full Code Here

Examples of org.jdesktop.swingx.JXTable

            JPanel filterPanel = new JPanel(new FlowLayout(FlowLayout.LEFT));
            filterPanel.add(new JLabel("Filter:"));
            filterPanel.add(filterEdit);

            JXTable table = new JXTable(tableModel);
            table.getSelectionMapper().setEnabled(false);
            table.setSelectionModel(selectionModel);
            table.setColumnControlVisible(true);
            table.getColumnExt(3).setComparator(new IssueStateComparator());
            EventListJXTableSorting eventListJXTableSorting = EventListJXTableSorting.install(table, sortedIssues);
            eventListJXTableSorting.setMultipleColumnSort(true);

            JFrame frame = new JFrame();
            frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
View Full Code Here

Examples of org.jdesktop.swingx.JXTable

   */
  public final JXTable getTable(final WindowInterface window) {
    menuItemDeviation.addActionListener(new MenuItemListener(window));
    menuItemComment.addActionListener(new MenuItemCommentListener(window));
    menuItemAccident.addActionListener(new AddAccidentAction(window));
    table = new JXTable();

    table.setModel(getTableModel(window));
    table.setName(tableEnum.getTableName());
    table.setAutoResizeMode(JTable.AUTO_RESIZE_OFF);
    table.setSelectionModel(new SingleListSelectionAdapter(
View Full Code Here

Examples of org.jdesktop.swingx.JXTable

   *
   * @param window
   * @return tabell
   */
  public JXTable getTable(WindowInterface window) {
    table = new JXTable();
    table.setName("Table" + getClassName());

    initObjects();

    tableModel = getTableModel(window);
View Full Code Here

Examples of org.jdesktop.swingx.JXTable

   * Lager tabell for rapport
   *
   * @return tabell
   */
  public JXTable getTableReport() {
    tableReport = new JXTable();

    tableReport.setModel(new ReportTableModel(reportSelectionList,
        new String[] { "Antall" }, false, false));
    tableReport.setAutoResizeMode(JTable.AUTO_RESIZE_OFF);
    tableReport.setSelectionModel(new SingleListSelectionAdapter(
View Full Code Here

Examples of org.jdesktop.swingx.JXTable

   * Lager tabell for grunnlag
   *
   * @return tabell
   */
  public JXTable getTableBasis() {
    tableBasis = new JXTable();

    tableBasis.setModel(new ReportTableModel(reportBasisSelectionList,
        new String[] { "Antall" }, true, false));
    tableBasis.setAutoResizeMode(JTable.AUTO_RESIZE_OFF);
    tableBasis.setSelectionModel(new SingleListSelectionAdapter(
View Full Code Here

Examples of org.jdesktop.swingx.JXTable

    String fileName = "transport_" + Util.getCurrentDateAsDateTimeString()
        + ".xls";
    String excelDirectory = ApplicationParamUtil
        .findParamByName("excel_path");

    JXTable excelTable = null;
    if (panelStatistic.isShowing()) {
      excelTable = tableReport;
    } else {
      excelTable = new JXTable(new ReportTableModel(
          reportBasisSelectionList, reportTableModelBasis
              .getColumnHeadings(), true, true));
    }

    ExcelUtil.showDataInExcel(excelDirectory, fileName, null,
View Full Code Here

Examples of org.jdesktop.swingx.JXTable

   * Lager tabell for ordre eller kollier
   *
   * @return tabell
   */
  public JXTable getTableOrders() {
    JXTable table = new JXTable();
    if (isCollies) {
      table.setModel(new TransportColliTableModel(selectionList));
    } else {
      table.setModel(new TransportOrderTableModel(selectionList));
    }
    table.setSelectionModel(new SingleListSelectionAdapter(selectionList
        .getSelectionIndexHolder()));
    table.setAutoResizeMode(JTable.AUTO_RESIZE_OFF);
    table.setColumnControlVisible(true);

    table.packAll();
    table.setName("TableOrders");
    return table;
  }
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.