From 645833624968bc4522e0c36a79bc9fee6b9f7418 Mon Sep 17 00:00:00 2001 From: spark_xp Date: Mon, 13 Sep 2010 10:15:32 +0000 Subject: [PATCH] =?utf8?q?TweetTabbedTable=E3=81=AB=E9=96=A2=E3=81=97?= =?utf8?q?=E3=81=A6=EF=BC=8C=E3=83=86=E3=83=BC=E3=83=96=E3=83=AB=E3=82=92?= =?utf8?q?=E3=82=BF=E3=83=96=E3=81=AE=E4=BD=95=E7=95=AA=E7=9B=AE=E3=81=AB?= =?utf8?q?=E3=82=BB=E3=83=83=E3=83=88=E3=81=99=E3=82=8B=E3=81=8B=E3=82=92?= =?utf8?q?=E8=A8=AD=E5=AE=9A=E3=81=A7=E3=81=8D=E3=82=8B=E3=82=88=E3=81=86?= =?utf8?q?=E3=81=AB=E6=94=B9=E8=89=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit git-svn-id: http://svn.sourceforge.jp/svnroot/nt-manager/NishioTweetManager/trunk@15 d8c9ecd3-d47d-4367-8645-de82c00e513f --- src/twitter/gui/component/TweetTabbedTable.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/twitter/gui/component/TweetTabbedTable.java b/src/twitter/gui/component/TweetTabbedTable.java index 0896c0f..97b2b4b 100644 --- a/src/twitter/gui/component/TweetTabbedTable.java +++ b/src/twitter/gui/component/TweetTabbedTable.java @@ -37,6 +37,8 @@ public class TweetTabbedTable { private String title; //タブ private JTabbedPane tabbedPane; + //何番目のタブにテーブルをセットするか + private int tabSetNum; //スクロールペーン private JScrollPane scrollPane; //ツイートを管理するクラス @@ -58,6 +60,7 @@ public class TweetTabbedTable { * @param tweetGetter tweet取得時に行うアクション * @param title タブに表示するタイトル * @param tabbedPane テーブルを追加するタブ + * @param tabSetNum 何番目のタブにセットするか * @param tableElementHeight テーブルの高さ * @param tweetManager ツイート管理クラス * @param mainAction メインアクション @@ -65,12 +68,13 @@ public class TweetTabbedTable { * @param tableElementMaxSize テーブルに格納できる要素の最大数 */ public TweetTabbedTable(TweetGetter tweetGetter, - String title, JTabbedPane tabbedPane, int tableElementHeight, + String title, JTabbedPane tabbedPane, int tabSetNum, int tableElementHeight, TweetManager tweetManager, TweetMainAction mainAction, Color newTableColor, int tableElementMaxSize) { this.tweetGetter = tweetGetter; this.title = title; this.tabbedPane = tabbedPane; + this.tabSetNum = tabSetNum; this.tweetManager = tweetManager; this.mainAction = mainAction; this.tableElementHeight = tableElementHeight; @@ -119,7 +123,7 @@ public class TweetTabbedTable { // まだチェックしていないtweetの数をタブにも表示 if (this.uncheckedTweet > 0) { - tabbedPane.setTitleAt(0, this.title + "(" + tabbedPane.setTitleAt(this.tabSetNum, this.title + "(" + this.uncheckedTweet + ")"); } // ツイートをテーブルに追加 -- 2.11.0