public class ContentImpl extends UserDataHolderBase implements Content
Disposable.Parent
IS_CLOSABLE, PROP_ACTIONS, PROP_ALERT, PROP_COMPONENT, PROP_DESCRIPTION, PROP_DISPLAY_NAME, PROP_ICON, TAB_DESCRIPTOR_KEY, TAB_DND_TARGET_KEY, TAB_GROUP_ID_KEY, TAB_GROUP_NAME_KEY, TAB_LABEL_ORIENTATION_KEY, TABBED_CONTENT_KEY
Constructor and Description |
---|
ContentImpl(javax.swing.JComponent component,
java.lang.String displayName,
boolean isPinnable) |
Modifier and Type | Method and Description |
---|---|
void |
addPropertyChangeListener(java.beans.PropertyChangeListener l) |
void |
dispose()
Usually not invoked directly, see class javadoc.
|
void |
fireAlert() |
ActionGroup |
getActions() |
javax.swing.JComponent |
getActionsContextComponent() |
AlertIcon |
getAlertIcon() |
BusyObject |
getBusyObject() |
javax.swing.JComponent |
getComponent() |
java.lang.String |
getDescription() |
java.lang.String |
getDisplayName() |
Disposable |
getDisposer() |
long |
getExecutionId() |
java.lang.String |
getHelpId() |
javax.swing.Icon |
getIcon() |
ContentManager |
getManager() |
java.lang.String |
getPlace() |
javax.swing.Icon |
getPopupIcon() |
javax.swing.JComponent |
getPreferredFocusableComponent() |
javax.swing.JComponent |
getSearchComponent() |
java.lang.String |
getSeparator() |
java.lang.String |
getTabName() |
java.lang.String |
getToolwindowTitle() |
boolean |
isCloseable() |
boolean |
isPinnable() |
boolean |
isPinned() |
boolean |
isSelected() |
boolean |
isValid() |
void |
release() |
void |
removePropertyChangeListener(java.beans.PropertyChangeListener l) |
void |
setActions(ActionGroup actions,
java.lang.String place,
javax.swing.JComponent contextComponent) |
void |
setAlertIcon(AlertIcon icon) |
void |
setBusyObject(BusyObject object) |
void |
setCloseable(boolean closeable) |
void |
setComponent(javax.swing.JComponent component) |
void |
setDescription(java.lang.String description) |
void |
setDisplayName(java.lang.String displayName) |
void |
setDisposer(Disposable disposer) |
void |
setExecutionId(long executionId) |
void |
setHelpId(java.lang.String helpId) |
void |
setIcon(javax.swing.Icon icon) |
void |
setManager(ContentManager manager) |
void |
setPinnable(boolean pinnable) |
void |
setPinned(boolean locked) |
void |
setPopupIcon(javax.swing.Icon icon) |
void |
setPreferredFocusableComponent(javax.swing.JComponent c) |
void |
setPreferredFocusedComponent(Computable<? extends javax.swing.JComponent> computable) |
void |
setSearchComponent(javax.swing.JComponent comp) |
void |
setSeparator(java.lang.String separator) |
void |
setShouldDisposeContent(boolean value) |
void |
setTabName(java.lang.String tabName) |
void |
setToolwindowTitle(java.lang.String toolwindowTitle) |
java.lang.String |
toString() |
changeUserMap, clearUserData, clone, copyCopyableDataTo, copyUserDataTo, getCopyableUserData, getUserData, getUserDataString, getUserMap, isUserDataEmpty, putCopyableUserData, putUserData, putUserDataIfAbsent, replace, setUserMap
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getUserData, putUserData
public ContentImpl(javax.swing.JComponent component, java.lang.String displayName, boolean isPinnable)
public javax.swing.JComponent getComponent()
getComponent
in interface ComponentContainer
public void setComponent(javax.swing.JComponent component)
setComponent
in interface Content
public javax.swing.JComponent getPreferredFocusableComponent()
getPreferredFocusableComponent
in interface ComponentContainer
public void setPreferredFocusableComponent(javax.swing.JComponent c)
setPreferredFocusableComponent
in interface Content
public void setPreferredFocusedComponent(Computable<? extends javax.swing.JComponent> computable)
setPreferredFocusedComponent
in interface Content
public void setDisplayName(java.lang.String displayName)
setDisplayName
in interface Content
public java.lang.String getDisplayName()
getDisplayName
in interface Content
public void setTabName(java.lang.String tabName)
setTabName
in interface Content
public java.lang.String getTabName()
getTabName
in interface Content
public void setToolwindowTitle(java.lang.String toolwindowTitle)
setToolwindowTitle
in interface Content
public java.lang.String getToolwindowTitle()
getToolwindowTitle
in interface Content
public Disposable getDisposer()
getDisposer
in interface Content
public void setDisposer(Disposable disposer)
setDisposer
in interface Content
public void setShouldDisposeContent(boolean value)
setShouldDisposeContent
in interface Content
public java.lang.String getDescription()
getDescription
in interface Content
public void setDescription(java.lang.String description)
setDescription
in interface Content
public void addPropertyChangeListener(java.beans.PropertyChangeListener l)
addPropertyChangeListener
in interface Content
public void removePropertyChangeListener(java.beans.PropertyChangeListener l)
removePropertyChangeListener
in interface Content
public void setManager(ContentManager manager)
public ContentManager getManager()
getManager
in interface Content
public boolean isSelected()
isSelected
in interface Content
public boolean isPinnable()
isPinnable
in interface Content
public void setPinnable(boolean pinnable)
setPinnable
in interface Content
public boolean isCloseable()
isCloseable
in interface Content
public void setCloseable(boolean closeable)
setCloseable
in interface Content
public void setActions(ActionGroup actions, java.lang.String place, javax.swing.JComponent contextComponent)
setActions
in interface Content
public javax.swing.JComponent getActionsContextComponent()
getActionsContextComponent
in interface Content
public ActionGroup getActions()
getActions
in interface Content
public java.lang.String toString()
toString
in class java.lang.Object
public void dispose()
Disposable
dispose
in interface Disposable
public AlertIcon getAlertIcon()
getAlertIcon
in interface Content
public void setAlertIcon(AlertIcon icon)
setAlertIcon
in interface Content
public void setBusyObject(BusyObject object)
setBusyObject
in interface Content
public java.lang.String getSeparator()
getSeparator
in interface Content
public void setSeparator(java.lang.String separator)
setSeparator
in interface Content
public void setPopupIcon(javax.swing.Icon icon)
setPopupIcon
in interface Content
public javax.swing.Icon getPopupIcon()
getPopupIcon
in interface Content
public BusyObject getBusyObject()
getBusyObject
in interface Content
public void setSearchComponent(javax.swing.JComponent comp)
setSearchComponent
in interface Content
public javax.swing.JComponent getSearchComponent()
getSearchComponent
in interface Content
public void setExecutionId(long executionId)
setExecutionId
in interface Content
executionId
- supposed to identify group of contents (for example "Before Launch" tasks and the main Run Configuration)public long getExecutionId()
getExecutionId
in interface Content
public void setHelpId(java.lang.String helpId)