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, waitbeforeDisposepublic 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 ContentUIpublic void setManager(ContentManager manager)
setManager in interface ContentUIpublic boolean isSingleSelection()
isSingleSelection in interface ContentUIpublic boolean isToSelectAddedContent()
isToSelectAddedContent in interface ContentUIpublic boolean canBeEmptySelection()
canBeEmptySelection in interface ContentUIpublic boolean canChangeSelectionTo(Content content, boolean implicit)
canChangeSelectionTo in interface ContentUIpublic java.lang.String getCloseActionName()
getCloseActionName in interface ContentUIpublic java.lang.String getCloseAllButThisActionName()
getCloseAllButThisActionName in interface ContentUIpublic java.lang.String getPreviousContentActionName()
getPreviousContentActionName in interface ContentUIpublic java.lang.String getNextContentActionName()
getNextContentActionName in interface ContentUIpublic 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)
DataProviderPlatformDataKeys class.getData in interface DataProviderdataId - the data identifier for which the value is requested.public static void toggleContentPopup(ToolWindowContentUi content, ContentManager contentManager)