public class ContentUtilEx extends ContentsUtil
Constructor and Description |
---|
ContentUtilEx() |
Modifier and Type | Method and Description |
---|---|
static void |
addSplitTabbedContent(ContentManager manager,
TabGroupId tabGroupId,
TabDescriptor tab,
boolean select) |
static void |
addTabbedContent(ContentManager manager,
javax.swing.JComponent contentComponent,
java.lang.String groupPrefix,
java.lang.String tabName,
boolean select,
Disposable childDisposable) |
static void |
addTabbedContent(ContentManager manager,
javax.swing.JComponent contentComponent,
java.lang.String groupId,
java.util.function.Supplier<java.lang.String> groupDisplayName,
java.util.function.Supplier<java.lang.String> tabDisplayName,
boolean select,
Disposable childDisposable) |
static void |
addTabbedContent(ContentManager manager,
TabGroupId tabGroupId,
TabDescriptor tab,
boolean select) |
static boolean |
closeContentTab(ContentManager manager,
Condition<? super javax.swing.JComponent> condition)
Closes content with component that matches specified condition.
|
static javax.swing.JComponent |
findContentComponent(ContentManager manager,
Condition<? super javax.swing.JComponent> condition)
|
static TabbedContent |
findTabbedContent(ContentManager manager,
java.lang.String id) |
static java.lang.String |
getFullName(java.lang.String groupPrefix,
java.lang.String tabName) |
static int |
getSelectedTab(TabbedContent content) |
static boolean |
isSplitMode(java.lang.String groupId) |
static void |
mergeTabs(ContentManager manager,
TabGroupId groupId) |
static boolean |
selectContent(ContentManager manager,
javax.swing.JComponent contentComponent,
boolean requestFocus)
|
static void |
setSplitMode(java.lang.String groupId,
boolean value) |
static void |
updateTabbedContentDisplayName(ContentManager manager,
javax.swing.JComponent contentComponent) |
addContent, addOrReplaceContent, closeContentTab
public static void addTabbedContent(ContentManager manager, javax.swing.JComponent contentComponent, java.lang.String groupPrefix, java.lang.String tabName, boolean select, Disposable childDisposable)
public static void addTabbedContent(ContentManager manager, javax.swing.JComponent contentComponent, java.lang.String groupId, java.util.function.Supplier<java.lang.String> groupDisplayName, java.util.function.Supplier<java.lang.String> tabDisplayName, boolean select, Disposable childDisposable)
public static void addTabbedContent(ContentManager manager, TabGroupId tabGroupId, TabDescriptor tab, boolean select)
public static void addSplitTabbedContent(ContentManager manager, TabGroupId tabGroupId, TabDescriptor tab, boolean select)
public static TabbedContent findTabbedContent(ContentManager manager, java.lang.String id)
public static java.lang.String getFullName(java.lang.String groupPrefix, java.lang.String tabName)
public static boolean selectContent(ContentManager manager, javax.swing.JComponent contentComponent, boolean requestFocus)
simple
and tabbed
contents of the given ContentManager,
and selects the one which holds the specified contentComponent
.public static javax.swing.JComponent findContentComponent(ContentManager manager, Condition<? super javax.swing.JComponent> condition)
public static boolean closeContentTab(ContentManager manager, Condition<? super javax.swing.JComponent> condition)
public static int getSelectedTab(TabbedContent content)
public static void updateTabbedContentDisplayName(ContentManager manager, javax.swing.JComponent contentComponent)
public static void mergeTabs(ContentManager manager, TabGroupId groupId)
public static boolean isSplitMode(java.lang.String groupId)
public static void setSplitMode(java.lang.String groupId, boolean value)