E - component typeU - component UI typeD - decoration typepublic class RootPanePainter<E extends javax.swing.JRootPane,U extends WebRootPaneUI,D extends IDecoration<E,D>> extends AbstractContainerPainter<E,U,D> implements IRootPanePainter<E,U>
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
maximized
Runtime variables.
|
protected java.awt.event.WindowFocusListener |
windowFocusListener
Listeners.
|
protected java.awt.event.WindowStateListener |
windowStateListener |
ancestor, DECORATION_STATES_PROPERTY, decorationCache, decorations, focused, focusStateTracker, hierarchyTracker, hover, hoverStateTracker, neighboursTracker, statescomponent, listeners, ltr, propertyChangeListener, ui| Constructor and Description |
|---|
RootPanePainter() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
disableWindowDecoration(E c,
java.awt.Window window)
Disables root pane window decoration.
|
protected void |
enableWindowDecoration(E c,
java.awt.Window window)
Enables root pane window decoration.
|
protected java.util.List<java.lang.String> |
getDecorationStates()
Returns current component decoration states.
|
void |
install(E c,
U ui)
Called when painter is installed onto some component.
|
protected void |
installFocusListener()
Installs listener that will perform decoration updates on focus state change.
|
protected boolean |
isActive(E c)
Returns whether or not root pane window is currently active.
|
void |
uninstall(E c,
U ui)
Called when painter is installed into some component.
|
protected void |
uninstallFocusListener()
Uninstalls listener that performs decoration updates on focus state change.
|
adjustBounds, asList, collectDecorationStates, getBorders, getDecoration, getDecorations, getDecorationSize, getPreferredSize, getSectionPainters, installHierarchyListener, installHoverListener, isDecorated, isDecorationPaintAllowed, isEnabled, isFocused, isHover, isOpaque, isOpaqueDecorated, isOpaqueUndecorated, isPlainBackgroundPaintAllowed, paint, paintContent, propertyChange, provideShape, uninstallHierarchyListener, uninstallHoverListener, updateDecorationState, usesState, usesStateaddPainterListener, b, borderChange, getCompleteBorder, i, i, i, installPropertyChangeListener, isSectionPainter, isSettingsUpdateAllowed, orientationChange, p, removePainterListener, repaint, repaint, repaint, revalidate, saveOrientation, uninstallPropertyChangeListener, updateAll, updateBorder, updateOpacity, updateOrientationclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisDecoratedaddPainterListener, getBorders, getPreferredSize, isOpaque, paint, removePainterListenerprotected java.awt.event.WindowFocusListener windowFocusListener
protected java.awt.event.WindowStateListener windowStateListener
protected boolean maximized
public void install(E c, U ui)
Painterinstall in interface Painter<E extends javax.swing.JRootPane,U extends WebRootPaneUI>install in class AbstractDecorationPainter<E extends javax.swing.JRootPane,U extends WebRootPaneUI,D extends IDecoration<E,D>>c - component this painter is being installed ontoui - component UIpublic void uninstall(E c, U ui)
Painteruninstall in interface Painter<E extends javax.swing.JRootPane,U extends WebRootPaneUI>uninstall in class AbstractDecorationPainter<E extends javax.swing.JRootPane,U extends WebRootPaneUI,D extends IDecoration<E,D>>c - component this painter is being uninstalled fromui - component UIprotected void installFocusListener()
AbstractDecorationPainterinstallFocusListener in class AbstractDecorationPainter<E extends javax.swing.JRootPane,U extends WebRootPaneUI,D extends IDecoration<E,D>>protected void uninstallFocusListener()
AbstractDecorationPainteruninstallFocusListener in class AbstractDecorationPainter<E extends javax.swing.JRootPane,U extends WebRootPaneUI,D extends IDecoration<E,D>>protected java.util.List<java.lang.String> getDecorationStates()
AbstractDecorationPaintergetDecorationStates in class AbstractDecorationPainter<E extends javax.swing.JRootPane,U extends WebRootPaneUI,D extends IDecoration<E,D>>protected void enableWindowDecoration(E c, java.awt.Window window)
c - root panewindow - window to enable decoration forprotected void disableWindowDecoration(E c, java.awt.Window window)
c - root panewindow - window to disable decoration forprotected boolean isActive(E c)
c - root pane