Updated SparkTabbedPane to handle tab placement variables from JTabbedPane.

git-svn-id: http://svn.igniterealtime.org/svn/repos/spark/trunk@4552 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
Derek DeMoro
2006-07-18 23:51:19 +00:00
committed by derek
parent 8ad69e6952
commit 8f6ac1f416
6 changed files with 81 additions and 43 deletions

View File

@ -31,6 +31,7 @@ import org.jivesoftware.spark.ui.conferences.Conferences;
import org.jivesoftware.spark.ui.status.StatusBar;
import org.jivesoftware.spark.util.SwingWorker;
import org.jivesoftware.spark.util.log.Log;
import org.jivesoftware.spark.component.tabbedPane.SparkTabbedPane;
import org.jivesoftware.sparkimpl.plugin.manager.Enterprise;
import org.jivesoftware.sparkimpl.plugin.transcripts.ChatTranscriptPlugin;
@ -70,7 +71,7 @@ import java.util.TimerTask;
* <li>Retrieve the ContactList.
*/
public class Workspace extends JPanel implements PacketListener {
private JTabbedPane workspacePane;
private SparkTabbedPane workspacePane;
private final StatusBar statusBox = new StatusBar();
private ContactList contactList;
private Conferences conferences;
@ -132,7 +133,7 @@ public class Workspace extends JPanel implements PacketListener {
});
// Initialize workspace pane, defaulting the tabs to the bottom.
workspacePane = new JTabbedPane(JTabbedPane.BOTTOM);
workspacePane = new SparkTabbedPane(JTabbedPane.BOTTOM);
//workspacePane.setBoldActiveTab(true);
//workspacePane.setHideOneTab(true);
@ -391,7 +392,7 @@ public class Workspace extends JPanel implements PacketListener {
*
* @return the workspace JideTabbedPane
*/
public JTabbedPane getWorkspacePane() {
public SparkTabbedPane getWorkspacePane() {
return workspacePane;
}