/*
* MainFrameTabbedPane.java
*
* created: 7.10.2011
* charset: UTF-8
* license: MIT (X11) (See LICENSE file for full license)
*/
package cz.mp.k3bg.gui;
import cz.mp.k3bg.gui.plaf.OptionsTabbedPaneUI;
import java.awt.Component;
import javax.swing.Icon;
import javax.swing.JTabbedPane;
/**
* Hlavní "záložkový panel" se změněným vzhledem.
*
* @author Martin Pokorný
* @version 0.1
* @see TabPanel
* @see MainFrame
* @see OptionsTabbedPaneUI
*/
public class MainFrameTabbedPane extends JTabbedPane {
/** */
public MainFrameTabbedPane() {
super();
init();
}
/**
*
*/
private void init() {
OptionsTabbedPaneUI optsTabPaneUI = new OptionsTabbedPaneUI();
this.setUI(optsTabPaneUI);
this.setTabPlacement(JTabbedPane.LEFT);
this.setTabLayoutPolicy(JTabbedPane.SCROLL_TAB_LAYOUT);
}
public final void addTab(TabPanel panel) {
super.addTab(
panel.getTitle(),
panel.getImageIcon(),
panel);
}
/** @throws UnsupportedOperationException */
@Deprecated
@Override
public void addTab(String title, Component component) {
throw new UnsupportedOperationException();
}
/** @throws UnsupportedOperationException */
@Deprecated
@Override
public void addTab(String title, Icon icon, Component component) {
throw new UnsupportedOperationException();
}
/** @throws UnsupportedOperationException */
@Deprecated
@Override
public void addTab(String title, Icon icon, Component component, String tip) {
throw new UnsupportedOperationException();
}
} // MainFrameTabbedPane.java