public class WebPanel extends javax.swing.JPanel implements Styleable, ShapeProvider, PartialDecoration, SizeMethods<WebPanel>, com.alee.managers.language.LanguageContainerMethods
javax.swing.JPanel.AccessibleJPaneljavax.swing.JComponent.AccessibleJComponentaccessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW| Constructor and Description |
|---|
WebPanel()
Constructs new panel.
|
WebPanel(boolean decorated)
Constructs new panel which is either decorated or undecorated.
|
WebPanel(boolean decorated,
java.awt.Component component)
Constructs new panel which is either decorated or undecorated.
|
WebPanel(boolean decorated,
java.awt.LayoutManager layout)
Constructs new panel with the specified layout which is either decorated or undecorated.
|
WebPanel(java.awt.Component component)
Constructs new panel with the specified component automatically added into panel's center area.
|
WebPanel(java.awt.LayoutManager layout)
Constructs new panel with the specified layout.
|
WebPanel(java.awt.LayoutManager layout,
boolean isDoubleBuffered)
Constructs new panel with the specified layout and double-buffered mark.
|
WebPanel(java.awt.LayoutManager layout,
java.awt.Component... components)
Constructs new panel with the specified layout.
|
WebPanel(java.awt.LayoutManager layout,
Painter painter)
Constructs new panel with the specified layout and painter.
|
WebPanel(java.awt.LayoutManager layout,
Painter painter,
java.awt.Component... components)
Constructs new panel with the specified layout and painter.
|
WebPanel(Painter painter)
Constructs new panel with the specified painter.
|
WebPanel(Painter painter,
java.awt.Component component)
Constructs new panel with the specified painter.
|
WebPanel(java.lang.String styleId)
Constructs new panel with the specified style ID.
|
WebPanel(java.lang.String styleId,
java.awt.Component component)
Constructs new panel with the specified style ID.
|
WebPanel(java.lang.String styleId,
java.awt.LayoutManager layout)
Constructs new panel with the specified style ID.
|
| Modifier and Type | Method and Description |
|---|---|
WebPanel |
add(java.awt.Component... components)
Adds all specified components into the panel.
|
WebPanel |
add(int index,
java.awt.Component... components)
Adds all components into the panel under the specified index.
|
WebPanel |
add(java.util.List<? extends java.awt.Component> components)
Adds all components from the list into the panel.
|
WebPanel |
add(java.util.List<? extends java.awt.Component> components,
int index)
Adds all components from the list into the panel under the specified index.
|
WebPanel |
add(java.util.List<? extends java.awt.Component> components,
java.lang.String constraints)
Adds all components from the list into the panel under the specified constraints.
|
WebPanel |
add(java.lang.String constraints,
java.awt.Component... components)
Adds all components into the panel under the specified constraints.
|
java.awt.Color |
getBorderColor()
Returns decoration border color.
|
java.awt.Stroke |
getBorderStroke()
Returns decoration border stroke.
|
java.awt.Color |
getDisabledBorderColor()
Returns decoration disabled border color.
|
java.awt.Component |
getFirstComponent()
Returns first component contained in this panel.
|
java.lang.String |
getLanguageContainerKey() |
java.awt.Component |
getLastComponent()
Returns last component contained in this panel.
|
java.awt.Insets |
getMargin()
Returns panel margin.
|
int |
getMinimumHeight()
Returns component minimum height.
|
int |
getMinimumWidth()
Returns component minimum width.
|
Painter |
getPainter()
Returns panel painter.
|
int |
getPreferredHeight()
Returns component preferred height.
|
java.awt.Dimension |
getPreferredSize()
Returns component preferred size.
|
int |
getPreferredWidth()
Returns component preferred width.
|
int |
getRound()
Returns decoration corners rounding.
|
float |
getShadeTransparency()
Returns decoration shade transparency.
|
int |
getShadeWidth()
Returns decoration shade width.
|
java.lang.String |
getStyleId()
Returns component style ID.
|
WebPanelUI |
getWebUI()
Returns Web-UI applied to this class.
|
boolean |
isPaintBackground()
Returns whether should paint decoration background or not.
|
boolean |
isPaintBottom()
Returns whether should paint bottom side or not.
|
boolean |
isPaintBottomLine()
Returns whether should paint bottom side line or not.
|
boolean |
isPaintFocus()
Returns whether focus should be painted or not.
|
boolean |
isPaintLeft()
Returns whether should paint left side or not.
|
boolean |
isPaintLeftLine()
Returns whether should paint left side line or not.
|
boolean |
isPaintRight()
Returns whether should paint right side or not.
|
boolean |
isPaintRightLine()
Returns whether should paint right side line or not.
|
boolean |
isPaintTop()
Returns whether should paint top side or not.
|
boolean |
isPaintTopLine()
Returns whether should paint top side line or not.
|
boolean |
isUndecorated()
Returns whether panel is undecorated or not.
|
boolean |
isWebColoredBackground()
Returns whether should paint web-styled background or not.
|
java.awt.Shape |
provideShape()
Returns component shape.
|
void |
removeLanguageContainerKey() |
WebPanel |
setBorderColor(java.awt.Color color)
Sets decoration border color.
|
WebPanel |
setBorderStroke(java.awt.Stroke stroke)
Sets decoration border stroke.
|
WebPanel |
setDisabledBorderColor(java.awt.Color color)
Sets decoration disabled border color.
|
void |
setLanguageContainerKey(java.lang.String key) |
void |
setMargin(java.awt.Insets margin)
Sets panel margin.
|
WebPanel |
setMargin(int spacing)
Sets panel margin.
|
WebPanel |
setMargin(int top,
int left,
int bottom,
int right)
Sets panel margin.
|
WebPanel |
setMinimumHeight(int minimumHeight)
Sets component minimum height.
|
WebPanel |
setMinimumWidth(int minimumWidth)
Sets component minimum width.
|
WebPanel |
setPaintBackground(boolean paint)
Sets whether should paint decoration background or not.
|
void |
setPaintBottom(boolean bottom)
Sets whether should paint bottom side or not.
|
void |
setPaintBottomLine(boolean bottom)
Sets whether should paint bottom side line or not.
|
WebPanel |
setPainter(Painter painter)
Sets panel painter.
|
WebPanel |
setPaintFocus(boolean paint)
Sets whether focus should be painted or not.
|
void |
setPaintLeft(boolean left)
Sets whether should paint left side or not.
|
void |
setPaintLeftLine(boolean left)
Sets whether should paint left side line or not.
|
void |
setPaintRight(boolean right)
Sets whether should paint right side or not.
|
void |
setPaintRightLine(boolean right)
Sets whether should paint right side line or not.
|
void |
setPaintSideLines(boolean top,
boolean left,
boolean bottom,
boolean right)
Sets whether should paint specific side lines or not.
|
void |
setPaintSides(boolean top,
boolean left,
boolean bottom,
boolean right)
Sets whether should paint specific sides or not.
|
void |
setPaintTop(boolean top)
Sets whether should paint top side or not.
|
void |
setPaintTopLine(boolean top)
Sets whether should paint top side line or not.
|
WebPanel |
setPreferredHeight(int preferredHeight)
Sets component preferred height.
|
WebPanel |
setPreferredWidth(int preferredWidth)
Sets component preferred width.
|
WebPanel |
setRound(int round)
Sets decoration corners rounding.
|
WebPanel |
setShadeTransparency(float transparency)
Sets decoration shade transparency.
|
WebPanel |
setShadeWidth(int shadeWidth)
Sets decoration shade width.
|
void |
setStyleId(java.lang.String id)
Sets custom component style ID.
|
WebPanel |
setUndecorated(boolean undecorated)
Sets whether panel should be undecorated or not.
|
WebPanel |
setWebColoredBackground(boolean webColored)
Sets whether should paint web-styled background or not.
|
void |
updateUI()
Installs a Web-UI into this component.
|
getAccessibleContext, getUI, getUIClassID, paramString, setUIaddAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, 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, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, 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, setVisible, unregisterKeyboardAction, updateadd, 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, validateTreeaction, 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, getPeer, 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, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCyclepublic WebPanel()
public WebPanel(boolean decorated)
decorated - whether panel should be decorated or notpublic WebPanel(boolean decorated,
java.awt.LayoutManager layout)
decorated - whether panel should be decorated or notlayout - panel layoutpublic WebPanel(boolean decorated,
java.awt.Component component)
decorated - whether panel should be decorated or notcomponent - component to add into the panelpublic WebPanel(java.awt.Component component)
component - component to add into the panelpublic WebPanel(Painter painter)
painter - panel painterpublic WebPanel(java.awt.LayoutManager layout,
Painter painter)
layout - panel layoutpainter - panel painterpublic WebPanel(Painter painter, java.awt.Component component)
painter - panel paintercomponent - component to add into the panelpublic WebPanel(java.awt.LayoutManager layout,
Painter painter,
java.awt.Component... components)
layout - panel layoutpainter - panel paintercomponents - components to add into panelpublic WebPanel(java.awt.LayoutManager layout)
layout - panel layoutpublic WebPanel(java.awt.LayoutManager layout,
boolean isDoubleBuffered)
layout - panel layoutisDoubleBuffered - whether panel should be double-buffered or notpublic WebPanel(java.awt.LayoutManager layout,
java.awt.Component... components)
layout - panel layoutcomponents - components to add into panelpublic WebPanel(java.lang.String styleId)
styleId - style IDpublic WebPanel(java.lang.String styleId,
java.awt.LayoutManager layout)
styleId - style IDlayout - panel layoutpublic WebPanel(java.lang.String styleId,
java.awt.Component component)
styleId - style IDcomponent - component to add into panelpublic WebPanel add(java.util.List<? extends java.awt.Component> components, int index)
components - components to add into panelindex - index where components should be placedpublic WebPanel add(java.util.List<? extends java.awt.Component> components, java.lang.String constraints)
components - components to add into panelconstraints - constraints for all componentspublic WebPanel add(java.util.List<? extends java.awt.Component> components)
components - components to add into panelpublic WebPanel add(int index, java.awt.Component... components)
index - index where components should be placedcomponents - components to add into panelpublic WebPanel add(java.lang.String constraints, java.awt.Component... components)
constraints - constraints for all componentscomponents - components to add into panelpublic WebPanel add(java.awt.Component... components)
components - components to add into panelpublic java.awt.Component getFirstComponent()
public java.awt.Component getLastComponent()
public boolean isUndecorated()
public WebPanel setUndecorated(boolean undecorated)
undecorated - whether panel should be undecorated or notpublic boolean isPaintFocus()
public WebPanel setPaintFocus(boolean paint)
paint - whether focus should be painted or notpublic java.awt.Insets getMargin()
public void setMargin(java.awt.Insets margin)
margin - new panel marginpublic WebPanel setMargin(int top, int left, int bottom, int right)
top - top panel marginleft - left panel marginbottom - bottom panel marginright - right panel marginpublic WebPanel setMargin(int spacing)
spacing - panel marginpublic boolean isPaintTop()
public void setPaintTop(boolean top)
setPaintTop in interface PartialDecorationtop - whether should paint top side or notpublic boolean isPaintLeft()
public void setPaintLeft(boolean left)
setPaintLeft in interface PartialDecorationleft - whether should paint left side or notpublic boolean isPaintBottom()
public void setPaintBottom(boolean bottom)
setPaintBottom in interface PartialDecorationbottom - whether should paint bottom side or notpublic boolean isPaintRight()
public void setPaintRight(boolean right)
setPaintRight in interface PartialDecorationright - whether should paint right side or notpublic void setPaintSides(boolean top,
boolean left,
boolean bottom,
boolean right)
setPaintSides in interface PartialDecorationtop - whether should paint top side or notleft - whether should paint left side or notbottom - whether should paint bottom side or notright - whether should paint right side or notpublic boolean isPaintTopLine()
public void setPaintTopLine(boolean top)
setPaintTopLine in interface PartialDecorationtop - whether should paint top side line or notpublic boolean isPaintLeftLine()
public void setPaintLeftLine(boolean left)
setPaintLeftLine in interface PartialDecorationleft - whether should paint left side line or notpublic boolean isPaintBottomLine()
public void setPaintBottomLine(boolean bottom)
setPaintBottomLine in interface PartialDecorationbottom - whether should paint bottom side line or notpublic boolean isPaintRightLine()
public void setPaintRightLine(boolean right)
setPaintRightLine in interface PartialDecorationright - whether should paint right side line or notpublic void setPaintSideLines(boolean top,
boolean left,
boolean bottom,
boolean right)
setPaintSideLines in interface PartialDecorationtop - whether should paint top side line or notleft - whether should paint left side line or notbottom - whether should paint bottom side line or notright - whether should paint right side line or notpublic int getRound()
public WebPanel setRound(int round)
round - decoration corners roundingpublic int getShadeWidth()
public WebPanel setShadeWidth(int shadeWidth)
shadeWidth - decoration shade widthpublic float getShadeTransparency()
public WebPanel setShadeTransparency(float transparency)
transparency - new decoration shade transparencypublic java.awt.Stroke getBorderStroke()
public WebPanel setBorderStroke(java.awt.Stroke stroke)
stroke - decoration border strokepublic java.awt.Color getBorderColor()
public WebPanel setBorderColor(java.awt.Color color)
color - decoration border colorpublic java.awt.Color getDisabledBorderColor()
public WebPanel setDisabledBorderColor(java.awt.Color color)
color - decoration disabled border colorpublic boolean isPaintBackground()
public WebPanel setPaintBackground(boolean paint)
paint - whether should paint decoration background or notpublic boolean isWebColoredBackground()
public WebPanel setWebColoredBackground(boolean webColored)
webColored - whether should paint web-styled background or notpublic Painter getPainter()
public WebPanel setPainter(Painter painter)
painter - new panel painterpublic java.lang.String getStyleId()
getStyleId in interface Styleablepublic void setStyleId(java.lang.String id)
setStyleId in interface Styleableid - custom component style IDpublic java.awt.Shape provideShape()
provideShape in interface ShapeProviderpublic WebPanelUI getWebUI()
public void updateUI()
updateUI in class javax.swing.JPanelpublic int getPreferredWidth()
getPreferredWidth in interface SizeMethods<WebPanel>public WebPanel setPreferredWidth(int preferredWidth)
setPreferredWidth in interface SizeMethods<WebPanel>preferredWidth - new component preferred widthpublic int getPreferredHeight()
getPreferredHeight in interface SizeMethods<WebPanel>public WebPanel setPreferredHeight(int preferredHeight)
setPreferredHeight in interface SizeMethods<WebPanel>preferredHeight - new component preferred heightpublic int getMinimumWidth()
getMinimumWidth in interface SizeMethods<WebPanel>public WebPanel setMinimumWidth(int minimumWidth)
setMinimumWidth in interface SizeMethods<WebPanel>minimumWidth - new component minimum widthpublic int getMinimumHeight()
getMinimumHeight in interface SizeMethods<WebPanel>public WebPanel setMinimumHeight(int minimumHeight)
setMinimumHeight in interface SizeMethods<WebPanel>minimumHeight - new component minimum heightpublic java.awt.Dimension getPreferredSize()
getPreferredSize in interface SizeMethods<WebPanel>getPreferredSize in class javax.swing.JComponentpublic void setLanguageContainerKey(java.lang.String key)
setLanguageContainerKey in interface com.alee.managers.language.LanguageContainerMethodspublic void removeLanguageContainerKey()
removeLanguageContainerKey in interface com.alee.managers.language.LanguageContainerMethodspublic java.lang.String getLanguageContainerKey()
getLanguageContainerKey in interface com.alee.managers.language.LanguageContainerMethods