Пример #1
0
  private void init() {
    pageView = new PageView<TOutBill>();
    articlesUsingModel = new ArticlesUsingModel();
    table = uiFactory.createRPJTable(articlesUsingModel, null, this, 30, JLabel.CENTER);
    tableJsp = uiFactory.createJScrollPane(table);
    pagingComponent = new PagingComponent();
    pagingComponent.setPageDelegale(this);

    this.add(initTop(), BorderLayout.NORTH);
    this.add(tableJsp, BorderLayout.CENTER);
    this.add(initTail(), BorderLayout.SOUTH);
  }
Пример #2
0
 private void initView() {
   pageView = new PageView<TOrder>();
   orderOnlineModel = new OrderHistoryModel();
   table = uiFactory.createJTable(orderOnlineModel, this, this, 30, JLabel.CENTER);
   //		table.setAutoResizeMode(JTable.AUTO_RESIZE_OFF);
   tableJsp = new JScrollPane(table);
   pagingComponent = new PagingComponent();
   pagingComponent.setPageDelegale(this);
   this.add(topPanel(), BorderLayout.NORTH);
   this.add(tableJsp, BorderLayout.CENTER);
   this.add(pagingComponent, BorderLayout.SOUTH);
   // 排序
   TableRowSorter<OrderHistoryModel> tableRowSorter =
       new TableRowSorter<OrderHistoryModel>(orderOnlineModel);
   table.setRowSorter(tableRowSorter);
 }
Пример #3
0
 private void init() {
   pageView = new PageView<TUser>();
   memberQueryCardModel = new MemberQueryCardModel();
   table = uiFactory.createRPJTable(memberQueryCardModel, null, this, 30, JLabel.CENTER);
   tableJsp = uiFactory.createJScrollPane(table);
   TableColumnModel columnModel = table.getColumnModel();
   columnModel.getColumn(0).setCellEditor(table.getDefaultEditor(Boolean.class));
   columnModel.getColumn(0).setCellRenderer(table.getDefaultRenderer(Boolean.class));
   pagingComponent = new PagingComponent();
   pagingComponent.setPageDelegale(this);
   JPanel main_jp = new JPanel(new BorderLayout());
   main_jp.setBackground(Util.PANEL_COLOR);
   main_jp.add(this.initTop(), BorderLayout.NORTH);
   main_jp.add(tableJsp, BorderLayout.CENTER);
   main_jp.add(this.initTail(), BorderLayout.SOUTH);
   this.add(main_jp);
 }
Пример #4
0
  private void init() {
    // TODO Auto-generated method stub
    pageView = new PageView<TShopCharge>();
    memberQueryShopChargeModel = new MemberQueryShopChargeModel();
    table = uiFactory.createRPJTable(memberQueryShopChargeModel, null, this, 30, JLabel.CENTER);
    // table设置列宽度 AUTO_RESIZE_SUBSEQUENT_COLUMNS 填满父容器  JTable.AUTO_RESIZE_OFF 自适应
    table.setAutoResizeMode(JTable.AUTO_RESIZE_SUBSEQUENT_COLUMNS);
    tableJsp = uiFactory.createJScrollPane(table);
    pagingComponent = new PagingComponent();
    pagingComponent.setPageDelegale(this);

    this.add(this.topPanel(), BorderLayout.NORTH);
    this.add(tableJsp, BorderLayout.CENTER);
    this.add(pagingComponent, BorderLayout.SOUTH);
    this.add(this.initTail(), BorderLayout.SOUTH);

    this.termQuery(1);
    // 排序
    TableRowSorter<MemberQueryShopChargeModel> tableRowSorter =
        new TableRowSorter<MemberQueryShopChargeModel>(memberQueryShopChargeModel);
    table.setRowSorter(tableRowSorter);
  }