|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.swing.plaf.ComponentUI javax.swing.plaf.RootPaneUI javax.swing.plaf.basic.BasicRootPaneUI com.alee.laf.rootpane.WebRootPaneUI
public class WebRootPaneUI
Custom UI for JRootPane component. This UI also includes custom frame and dialog decorations.
Nested Class Summary | |
---|---|
protected class |
WebRootPaneUI.TitleLabel
|
Field Summary | |
---|---|
protected boolean |
attachButtons
|
protected java.awt.Color |
borderColor
|
static javax.swing.ImageIcon |
closeActiveIcon
|
static javax.swing.ImageIcon |
closeIcon
|
protected java.awt.Dialog |
dialog
|
protected boolean |
drawWatermark
|
protected java.lang.String |
emptyTitleText
|
protected java.awt.Frame |
frame
|
protected boolean |
groupButtons
|
protected int |
inactiveShadeWidth
|
protected java.awt.Color |
innerBorderColor
|
protected java.awt.LayoutManager |
layoutManager
|
protected java.awt.Insets |
margin
|
static javax.swing.ImageIcon |
maximizeActiveIcon
|
static javax.swing.ImageIcon |
maximizeIcon
|
protected int |
maxTitleWidth
|
protected java.awt.Color |
middleBg
|
static javax.swing.ImageIcon |
minimizeActiveIcon
|
static javax.swing.ImageIcon |
minimizeIcon
Root pane styling icons. |
protected java.beans.PropertyChangeListener |
resizableChangeListener
|
protected WebResizeCorner |
resizeCorner
|
static javax.swing.ImageIcon |
restoreActiveIcon
|
static javax.swing.ImageIcon |
restoreIcon
|
protected javax.swing.JRootPane |
root
|
protected int |
round
|
protected java.awt.LayoutManager |
savedOldLayout
|
protected int |
shadeWidth
|
protected boolean |
showCloseButton
|
protected boolean |
showMaximizeButton
|
protected boolean |
showMenuBar
|
protected boolean |
showMinimizeButton
|
protected boolean |
showResizeCorner
|
protected boolean |
showTitleComponent
Displayed window elements. |
protected boolean |
showWindowButtons
|
protected int |
state
|
protected boolean |
styled
Runtime variables |
protected java.beans.PropertyChangeListener |
titleChangeListener
|
protected javax.swing.JComponent |
titleComponent
|
protected java.awt.Color |
topBg
Style settings. |
protected javax.swing.ImageIcon |
watermark
|
protected java.awt.Window |
window
|
protected WebButtonGroup |
windowButtons
|
protected java.awt.event.WindowFocusListener |
windowFocusListener
|
protected java.awt.event.WindowStateListener |
windowStateListener
|
Fields inherited from interface javax.swing.SwingConstants |
---|
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST |
Constructor Summary | |
---|---|
WebRootPaneUI()
|
Method Summary | |
---|---|
protected void |
close()
Closes the Window. |
protected javax.swing.JComponent |
createDefaultTitleComponent()
|
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)
|
java.awt.Color |
getBorderColor()
|
java.lang.String |
getEmptyTitleText()
|
int |
getInactiveShadeWidth()
|
java.awt.Color |
getInnerBorderColor()
|
java.awt.Insets |
getMargin()
|
int |
getMaxTitleWidth()
|
java.awt.Color |
getMiddleBg()
|
WebResizeCorner |
getResizeCorner()
|
int |
getRound()
|
protected NinePatchIcon |
getShadeIcon(javax.swing.JComponent c)
|
int |
getShadeWidth()
|
protected int |
getShadeWidth(javax.swing.JComponent c)
|
javax.swing.JComponent |
getTitleComponent()
|
java.awt.Color |
getTopBg()
|
javax.swing.ImageIcon |
getWatermark()
|
protected java.awt.geom.RoundRectangle2D.Double |
getWatermarkClip(javax.swing.JComponent c)
|
WebButtonGroup |
getWindowButtons()
|
protected javax.swing.ImageIcon |
getWindowIcon()
Finds a frame image with most suitable size |
protected java.lang.String |
getWindowTitle()
Returns window title |
protected void |
iconify()
Iconifies the Frame. |
protected void |
installBorder()
Decoration border install and uninstall methods |
protected void |
installDecorationComponents()
Resize corner |
protected void |
installLayout()
Appropriate LayoutManager for the window decorations install and uninstall methods |
protected void |
installListeners()
Listeners |
protected void |
installProperties()
Specific properties |
protected void |
installTransparency()
Window transparency |
void |
installUI(javax.swing.JComponent c)
|
protected void |
installWindowDecorations()
Decoration install and uninstall methods |
protected boolean |
isActive(javax.swing.JComponent c)
|
boolean |
isAttachButtons()
|
protected boolean |
isDialog()
Checks if root pane is inside a dialog |
boolean |
isDrawWatermark()
|
protected boolean |
isFrame()
Checks if root pane is inside a frame |
protected boolean |
isFrameMaximized()
Checks if frame is maximized |
boolean |
isGroupButtons()
|
protected boolean |
isResizable()
Checks if root pane's window is resizable |
boolean |
isShowCloseButton()
|
boolean |
isShowMaximizeButton()
|
boolean |
isShowMenuBar()
|
boolean |
isShowMinimizeButton()
|
boolean |
isShowResizeCorner()
Window elements settings |
boolean |
isShowTitleComponent()
|
boolean |
isShowWindowButtons()
|
boolean |
isStyled()
UI parameters |
protected void |
maximize()
Maximizes the Frame. |
void |
paint(java.awt.Graphics g,
javax.swing.JComponent c)
Custom window decoration |
void |
propertyChange(java.beans.PropertyChangeEvent e)
Listening to decoration changes |
protected void |
restore()
Restores the Frame size. |
void |
setAttachButtons(boolean attachButtons)
|
void |
setBorderColor(java.awt.Color borderColor)
|
void |
setDrawWatermark(boolean drawWatermark)
|
void |
setEmptyTitleText(java.lang.String emptyTitleText)
|
void |
setGroupButtons(boolean groupButtons)
|
void |
setInactiveShadeWidth(int inactiveShadeWidth)
|
void |
setInnerBorderColor(java.awt.Color innerBorderColor)
|
void |
setMargin(java.awt.Insets margin)
|
void |
setMaxTitleWidth(int maxTitleWidth)
|
void |
setMiddleBg(java.awt.Color middleBg)
|
void |
setRound(int round)
|
void |
setShadeWidth(int shadeWidth)
|
void |
setShowCloseButton(boolean showCloseButton)
|
void |
setShowMaximizeButton(boolean showMaximizeButton)
|
void |
setShowMenuBar(boolean showMenuBar)
|
void |
setShowMinimizeButton(boolean showMinimizeButton)
|
void |
setShowResizeCorner(boolean showResizeCorner)
|
void |
setShowTitleComponent(boolean showTitleComponent)
|
void |
setShowWindowButtons(boolean showWindowButtons)
|
void |
setTitleComponent(javax.swing.JComponent titleComponent)
|
void |
setTopBg(java.awt.Color topBg)
|
void |
setWatermark(javax.swing.ImageIcon watermark)
|
protected void |
uninstallBorder()
|
protected void |
uninstallDecorationComponents()
|
protected void |
uninstallLayout()
|
protected void |
uninstallListeners()
|
protected void |
uninstallProperties()
|
protected void |
uninstallTransparency()
|
void |
uninstallUI(javax.swing.JComponent c)
|
protected void |
uninstallWindowDecorations()
|
protected void |
updateButtons()
|
protected void |
updateWindowButtonsStyle()
|
Methods inherited from class javax.swing.plaf.basic.BasicRootPaneUI |
---|
installComponents, installDefaults, installKeyboardActions, installListeners, uninstallComponents, uninstallDefaults, uninstallKeyboardActions, uninstallListeners |
Methods inherited from class javax.swing.plaf.ComponentUI |
---|
contains, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior, getMaximumSize, getMinimumSize, getPreferredSize, update |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public 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 java.awt.Color topBg
protected java.awt.Color middleBg
protected java.awt.Color borderColor
protected java.awt.Color innerBorderColor
protected int shadeWidth
protected int inactiveShadeWidth
protected int round
protected java.awt.Insets margin
protected boolean drawWatermark
protected javax.swing.ImageIcon watermark
protected int maxTitleWidth
protected java.lang.String emptyTitleText
protected boolean showTitleComponent
protected boolean showMenuBar
protected boolean showWindowButtons
protected boolean showMinimizeButton
protected boolean showMaximizeButton
protected boolean showCloseButton
protected boolean groupButtons
protected boolean attachButtons
protected boolean showResizeCorner
protected boolean styled
protected javax.swing.JRootPane root
protected java.awt.Window window
protected java.awt.Frame frame
protected java.awt.Dialog dialog
protected int state
protected java.awt.LayoutManager layoutManager
protected java.awt.LayoutManager savedOldLayout
protected java.awt.event.WindowFocusListener windowFocusListener
protected java.beans.PropertyChangeListener titleChangeListener
protected java.beans.PropertyChangeListener resizableChangeListener
protected java.awt.event.WindowStateListener windowStateListener
protected javax.swing.JComponent titleComponent
protected WebButtonGroup windowButtons
protected WebResizeCorner resizeCorner
Constructor Detail |
---|
public WebRootPaneUI()
Method Detail |
---|
public static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent c)
c
- component that will use UI instance
public void installUI(javax.swing.JComponent c)
installUI
in class javax.swing.plaf.basic.BasicRootPaneUI
public void uninstallUI(javax.swing.JComponent c)
uninstallUI
in class javax.swing.plaf.basic.BasicRootPaneUI
public boolean isStyled()
public java.awt.Color getTopBg()
public void setTopBg(java.awt.Color topBg)
public java.awt.Color getMiddleBg()
public void setMiddleBg(java.awt.Color middleBg)
public java.awt.Color getBorderColor()
public void setBorderColor(java.awt.Color borderColor)
public java.awt.Color getInnerBorderColor()
public void setInnerBorderColor(java.awt.Color innerBorderColor)
public int getShadeWidth()
public void setShadeWidth(int shadeWidth)
public int getInactiveShadeWidth()
public void setInactiveShadeWidth(int inactiveShadeWidth)
public int getRound()
public void setRound(int round)
public java.awt.Insets getMargin()
public void setMargin(java.awt.Insets margin)
public boolean isDrawWatermark()
public void setDrawWatermark(boolean drawWatermark)
public javax.swing.ImageIcon getWatermark()
public void setWatermark(javax.swing.ImageIcon watermark)
public int getMaxTitleWidth()
public void setMaxTitleWidth(int maxTitleWidth)
public java.lang.String getEmptyTitleText()
public void setEmptyTitleText(java.lang.String emptyTitleText)
public javax.swing.JComponent getTitleComponent()
public void setTitleComponent(javax.swing.JComponent titleComponent)
public WebButtonGroup getWindowButtons()
public WebResizeCorner getResizeCorner()
public boolean isShowResizeCorner()
public void setShowResizeCorner(boolean showResizeCorner)
public boolean isShowTitleComponent()
public void setShowTitleComponent(boolean showTitleComponent)
public boolean isShowWindowButtons()
public void setShowWindowButtons(boolean showWindowButtons)
public boolean isShowMinimizeButton()
public void setShowMinimizeButton(boolean showMinimizeButton)
public boolean isShowMaximizeButton()
public void setShowMaximizeButton(boolean showMaximizeButton)
public boolean isShowCloseButton()
public void setShowCloseButton(boolean showCloseButton)
public boolean isGroupButtons()
public void setGroupButtons(boolean groupButtons)
public boolean isAttachButtons()
public void setAttachButtons(boolean attachButtons)
public boolean isShowMenuBar()
public void setShowMenuBar(boolean showMenuBar)
public void propertyChange(java.beans.PropertyChangeEvent e)
propertyChange
in interface java.beans.PropertyChangeListener
propertyChange
in class javax.swing.plaf.basic.BasicRootPaneUI
protected void installWindowDecorations()
protected void uninstallWindowDecorations()
protected void installProperties()
protected void uninstallProperties()
protected void installListeners()
protected void uninstallListeners()
protected void installTransparency()
protected void uninstallTransparency()
protected void installBorder()
protected void uninstallBorder()
protected void installLayout()
protected void uninstallLayout()
protected void installDecorationComponents()
protected javax.swing.JComponent createDefaultTitleComponent()
protected void updateButtons()
protected void updateWindowButtonsStyle()
protected void uninstallDecorationComponents()
protected java.lang.String getWindowTitle()
protected javax.swing.ImageIcon getWindowIcon()
protected javax.swing.ImageIcon generateProperIcon(java.awt.Image image)
protected void close()
protected void iconify()
protected void maximize()
protected void restore()
protected boolean isResizable()
protected boolean isFrame()
protected boolean isFrameMaximized()
protected boolean isDialog()
public void paint(java.awt.Graphics g, javax.swing.JComponent c)
paint
in class javax.swing.plaf.ComponentUI
protected java.awt.geom.RoundRectangle2D.Double getWatermarkClip(javax.swing.JComponent c)
protected NinePatchIcon getShadeIcon(javax.swing.JComponent c)
protected int getShadeWidth(javax.swing.JComponent c)
protected boolean isActive(javax.swing.JComponent c)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |