public class WebRootPaneUI extends javax.swing.plaf.basic.BasicRootPaneUI implements Styleable, ShapeProvider, MarginSupport, PaddingSupport, javax.swing.SwingConstants
| Modifier and Type | Class and Description |
|---|---|
class |
WebRootPaneUI.TitleLabel
Custom decoration title label.
|
| Modifier and Type | Field and Description |
|---|---|
protected GroupPane |
buttonsPanel |
static javax.swing.ImageIcon |
closeActiveIcon |
protected WebButton |
closeButton |
static javax.swing.ImageIcon |
closeIcon |
protected java.awt.Dialog |
dialog |
protected boolean |
displayCloseButton |
protected boolean |
displayMaximizeButton |
protected boolean |
displayMenuBar |
protected boolean |
displayMinimizeButton |
protected boolean |
displayTitleComponent |
protected boolean |
displayWindowButtons |
protected java.lang.String |
emptyTitleText |
protected java.awt.Frame |
frame |
protected int |
iconSize
Style settings.
|
protected java.awt.LayoutManager |
layoutManager |
protected java.awt.Insets |
margin
Runtime variables
|
static javax.swing.ImageIcon |
maximizeActiveIcon |
protected WebButton |
maximizeButton |
static javax.swing.ImageIcon |
maximizeIcon |
static javax.swing.ImageIcon |
minimizeActiveIcon |
protected WebButton |
minimizeButton |
static javax.swing.ImageIcon |
minimizeIcon
Root pane styling icons.
|
protected java.awt.Insets |
padding |
protected IRootPanePainter |
painter
Component painter.
|
protected java.awt.LayoutManager |
previousLayoutManager |
protected java.beans.PropertyChangeListener |
resizableChangeListener |
static javax.swing.ImageIcon |
restoreActiveIcon |
static javax.swing.ImageIcon |
restoreIcon |
protected javax.swing.JRootPane |
root |
protected java.beans.PropertyChangeListener |
titleChangeListener |
protected javax.swing.JComponent |
titleComponent
Additional components used be the UI.
|
protected java.awt.Window |
window |
EMPTYEMPTY| Constructor and Description |
|---|
WebRootPaneUI() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
close()
Closes the Window.
|
protected javax.swing.JComponent |
createDefaultTitleComponent()
Returns default window title component.
|
static javax.swing.plaf.ComponentUI |
createUI(javax.swing.JComponent c)
Returns an instance of the WebRootPaneUI for the specified component.
|
protected javax.swing.ImageIcon |
generateProperIcon(java.awt.Image image)
Returns generated window icon of suitable size.
|
GroupPane |
getButtonsPanel()
Returns window buttons panel.
|
java.awt.Insets |
getMargin()
Returns current margin.
|
java.awt.Insets |
getPadding()
Returns current padding.
|
Painter |
getPainter()
Returns root pane painter.
|
java.awt.Dimension |
getPreferredSize(javax.swing.JComponent c) |
StyleId |
getStyleId()
Returns component style ID.
|
javax.swing.JComponent |
getTitleComponent()
Returns window title component.
|
protected javax.swing.ImageIcon |
getWindowIcon()
Returns window icon of suitable size.
|
protected java.lang.String |
getWindowTitle()
Returns window title.
|
protected void |
iconify()
Iconifies the Frame.
|
protected void |
installDecorationComponents()
Installs decoration components.
|
protected void |
installLayout()
Installs appropriate layout manager.
|
protected void |
installListeners()
Installs listeners.
|
protected void |
installOpacity()
Installs window opacity.
|
void |
installUI(javax.swing.JComponent c) |
protected void |
installWindowDecorations()
Installs window decorations.
|
boolean |
isDecorated()
Returns whether or not this root pane uses custom decoration for its window.
|
boolean |
isDialog()
Returns whether or not this root pane is attached to dialog.
|
boolean |
isDisplayCloseButton()
Returns whether or not window close button should be displayed.
|
boolean |
isDisplayMaximizeButton()
Returns whether or not window maximize button should be displayed.
|
boolean |
isDisplayMenuBar()
Returns whether or not menu bar should be displayed.
|
boolean |
isDisplayMinimizeButton()
Returns whether or not window minimize button should be displayed.
|
boolean |
isDisplayTitleComponent()
Returns whether or not window title component should be displayed.
|
boolean |
isDisplayWindowButtons()
Returns whether or not window buttons should be displayed.
|
boolean |
isFrame()
Returns whether or not this root pane is attached to frame.
|
boolean |
isIconified()
Returns whether or not window this root pane is attached to is maximized.
|
boolean |
isMaximized()
Returns whether or not window this root pane is attached to is maximized.
|
protected boolean |
isResizable()
Returns whether or not window is resizable.
|
protected void |
maximize()
Maximizes the Frame.
|
void |
paint(java.awt.Graphics g,
javax.swing.JComponent c) |
void |
propertyChange(java.beans.PropertyChangeEvent e) |
java.awt.Shape |
provideShape()
Returns component shape.
|
protected void |
restore()
Restores the Frame size.
|
void |
setDisplayCloseButton(boolean display)
Sets whether or not window close button should be displayed.
|
void |
setDisplayMaximizeButton(boolean display)
Sets whether or not window maximize button should be displayed.
|
void |
setDisplayMenuBar(boolean display)
Sets whether or not menu bar should be displayed.
|
void |
setDisplayMinimizeButton(boolean display)
Sets whether or not window minimize button should be displayed.
|
void |
setDisplayTitleComponent(boolean display)
Sets whether or not window title component should be displayed.
|
void |
setDisplayWindowButtons(boolean display)
Sets whether or not window buttons should be displayed.
|
void |
setMargin(java.awt.Insets margin)
Sets new margin.
|
void |
setPadding(java.awt.Insets padding)
Sets new padding.
|
void |
setPainter(Painter painter)
Sets root pane painter.
|
StyleId |
setStyleId(StyleId id)
Sets new component style ID.
|
void |
setTitleComponent(javax.swing.JComponent title)
Sets window title component.
|
protected void |
uninstallDecorationComponents()
Uninstalls decoration components.
|
protected void |
uninstallLayout()
Uninstalls layout manager.
|
protected void |
uninstallListeners()
Uninstalls listeners.
|
protected void |
uninstallOpacity()
Uninstalls window opacity.
|
protected void |
uninstallSettings()
Uninstalls settings used in runtime.
|
void |
uninstallUI(javax.swing.JComponent c) |
protected void |
uninstallWindowDecorations()
Uninstalls window decorations.
|
protected void |
updateButtons()
Updates displayed buttons
|
protected void |
updateWindowDecorations()
Updates window decorations.
|
installComponents, installDefaults, installKeyboardActions, installListeners, uninstallComponents, uninstallDefaults, uninstallKeyboardActions, uninstallListenerspublic static javax.swing.ImageIcon minimizeIcon
public static javax.swing.ImageIcon minimizeActiveIcon
public static javax.swing.ImageIcon maximizeIcon
public static javax.swing.ImageIcon maximizeActiveIcon
public static javax.swing.ImageIcon restoreIcon
public static javax.swing.ImageIcon restoreActiveIcon
public static javax.swing.ImageIcon closeIcon
public static javax.swing.ImageIcon closeActiveIcon
protected int iconSize
protected java.lang.String emptyTitleText
protected boolean displayTitleComponent
protected boolean displayWindowButtons
protected boolean displayMinimizeButton
protected boolean displayMaximizeButton
protected boolean displayCloseButton
protected boolean displayMenuBar
@DefaultPainter(value=RootPanePainter.class) protected IRootPanePainter painter
protected javax.swing.JComponent titleComponent
protected GroupPane buttonsPanel
protected WebButton minimizeButton
protected WebButton maximizeButton
protected WebButton closeButton
protected java.awt.Insets margin
protected java.awt.Insets padding
protected javax.swing.JRootPane root
protected java.awt.Window window
protected java.awt.Frame frame
protected java.awt.Dialog dialog
protected java.awt.LayoutManager previousLayoutManager
protected java.awt.LayoutManager layoutManager
protected java.beans.PropertyChangeListener titleChangeListener
protected java.beans.PropertyChangeListener resizableChangeListener
public static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent c)
c - component that will use UI instancepublic void installUI(javax.swing.JComponent c)
installUI in class javax.swing.plaf.basic.BasicRootPaneUIpublic void uninstallUI(javax.swing.JComponent c)
uninstallUI in class javax.swing.plaf.basic.BasicRootPaneUIpublic StyleId getStyleId()
StyleablegetStyleId in interface Styleablepublic StyleId setStyleId(StyleId id)
StyleablesetStyleId in interface Styleableid - custom component style IDpublic java.awt.Shape provideShape()
ShapeProviderprovideShape in interface ShapeProviderpublic java.awt.Insets getMargin()
MarginSupportgetMargin in interface MarginSupportpublic void setMargin(java.awt.Insets margin)
MarginSupportnull can be provided to set an empty [0,0,0,0] margin.setMargin in interface MarginSupportmargin - new marginpublic java.awt.Insets getPadding()
PaddingSupportgetPadding in interface PaddingSupportpublic void setPadding(java.awt.Insets padding)
PaddingSupportnull can be provided to set an empty [0,0,0,0] padding.setPadding in interface PaddingSupportpadding - new paddingpublic Painter getPainter()
public void setPainter(Painter painter)
painter - new root pane painterpublic boolean isDecorated()
public javax.swing.JComponent getTitleComponent()
public void setTitleComponent(javax.swing.JComponent title)
title - new window title componentpublic GroupPane getButtonsPanel()
public boolean isDisplayTitleComponent()
public void setDisplayTitleComponent(boolean display)
display - whether or not window title component should be displayedpublic boolean isDisplayWindowButtons()
public void setDisplayWindowButtons(boolean display)
display - whether or not window buttons should be displayedpublic boolean isDisplayMinimizeButton()
public void setDisplayMinimizeButton(boolean display)
display - whether or not window minimize button should be displayedpublic boolean isDisplayMaximizeButton()
public void setDisplayMaximizeButton(boolean display)
display - whether or not window maximize button should be displayedpublic boolean isDisplayCloseButton()
public void setDisplayCloseButton(boolean display)
display - whether or not window close button should be displayedpublic boolean isDisplayMenuBar()
public void setDisplayMenuBar(boolean display)
display - whether or not menu bar should be displayedpublic void propertyChange(java.beans.PropertyChangeEvent e)
propertyChange in interface java.beans.PropertyChangeListenerpropertyChange in class javax.swing.plaf.basic.BasicRootPaneUIprotected void updateWindowDecorations()
protected void installWindowDecorations()
protected void uninstallWindowDecorations()
protected void uninstallSettings()
protected void installListeners()
protected void uninstallListeners()
protected void installOpacity()
protected void uninstallOpacity()
protected void installLayout()
protected void uninstallLayout()
protected void installDecorationComponents()
protected void uninstallDecorationComponents()
protected javax.swing.JComponent createDefaultTitleComponent()
protected void updateButtons()
protected java.lang.String getWindowTitle()
protected javax.swing.ImageIcon getWindowIcon()
protected javax.swing.ImageIcon generateProperIcon(java.awt.Image image)
image - image used to generate icon of suitable sizeprotected void close()
protected void iconify()
protected void maximize()
protected void restore()
protected boolean isResizable()
public boolean isFrame()
public boolean isIconified()
public boolean isMaximized()
public boolean isDialog()
public void paint(java.awt.Graphics g,
javax.swing.JComponent c)
paint in class javax.swing.plaf.ComponentUIpublic java.awt.Dimension getPreferredSize(javax.swing.JComponent c)
getPreferredSize in class javax.swing.plaf.ComponentUI