mirror of
https://github.com/JFormDesigner/FlatLaf.git
synced 2026-02-10 22:17:13 -06:00
Merge PR #343: New tabbed pane active tab border painting style
This commit is contained in:
@@ -363,6 +363,29 @@ public class FlatTabbedPane
|
||||
}
|
||||
|
||||
|
||||
// NOTE: enum names must be equal to allowed strings
|
||||
/** @since 2 */ public enum TabType { underlined, card };
|
||||
|
||||
/**
|
||||
* Returns type of selected tab.
|
||||
*
|
||||
* @since 2
|
||||
*/
|
||||
public TabType getTabType() {
|
||||
return getClientPropertyEnumString( TABBED_PANE_TAB_TYPE, TabType.class,
|
||||
"TabbedPane.tabType", TabType.underlined );
|
||||
}
|
||||
|
||||
/**
|
||||
* Specifies type of selected tab.
|
||||
*
|
||||
* @since 2
|
||||
*/
|
||||
public void setTabType( TabType tabType ) {
|
||||
putClientPropertyEnumString( TABBED_PANE_TAB_TYPE, tabType );
|
||||
}
|
||||
|
||||
|
||||
// NOTE: enum names must be equal to allowed strings
|
||||
public enum TabsPopupPolicy { never, asNeeded };
|
||||
|
||||
|
||||
Reference in New Issue
Block a user