public final class IdeStatusBarImpl extends javax.swing.JComponent implements javax.accessibility.Accessible, StatusBarEx, IdeEventQueue.EventDispatcher, DataProvider
Modifier and Type | Class and Description |
---|---|
protected class |
IdeStatusBarImpl.AccessibleIdeStatusBarImpl |
javax.swing.JComponent.AccessibleJComponent
java.awt.Container.AccessibleAWTContainer
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BaselineResizeBehavior, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
StatusBar.Anchors, StatusBar.Info, StatusBar.StandardWidgets
Disposable.Parent
Modifier and Type | Field and Description |
---|---|
static DataKey<java.lang.String> |
HOVERED_WIDGET_ID |
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
Constructor and Description |
---|
IdeStatusBarImpl(IdeFrame frame,
boolean addToolWindowsWidget) |
Modifier and Type | Method and Description |
---|---|
void |
addCustomIndicationComponent(javax.swing.JComponent c) |
void |
addProgress(ProgressIndicatorEx indicator,
TaskInfo info) |
void |
addWidget(StatusBarWidget widget)
Adds the given widget on the right.
|
void |
addWidget(StatusBarWidget widget,
Disposable parentDisposable)
Adds the given widget on the right.
|
void |
addWidget(StatusBarWidget widget,
java.lang.String anchor)
Adds the given widget positioned according to given anchor (see
StatusBar.Anchors ). |
void |
addWidget(StatusBarWidget widget,
java.lang.String anchor,
Disposable parentDisposable)
Adds the given widget positioned according to given anchor (see
StatusBar.Anchors ). |
StatusBar |
createChild(IdeFrame frame) |
boolean |
dispatch(java.awt.AWTEvent e) |
void |
dispose()
Usually not invoked directly, see class javadoc.
|
StatusBar |
findChild(java.awt.Component c) |
void |
fireNotificationPopup(javax.swing.JComponent content,
java.awt.Color backgroundColor) |
javax.accessibility.AccessibleContext |
getAccessibleContext() |
java.util.List<Pair<TaskInfo,ProgressIndicator>> |
getBackgroundProcesses() |
javax.swing.JComponent |
getComponent() |
protected java.awt.Graphics |
getComponentGraphics(java.awt.Graphics g) |
java.lang.Object |
getData(java.lang.String dataId)
Returns the object corresponding to the specified data identifier.
|
IdeFrame |
getFrame() |
java.lang.String |
getInfo() |
java.awt.Dimension |
getPreferredSize() |
Project |
getProject() |
java.lang.String |
getUIClassID() |
StatusBarWidget |
getWidget(java.lang.String id) |
javax.swing.JComponent |
getWidgetComponent(java.lang.String id) |
boolean |
isProcessWindowOpen() |
BalloonHandler |
notifyProgressByBalloon(MessageType type,
java.lang.String htmlBody) |
BalloonHandler |
notifyProgressByBalloon(MessageType type,
java.lang.String htmlBody,
javax.swing.Icon icon,
javax.swing.event.HyperlinkListener listener) |
void |
removeCustomIndicationComponent(javax.swing.JComponent c) |
void |
removeWidget(java.lang.String id)
For external usages use
StatusBarWidgetFactory . |
void |
setInfo(java.lang.String s)
Set status bar text
|
void |
setInfo(java.lang.String s,
java.lang.String requestor) |
void |
setProcessWindowOpen(boolean open) |
void |
setVisible(boolean aFlag) |
void |
startRefreshIndication(java.lang.String tooltipText) |
void |
stopRefreshIndication() |
void |
updateUI() |
void |
updateWidget(java.lang.String id) |
static javax.swing.JComponent |
wrap(StatusBarWidget widget) |
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getUI, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, paramString, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, unregisterKeyboardAction, update
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate, validateTree
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setMixingCutoutShape, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getSize, isVisible
createChild, install
public static final DataKey<java.lang.String> HOVERED_WIDGET_ID
public IdeStatusBarImpl(IdeFrame frame, boolean addToolWindowsWidget)
public StatusBar findChild(java.awt.Component c)
public StatusBar createChild(IdeFrame frame)
createChild
in interface StatusBar
public javax.swing.JComponent getComponent()
getComponent
in interface StatusBar
public java.awt.Dimension getPreferredSize()
getPreferredSize
in class javax.swing.JComponent
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 void setVisible(boolean aFlag)
setVisible
in class javax.swing.JComponent
public void addWidget(StatusBarWidget widget)
StatusBar
public void addWidget(StatusBarWidget widget, java.lang.String anchor)
StatusBar
StatusBar.Anchors
).public void addWidget(StatusBarWidget widget, Disposable parentDisposable)
StatusBar
For external usages use StatusBarWidgetFactory
.
public void addWidget(StatusBarWidget widget, java.lang.String anchor, Disposable parentDisposable)
StatusBar
StatusBar.Anchors
).
For external usages use StatusBarWidgetFactory
.
public void addCustomIndicationComponent(javax.swing.JComponent c)
addCustomIndicationComponent
in interface StatusBar
public void removeCustomIndicationComponent(javax.swing.JComponent c)
removeCustomIndicationComponent
in interface StatusBar
public void dispose()
Disposable
dispose
in interface Disposable
public void setInfo(java.lang.String s)
StatusBarInfo
setInfo
in interface StatusBarInfo
s
- text to be shown in the status barpublic void setInfo(java.lang.String s, java.lang.String requestor)
setInfo
in interface StatusBarInfo
public java.lang.String getInfo()
getInfo
in interface StatusBarInfo
public void addProgress(ProgressIndicatorEx indicator, TaskInfo info)
addProgress
in interface StatusBarEx
public java.util.List<Pair<TaskInfo,ProgressIndicator>> getBackgroundProcesses()
getBackgroundProcesses
in interface StatusBarEx
public void setProcessWindowOpen(boolean open)
setProcessWindowOpen
in interface StatusBarEx
public boolean isProcessWindowOpen()
isProcessWindowOpen
in interface StatusBarEx
public void startRefreshIndication(java.lang.String tooltipText)
startRefreshIndication
in interface StatusBarEx
public void stopRefreshIndication()
stopRefreshIndication
in interface StatusBarEx
public BalloonHandler notifyProgressByBalloon(MessageType type, java.lang.String htmlBody)
notifyProgressByBalloon
in interface StatusBarEx
public BalloonHandler notifyProgressByBalloon(MessageType type, java.lang.String htmlBody, javax.swing.Icon icon, javax.swing.event.HyperlinkListener listener)
notifyProgressByBalloon
in interface StatusBarEx
public void fireNotificationPopup(javax.swing.JComponent content, java.awt.Color backgroundColor)
fireNotificationPopup
in interface StatusBar
public static javax.swing.JComponent wrap(StatusBarWidget widget)
public boolean dispatch(java.awt.AWTEvent e)
dispatch
in interface IdeEventQueue.EventDispatcher
public java.lang.String getUIClassID()
getUIClassID
in class javax.swing.JComponent
public void updateUI()
updateUI
in class javax.swing.JComponent
protected java.awt.Graphics getComponentGraphics(java.awt.Graphics g)
getComponentGraphics
in class javax.swing.JComponent
public void removeWidget(java.lang.String id)
StatusBar
StatusBarWidgetFactory
.removeWidget
in interface StatusBar
public void updateWidget(java.lang.String id)
updateWidget
in interface StatusBar
public StatusBarWidget getWidget(java.lang.String id)
public javax.swing.JComponent getWidgetComponent(java.lang.String id)
public Project getProject()
getProject
in interface StatusBar
public javax.accessibility.AccessibleContext getAccessibleContext()
getAccessibleContext
in interface javax.accessibility.Accessible
getAccessibleContext
in class java.awt.Component