亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? jtable.java

?? linux下建立JAVA虛擬機的源碼KAFFE
?? JAVA
?? 第 1 頁 / 共 5 頁
字號:
    /**   * Create the default table column model that is used if the user-defined   * column model is not provided. The default method creates   * {@link DefaultTableColumnModel}.   *    * @return the created table column model.   */  protected TableColumnModel createDefaultColumnModel()  {    return new DefaultTableColumnModel();  }  /**   * Create the default table data model that is used if the user-defined   * data model is not provided. The default method creates   * {@link DefaultTableModel}.   *    * @return the created table data model.   */  protected TableModel createDefaultDataModel()  {    return new DefaultTableModel();  }  /**   * Create the default table selection model that is used if the user-defined   * selection model is not provided. The default method creates   * {@link DefaultListSelectionModel}.   *    * @return the created table data model.   */  protected ListSelectionModel createDefaultSelectionModel()  {    return new DefaultListSelectionModel();  }    /**   * Create the default table header, if the user - defined table header is not   * provided.   *    * @return the default table header.   */  protected JTableHeader createDefaultTableHeader()  {    return new JTableHeader(columnModel);  }    /**   * Invoked when the column is added. Revalidates and repains the table.   */  public void columnAdded (TableColumnModelEvent event)  {    revalidate();    repaint();  }  /**   * Invoked when the column margin is changed.    * Revalidates and repains the table.   */  public void columnMarginChanged (ChangeEvent event)  {    revalidate();    repaint();  }  /**   * Invoked when the column is moved. Revalidates and repains the table.   */  public void columnMoved (TableColumnModelEvent event)  {    revalidate();    repaint();  }  /**   * Invoked when the column is removed. Revalidates and repains the table.   */  public void columnRemoved (TableColumnModelEvent event)  {    revalidate();    repaint();  }    /**   * Invoked when the the column selection changes.   */  public void columnSelectionChanged (ListSelectionEvent event)  {    repaint();  }    /**   * Invoked when the editing is cancelled.   */  public void editingCanceled (ChangeEvent event)  {    if (editorComp!=null)      {        remove(editorComp);        repaint(editorComp.getBounds());                editorComp = null;      }  }    /**   * Finish the current editing session and update the table with the   * new value by calling {@link #setValueAt}.   *    * @param event the change event   */  public void editingStopped (ChangeEvent event)  {    if (editorComp!=null)      {        remove(editorComp);                setValueAt(cellEditor.getCellEditorValue(), editingRow, editingColumn);                    repaint(editorComp.getBounds());        editorComp = null;      }    requestFocusInWindow();  }  /**   * Invoked when the table changes.   * <code>null</code> means everything changed.   */  public void tableChanged (TableModelEvent event)  {    // update the column model from the table model if the structure has    // changed and the flag autoCreateColumnsFromModel is set    if ((event == null || (event.getFirstRow() == TableModelEvent.HEADER_ROW))	&& autoCreateColumnsFromModel)      createDefaultColumnsFromModel();    // If the structure changes, we need to revalidate, since that might    // affect the size parameters of the JTable. Otherwise we only need    // to perform a repaint to update the view.    if (event == null || event.getType() == TableModelEvent.INSERT)      revalidate();    if (event == null || event.getType() == TableModelEvent.DELETE)      {        if (dataModel.getRowCount() == 0)          clearSelection();        revalidate();      }    repaint();  }  /**   * Invoked when another table row is selected.   */  public void valueChanged (ListSelectionEvent event)  {    repaint();  } /**   * Returns index of the column that contains specified point    * or -1 if this table doesn't contain this point.   *   * @param point point to identify the column   * @return index of the column that contains specified point or    * -1 if this table doesn't contain this point.   */  public int columnAtPoint(Point point)  {    int ncols = getColumnCount();    Dimension gap = getIntercellSpacing();    TableColumnModel cols = getColumnModel();    int x = point.x;    for (int i = 0; i < ncols; ++i)      {        int width = cols.getColumn(i).getWidth()                    + (gap == null ? 0 : gap.width);        if (0 <= x && x < width)          return i;        x -= width;      }    return -1;  }  /**   * Returns index of the row that contains specified point or -1 if this table   * doesn't contain this point.   *    * @param point point to identify the row   * @return index of the row that contains specified point or -1 if this table   *         doesn't contain this point.   */  public int rowAtPoint(Point point)  {    if (point != null)      {        int nrows = getRowCount();        int height = getRowHeight() + getRowMargin();        int y = point.y;        int r = y / height;        if (r < 0 || r >= nrows)          return -1;        else          return r;      }    else      return -1;  }  /**    * Calculate the visible rectangle for a particular row and column. The   * row and column are specified in visual terms; the column may not match   * the {@link #dataModel} column.   *   * @param row the visible row to get the cell rectangle of   *   * @param column the visible column to get the cell rectangle of, which may   * differ from the {@link #dataModel} column   *   * @param includeSpacing whether or not to include the cell margins in the   * resulting cell. If <code>false</code>, the result will only contain the   * inner area of the target cell, not including its margins.   *   * @return a rectangle enclosing the specified cell   */  public Rectangle getCellRect(int row,                               int column,                               boolean includeSpacing)  {    // moveToCellBeingEdited expects the cached value and clones it.    // If the caching would be removed later, uplate moveToCellBeingEdited    // as well.    int height = getRowHeight(row);    int width = columnModel.getColumn(column).getWidth();    int x_gap = columnModel.getColumnMargin();    int y_gap = rowMargin;    column = Math.max(0, Math.min(column, getColumnCount() - 1));    row = Math.max(0, Math.min(row, getRowCount() - 1));    int x = 0;    int y = (height + y_gap) * row;    for (int i = 0; i < column; ++i)      x += columnModel.getColumn(i).getWidth();    if (includeSpacing)      rectCache.setBounds(x, y, width, height +y_gap);    else      rectCache.setBounds(x, y, width - x_gap, height);    return rectCache;  }  public void clearSelection()  {    selectionModel.clearSelection();    getColumnModel().getSelectionModel().clearSelection();  }  /**   * Get the value of the selectedRow property by delegation to   * the {@link ListSelectionModel#getMinSelectionIndex} method of the   * {@link #selectionModel} field.   *   * @return The current value of the selectedRow property   */  public int getSelectedRow ()  {        return selectionModel.getMinSelectionIndex();  }    /**   * Get the value of the {@link #selectionModel} property.   *   * @return The current value of the property   */  public ListSelectionModel getSelectionModel()  {    //Neither Sun nor IBM returns null if rowSelection not allowed    return selectionModel;  }    public int getScrollableBlockIncrement(Rectangle visibleRect, int orientation, int direction)  {    if (orientation == SwingConstants.VERTICAL)      return visibleRect.height * direction;    else      return visibleRect.width * direction;  }  /**   * Get the value of the <code>scrollableTracksViewportHeight</code> property.   *   * @return The constant value <code>false</code>   */  public boolean getScrollableTracksViewportHeight()  {    return false;  }    /**   * Get the value of the <code>scrollableTracksViewportWidth</code> property.   *   * @return <code>true</code> unless the {@link #autoResizeMode} property is   * <code>AUTO_RESIZE_OFF</code>   */  public boolean getScrollableTracksViewportWidth()  {    if (autoResizeMode == AUTO_RESIZE_OFF)      return false;    else      return true;  }    /**   * Return the preferred scrolling amount (in pixels) for the given scrolling   * direction and orientation. This method handles a partially exposed row by   * returning the distance required to completely expose the item. When   * scrolling the top item is completely exposed.   *    * @param visibleRect the currently visible part of the component.   * @param orientation the scrolling orientation   * @param direction the scrolling direction (negative - up, positive -down).   *          The values greater than one means that more mouse wheel or similar   *          events were generated, and hence it is better to scroll the longer   *          distance.   * @author Audrius Meskauskas (audriusa@bioinformatics.org)   */  public int getScrollableUnitIncrement(Rectangle visibleRect, int orientation,                                        int direction)  {    int h = (rowHeight + rowMargin);    int delta = h * direction;    // Round so that the top would start from the row boundary    if (orientation == SwingConstants.VERTICAL)      {        // Completely expose the top row        int near = ((visibleRect.y + delta + h / 2) / h) * h;        int diff = visibleRect.y + delta - near;        delta -= diff;      }    return delta;    // TODO when scrollng horizontally, scroll into the column boundary.  }  /**   * Get the cell editor, suitable for editing the given cell. The default   * method requests the editor from the column model. If the column model does   * not provide the editor, the call is forwarded to the   * {@link #getDefaultEditor(Class)} with the parameter, obtained from   * {@link TableModel#getColumnClass(int)}.   *    * @param row the cell row   * @param column the cell column   * @return the editor to edit that cell   */  public TableCellEditor getCellEditor(int row, int column)  {    TableCellEditor editor = columnModel.getColumn(column).getCellEditor();    if (editor == null)      {        int mcolumn = convertColumnIndexToModel(column);        editor = getDefaultEditor(dataModel.getColumnClass(mcolumn));      }    return editor;  }    /**   * Get the default editor for editing values of the given type   * (String, Boolean and so on).   *    * @param columnClass the class of the value that will be edited.   *    * @return the editor, suitable for editing this data type   */  public TableCellEditor getDefaultEditor(Class columnClass)  {    if (defaultEditorsByColumnClass.containsKey(columnClass))      return (TableCellEditor) defaultEditorsByColumnClass.get(columnClass);    else      {        JTextField t = new TableTextField();                TableCellEditor r = new DefaultCellEditor(t);        defaultEditorsByColumnClass.put(columnClass, r);        return r;      }  }    /**   * Get the cell renderer for rendering the given cell.   *    * @param row the cell row   * @param column the cell column   * @return the cell renderer to render that cell.   */  public TableCellRenderer getCellRenderer(int row, int column)  {    TableCellRenderer renderer = columnModel.getColumn(column).getCellRenderer();    if (renderer == null)      {        int mcolumn = convertColumnIndexToModel(column);        renderer = getDefaultRenderer(dataModel.getColumnClass(mcolumn));      }    return renderer;  }    /**   * Set default renderer for rendering the given data type.   *    * @param columnClass the data type (String, Boolean and so on) that must be   *          rendered.   * @param rend the renderer that will rend this data type   */  public void setDefaultRenderer(Class columnClass, TableCellRenderer rend)  {    defaultRenderersByColumnClass.put(columnClass, rend);  }    /**   * Get the default renderer for rendering the given data type.   *    * @param columnClass the data that must be rendered   *    * @return the appropriate defauld renderer for rendering that data type.   */  public TableCellRenderer getDefaultRenderer(Class columnClass)  {    if (defaultRenderersByColumnClass.containsKey(columnClass))      return (TableCellRenderer) defaultRenderersByColumnClass.get(columnClass);    else      {        TableCellRenderer r = new DefaultTableCellRenderer();        defaultRenderersByColumnClass.put(columnClass, r);        return r;      }  }    /**   * Convert the table m

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
久久福利资源站| 色久优优欧美色久优优| 91麻豆免费看片| 欧美一二区视频| 自拍偷拍国产亚洲| 国产自产视频一区二区三区| 欧美三区免费完整视频在线观看| 中文字幕av一区二区三区高| 奇米色777欧美一区二区| 一本一本久久a久久精品综合麻豆| 日韩欧美一级二级三级久久久| 亚洲三级电影网站| 国产精品一二三在| 欧美一区二区三区不卡| 亚洲黄网站在线观看| 成人免费毛片嘿嘿连载视频| 精品福利一二区| 免费在线观看不卡| 欧美日本一道本在线视频| 亚洲另类在线一区| 99在线精品免费| 国产精品美日韩| 国产suv精品一区二区883| 欧美xxxx老人做受| 青青草成人在线观看| 欧美一区二区在线免费观看| 亚洲成人第一页| 666欧美在线视频| 日韩国产欧美在线视频| 欧美色网站导航| 亚洲第四色夜色| 欧美视频三区在线播放| 亚洲成人免费av| 欧美日韩国产电影| 日韩国产精品91| 精品国产乱码久久久久久图片| 美女高潮久久久| 久久亚洲一区二区三区四区| 极品少妇xxxx偷拍精品少妇| 久久亚区不卡日本| 高清国产一区二区三区| 欧美激情在线观看视频免费| 成人黄色电影在线| 亚洲色图自拍偷拍美腿丝袜制服诱惑麻豆| 成人美女视频在线观看| 亚洲男人的天堂在线aⅴ视频| 91蜜桃视频在线| 亚洲va欧美va天堂v国产综合| 在线不卡免费欧美| 久久99日本精品| 亚洲国产精品99久久久久久久久 | 欧美极品少妇xxxxⅹ高跟鞋| 国产久卡久卡久卡久卡视频精品| 国产精品嫩草久久久久| 99久久精品99国产精品 | 国产精品久久毛片av大全日韩| av中文字幕不卡| 婷婷久久综合九色综合伊人色| 日韩一级大片在线观看| 粉嫩av一区二区三区粉嫩 | 国产精品久久久久久久久免费相片| 99久久99久久精品国产片果冻| 一区二区三区欧美日| 欧美一级电影网站| 成人性视频免费网站| 亚洲一区二区三区四区在线| 日韩欧美国产成人一区二区| 不卡免费追剧大全电视剧网站| 亚洲成av人在线观看| 精品国精品国产尤物美女| 成人app网站| 日本欧美一区二区在线观看| 国产精品久久久久久久久免费桃花 | 国产美女一区二区三区| 亚洲精品国产高清久久伦理二区| 欧美高清视频不卡网| 粉嫩一区二区三区性色av| 亚洲成人第一页| 国产精品国产三级国产aⅴ中文| 91精品国产综合久久福利软件| 国产不卡在线视频| 美国欧美日韩国产在线播放| 18成人在线观看| 国产清纯美女被跳蛋高潮一区二区久久w| 91国内精品野花午夜精品 | 人人超碰91尤物精品国产| 亚洲国产精品av| 精品久久久影院| 欧美人xxxx| 91丝袜高跟美女视频| 国产经典欧美精品| 免费不卡在线观看| 一片黄亚洲嫩模| 亚洲日本在线观看| 日本一区二区免费在线观看视频| 日韩免费在线观看| 欧美挠脚心视频网站| 97精品视频在线观看自产线路二| 国产一区二区成人久久免费影院 | 视频一区免费在线观看| 一区二区三区四区精品在线视频| 国产欧美一区二区精品忘忧草| 精品少妇一区二区三区日产乱码| 欧美日韩成人激情| 欧美综合色免费| 91激情在线视频| 色老汉一区二区三区| 91免费看视频| 91免费观看国产| 色美美综合视频| 色综合天天综合网天天狠天天 | 一级做a爱片久久| 中文字幕一区视频| 亚洲欧美自拍偷拍| 国产精品全国免费观看高清 | 91年精品国产| 色久优优欧美色久优优| 91福利视频久久久久| 91福利社在线观看| 欧美伦理视频网站| 日韩欧美一区二区不卡| 欧美一二三四在线| 精品久久久久久久久久久久久久久 | 福利一区福利二区| 成人黄色电影在线| 在线看日本不卡| 在线播放欧美女士性生活| 日韩亚洲国产中文字幕欧美| 日韩一区二区免费在线电影| 精品嫩草影院久久| 亚洲国产精品高清| 亚洲女人****多毛耸耸8| 亚洲成av人片在线| 久久97超碰色| 成人黄色综合网站| 欧美体内she精高潮| 91精品国产一区二区三区香蕉| 久久综合九色综合97_久久久| 欧美国产日韩亚洲一区| 最新久久zyz资源站| 亚洲777理论| 国产美女在线观看一区| 色婷婷av一区二区三区软件| 欧美狂野另类xxxxoooo| 精品久久久久久久久久久久久久久久久| 国产欧美日韩中文久久| 一区二区三区四区在线| 免费欧美在线视频| 成人av在线影院| 4438成人网| 日本一区二区三区高清不卡| 一个色综合av| 国产99久久久久| 欧美探花视频资源| 久久久久久免费| 亚洲午夜影视影院在线观看| 黑人精品欧美一区二区蜜桃| 日本福利一区二区| 久久婷婷成人综合色| 亚洲一区二区五区| 国产成人免费在线| 欧美一区二区三区不卡| 国产精品欧美精品| 免费成人你懂的| 91美女片黄在线观看| 精品国产自在久精品国产| 一级日本不卡的影视| 成人午夜电影网站| 日韩一区二区在线播放| 一区二区高清视频在线观看| 国产91丝袜在线播放| 日韩欧美一区二区视频| 亚洲综合免费观看高清完整版在线| 国产乱码一区二区三区| 欧美日本一区二区| 亚洲激情成人在线| 99久久久精品免费观看国产蜜| 欧美白人最猛性xxxxx69交| 亚洲不卡在线观看| 在线免费观看不卡av| 成人免费一区二区三区视频| 丰满亚洲少妇av| 久久久国产午夜精品| 久久精品国产一区二区三区免费看| 欧美怡红院视频| 亚洲靠逼com| 91麻豆123| 自拍视频在线观看一区二区| 国产999精品久久久久久绿帽| 精品国产a毛片| 韩国三级电影一区二区| 日韩欧美视频一区| 蜜臀久久99精品久久久久久9| 欧美剧情片在线观看| 亚洲国产欧美另类丝袜| 日本高清不卡一区| 亚洲一区av在线| 欧美日本乱大交xxxxx| 午夜精品福利视频网站| 91精品国产综合久久蜜臀|