public interface ToolWindow
ToolWindowEP
Modifier and Type | Interface and Description |
---|---|
static class |
ToolWindow.Border |
Modifier and Type | Field and Description |
---|---|
static Key<java.lang.Boolean> |
SHOW_CONTENT_ICON |
Modifier and Type | Method and Description |
---|---|
void |
activate(java.lang.Runnable runnable) |
void |
activate(java.lang.Runnable runnable,
boolean autoFocusContents) |
void |
activate(java.lang.Runnable runnable,
boolean autoFocusContents,
boolean forced) |
void |
addContentManagerListener(ContentManagerListener listener) |
default ActionCallback |
getActivation()
Deprecated.
Not used anymore.
|
ToolWindowAnchor |
getAnchor() |
javax.swing.JComponent |
getComponent() |
ContentManager |
getContentManager() |
ContentManager |
getContentManagerIfCreated() |
ToolWindowContentUiType |
getContentUiType() |
Disposable |
getDisposable() |
default java.lang.String |
getHelpId() |
javax.swing.Icon |
getIcon() |
java.lang.String |
getId() |
java.lang.String |
getStripeTitle() |
java.lang.String |
getTitle() |
ToolWindowType |
getType() |
default void |
hide() |
void |
hide(java.lang.Runnable runnable)
Hides tool window.
|
void |
installWatcher(ContentManager contentManager) |
boolean |
isActive() |
boolean |
isAutoHide() |
boolean |
isAvailable() |
boolean |
isDisposed() |
boolean |
isShowStripeButton() |
boolean |
isSplitMode() |
boolean |
isVisible() |
void |
remove()
Delete tool window.
|
void |
setAnchor(ToolWindowAnchor anchor,
java.lang.Runnable runnable) |
void |
setAutoHide(boolean value) |
void |
setAvailable(boolean value) |
void |
setAvailable(boolean value,
java.lang.Runnable runnable)
Sets whether the tool window available or not.
|
void |
setContentUiType(ToolWindowContentUiType type,
java.lang.Runnable runnable) |
void |
setDefaultContentUiType(ToolWindowContentUiType type) |
void |
setDefaultState(ToolWindowAnchor anchor,
ToolWindowType type,
java.awt.Rectangle floatingBounds) |
default void |
setHelpId(java.lang.String helpId) |
void |
setIcon(javax.swing.Icon icon)
Sets new window icon.
|
void |
setShowStripeButton(boolean value) |
void |
setSplitMode(boolean split,
java.lang.Runnable runnable)
There are four base
anchors for Tool Window: TOP, LEFT, BOTTOM, RIGHT. |
void |
setStripeTitle(java.lang.String title)
Sets new window stripe button text.
|
void |
setTitle(java.lang.String title)
Sets new window title.
|
void |
setToHideOnEmptyContent(boolean hideOnEmpty) |
void |
setType(ToolWindowType type,
java.lang.Runnable runnable) |
default void |
show() |
void |
show(java.lang.Runnable runnable) |
void |
showContentPopup(java.awt.event.InputEvent inputEvent) |
static final Key<java.lang.Boolean> SHOW_CONTENT_ICON
java.lang.String getId()
boolean isActive()
java.lang.IllegalStateException
- if tool window isn't installed.void activate(java.lang.Runnable runnable)
runnable
- A command to execute right after the window gets activated. The call is asynchronous since it may require animation.java.lang.IllegalStateException
- if tool window isn't installed.void activate(java.lang.Runnable runnable, boolean autoFocusContents)
void activate(java.lang.Runnable runnable, boolean autoFocusContents, boolean forced)
boolean isVisible()
java.lang.IllegalStateException
- if tool window isn't installed.void show(java.lang.Runnable runnable)
runnable
- A command to execute right after the window shows up. The call is asynchronous since it may require animation.java.lang.IllegalStateException
- if tool window isn't installed.default void show()
void hide(java.lang.Runnable runnable)
runnable
- A command to execute right after the window hides. The call is asynchronous since it may require animation.java.lang.IllegalStateException
- if tool window isn't installed.default void hide()
ToolWindowAnchor getAnchor()
java.lang.IllegalStateException
- if tool window isn't installed.void setAnchor(ToolWindowAnchor anchor, java.lang.Runnable runnable)
java.lang.IllegalStateException
- if tool window isn't installed.boolean isSplitMode()
java.lang.IllegalStateException
- if tool window isn't installed.void setSplitMode(boolean split, java.lang.Runnable runnable)
anchors
for Tool Window: TOP, LEFT, BOTTOM, RIGHT.
For each anchor there are two groups tool windows - not split and split for better organizing.
For example, you can see two actions in Move To group: Left Top and Left Bottom.
'Left' here is anchor or side where the button is located,
'Top' and 'Bottom' are two subsets of buttons (not split and split).java.lang.IllegalStateException
- if tool window isn't installed.ToolWindowAnchor
boolean isAutoHide()
java.lang.IllegalStateException
- if tool window isn't installed.void setAutoHide(boolean value)
ToolWindowType getType()
java.lang.IllegalStateException
- if tool window isn't installed.void setType(ToolWindowType type, java.lang.Runnable runnable)
java.lang.IllegalStateException
- if tool window isn't installed.javax.swing.Icon getIcon()
null
if window has no icon.void setIcon(javax.swing.Icon icon)
java.lang.String getTitle()
null
if window has no title.void setTitle(java.lang.String title)
java.lang.String getStripeTitle()
void setStripeTitle(java.lang.String title)
boolean isAvailable()
void setAvailable(boolean value, java.lang.Runnable runnable)
java.lang.IllegalStateException
- if tool window isn't installed.void setAvailable(boolean value)
void setContentUiType(ToolWindowContentUiType type, java.lang.Runnable runnable)
void setDefaultContentUiType(ToolWindowContentUiType type)
ToolWindowContentUiType getContentUiType()
void installWatcher(ContentManager contentManager)
javax.swing.JComponent getComponent()
ContentManager getContentManager()
ContentManager getContentManagerIfCreated()
void addContentManagerListener(ContentManagerListener listener)
void setDefaultState(ToolWindowAnchor anchor, ToolWindowType type, java.awt.Rectangle floatingBounds)
void setToHideOnEmptyContent(boolean hideOnEmpty)
void setShowStripeButton(boolean value)
value
- if false
stripe button should be hidden.boolean isShowStripeButton()
boolean isDisposed()
void showContentPopup(java.awt.event.InputEvent inputEvent)
Disposable getDisposable()
default void setHelpId(java.lang.String helpId)
default java.lang.String getHelpId()
void remove()
@Deprecated default ActionCallback getActivation()