public final class ToolWindowContentUi extends java.lang.Object implements ContentUI, DataProvider
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
HIDE_ID_LABEL |
Predicate<java.awt.Point> |
isResizableArea |
Constructor and Description |
---|
ToolWindowContentUi(ToolWindowImpl window,
ContentManager contentManager,
javax.swing.JPanel contentComponent) |
Modifier and Type | Method and Description |
---|---|
boolean |
canBeEmptySelection() |
boolean |
canChangeSelectionTo(Content content,
boolean implicit) |
java.lang.String |
getCloseActionName() |
java.lang.String |
getCloseAllButThisActionName() |
javax.swing.JComponent |
getComponent() |
ContentManager |
getContentManager() |
java.lang.Object |
getData(java.lang.String dataId)
Returns the object corresponding to the specified data identifier.
|
java.lang.String |
getNextContentActionName() |
java.lang.String |
getPreviousContentActionName() |
javax.swing.JPanel |
getTabComponent() |
java.lang.String |
getToolWindowId() |
static void |
initMouseListeners(javax.swing.JComponent c,
ToolWindowContentUi ui,
boolean allowResize) |
boolean |
isSingleSelection() |
boolean |
isToSelectAddedContent() |
void |
setManager(ContentManager manager) |
void |
setTabDoubleClickActions(java.util.List<AnAction> actions) |
void |
setType(ToolWindowContentUiType type) |
void |
showContextMenu(java.awt.Component comp,
int x,
int y,
ActionGroup toolWindowGroup,
Content selectedContent) |
static void |
toggleContentPopup(ToolWindowContentUi content,
ContentManager contentManager) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
beforeDispose
public static final java.lang.String HIDE_ID_LABEL
public Predicate<java.awt.Point> isResizableArea
public ToolWindowContentUi(ToolWindowImpl window, ContentManager contentManager, javax.swing.JPanel contentComponent)
public ContentManager getContentManager()
public javax.swing.JPanel getTabComponent()
public java.lang.String getToolWindowId()
public void setType(ToolWindowContentUiType type)
public javax.swing.JComponent getComponent()
getComponent
in interface ContentUI
public void setManager(ContentManager manager)
setManager
in interface ContentUI
public boolean isSingleSelection()
isSingleSelection
in interface ContentUI
public boolean isToSelectAddedContent()
isToSelectAddedContent
in interface ContentUI
public boolean canBeEmptySelection()
canBeEmptySelection
in interface ContentUI
public boolean canChangeSelectionTo(Content content, boolean implicit)
canChangeSelectionTo
in interface ContentUI
public java.lang.String getCloseActionName()
getCloseActionName
in interface ContentUI
public java.lang.String getCloseAllButThisActionName()
getCloseAllButThisActionName
in interface ContentUI
public java.lang.String getPreviousContentActionName()
getPreviousContentActionName
in interface ContentUI
public java.lang.String getNextContentActionName()
getNextContentActionName
in interface ContentUI
public void setTabDoubleClickActions(java.util.List<AnAction> actions)
public static void initMouseListeners(javax.swing.JComponent c, ToolWindowContentUi ui, boolean allowResize)
public void showContextMenu(java.awt.Component comp, int x, int y, ActionGroup toolWindowGroup, Content selectedContent)
public java.lang.Object getData(java.lang.String dataId)
DataProvider
PlatformDataKeys
class.getData
in interface DataProvider
dataId
- the data identifier for which the value is requested.public static void toggleContentPopup(ToolWindowContentUi content, ContentManager contentManager)