public class WebInternalFrame extends javax.swing.JInternalFrame implements Styleable, Skinnable, Paintable, ShapeProvider, MarginSupport, PaddingSupport, com.alee.managers.language.LanguageMethods
This component should never be used with a non-Web UIs as it might cause an unexpected behavior. You could still use that component even if WebLaF is not your application L&F as this component will use Web-UI in any case.
javax.swing.JInternalFrame.AccessibleJInternalFrame, javax.swing.JInternalFrame.JDesktopIconjavax.swing.JComponent.AccessibleJComponent| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CLOSABLE_PROPERTY
Event properties.
|
static java.lang.String |
ICONABLE_PROPERTY |
static java.lang.String |
MAXIMIZABLE_PROPERTY |
closable, CONTENT_PANE_PROPERTY, desktopIcon, FRAME_ICON_PROPERTY, frameIcon, GLASS_PANE_PROPERTY, iconable, IS_CLOSED_PROPERTY, IS_ICON_PROPERTY, IS_MAXIMUM_PROPERTY, IS_SELECTED_PROPERTY, isClosed, isIcon, isMaximum, isSelected, LAYERED_PANE_PROPERTY, maximizable, MENU_BAR_PROPERTY, resizable, ROOT_PANE_PROPERTY, rootPane, rootPaneCheckingEnabled, title, TITLE_PROPERTYlistenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOWaccessibleContext, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENTEMPTYEMPTY| Constructor and Description |
|---|
WebInternalFrame()
Creates a non-resizable, non-closable, non-maximizable, non-iconifiable
JInternalFrame with no title. |
WebInternalFrame(java.lang.String title)
Creates a non-resizable, non-closable, non-maximizable, non-iconifiable
WebInternalFrame with the specified title. |
WebInternalFrame(java.lang.String title,
boolean resizable)
Creates a non-closable, non-maximizable, non-iconifiable
WebInternalFrame with the specified title and resizability. |
WebInternalFrame(java.lang.String title,
boolean resizable,
boolean closable)
Creates a non-maximizable, non-iconifiable
WebInternalFrame with the specified title, resizability, and closability. |
WebInternalFrame(java.lang.String title,
boolean resizable,
boolean closable,
boolean maximizable)
Creates a non-iconifiable
WebInternalFrame with the specified title, resizability, closability, and maximizability. |
WebInternalFrame(java.lang.String title,
boolean resizable,
boolean closable,
boolean maximizable,
boolean iconifiable)
Creates a
WebInternalFrame with the specified title, resizability, closability, maximizability, and iconifiability. |
WebInternalFrame(StyleId id)
Creates a non-resizable, non-closable, non-maximizable, non-iconifiable
JInternalFrame with no title. |
WebInternalFrame(StyleId id,
java.lang.String title)
Creates a non-resizable, non-closable, non-maximizable, non-iconifiable
WebInternalFrame with the specified title. |
WebInternalFrame(StyleId id,
java.lang.String title,
boolean resizable)
Creates a non-closable, non-maximizable, non-iconifiable
WebInternalFrame with the specified title and resizability. |
WebInternalFrame(StyleId id,
java.lang.String title,
boolean resizable,
boolean closable)
Creates a non-maximizable, non-iconifiable
WebInternalFrame with the specified title, resizability, and closability. |
WebInternalFrame(StyleId id,
java.lang.String title,
boolean resizable,
boolean closable,
boolean maximizable)
Creates a non-iconifiable
WebInternalFrame with the specified title, resizability, closability, and maximizability. |
WebInternalFrame(StyleId id,
java.lang.String title,
boolean resizable,
boolean closable,
boolean maximizable,
boolean iconifiable)
Creates a
WebInternalFrame with the specified title, resizability, closability, maximizability, and iconifiability. |
| Modifier and Type | Method and Description |
|---|---|
void |
addStyleListener(StyleListener listener)
Adds style change listener.
|
void |
close()
Safely hides internal frame.
|
Painter |
getCustomPainter()
Returns custom base painter for this component.
|
Painter |
getCustomPainter(java.lang.String id)
Returns custom painter for this component.
|
java.util.Map<java.lang.String,Painter> |
getCustomPainters()
Returns all custom painters for this component.
|
java.awt.Insets |
getMargin()
Returns current margin.
|
java.awt.Insets |
getPadding()
Returns current padding.
|
Skin |
getSkin()
Returns skin currently applied to this component.
|
StyleId |
getStyleId()
Returns component style ID.
|
boolean |
isLanguageSet() |
void |
open()
Safely displays internal frame.
|
java.awt.Shape |
provideShape()
Returns component shape.
|
void |
removeLanguage() |
void |
removeLanguageUpdater() |
void |
removeStyleListener(StyleListener listener)
Removes style change listener.
|
boolean |
restoreDefaultPainters()
Restores default painters for this component.
|
Skin |
restoreSkin()
Restores global skin for this component and all of its children linked via
StyleId. |
Painter |
setCustomPainter(Painter painter)
Sets custom base painter for this component.
|
Painter |
setCustomPainter(java.lang.String id,
Painter painter)
Sets custom painter for this component under the specified painter ID.
|
void |
setIcon(boolean b) |
void |
setLanguage(java.lang.String key,
java.lang.Object... data)
Language methods
|
void |
setLanguageUpdater(com.alee.managers.language.updaters.LanguageUpdater updater) |
void |
setMargin(java.awt.Insets margin)
Sets new margin.
|
void |
setMargin(int margin)
Sets new margin.
|
void |
setMargin(int top,
int left,
int bottom,
int right)
Sets new margin.
|
void |
setPadding(java.awt.Insets padding)
Sets new padding.
|
void |
setPadding(int padding)
Sets new padding.
|
void |
setPadding(int top,
int left,
int bottom,
int right)
Sets new padding.
|
Skin |
setSkin(Skin skin)
Applies specified skin to the specified component and all of its children linked via
StyleId. |
Skin |
setSkin(Skin skin,
boolean recursively)
Applies specified skin to the specified component and all of its children linked via
StyleId. |
StyleId |
setStyleId(StyleId id)
Sets new component style ID.
|
void |
updateLanguage(java.lang.Object... data) |
void |
updateLanguage(java.lang.String key,
java.lang.Object... data) |
void |
updateUI()
Installs a Web-UI into this component.
|
addImpl, addInternalFrameListener, createRootPane, dispose, doDefaultCloseAction, fireInternalFrameEvent, getAccessibleContext, getContentPane, getDefaultCloseOperation, getDesktopIcon, getDesktopPane, getFocusCycleRootAncestor, getFocusOwner, getFrameIcon, getGlassPane, getInternalFrameListeners, getJMenuBar, getLastCursor, getLayer, getLayeredPane, getMenuBar, getMostRecentFocusOwner, getNormalBounds, getRootPane, getTitle, getUI, getUIClassID, getWarningString, hide, isClosable, isClosed, isFocusCycleRoot, isIcon, isIconifiable, isMaximizable, isMaximum, isResizable, isRootPaneCheckingEnabled, isSelected, moveToBack, moveToFront, pack, paintComponent, paramString, remove, removeInternalFrameListener, reshape, restoreSubcomponentFocus, setClosable, setClosed, setContentPane, setCursor, setDefaultCloseOperation, setDesktopIcon, setFocusCycleRoot, setFrameIcon, setGlassPane, setIconifiable, setJMenuBar, setLayer, setLayer, setLayeredPane, setLayout, setMaximizable, setMaximum, setMenuBar, setNormalBounds, setResizable, setRootPane, setRootPaneCheckingEnabled, setSelected, setTitle, setUI, show, toBack, toFrontaddAncestorListener, 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, getPreferredSize, getRegisteredKeyStrokes, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, 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, 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, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, 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, 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, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCyclepublic static final java.lang.String CLOSABLE_PROPERTY
public static final java.lang.String MAXIMIZABLE_PROPERTY
public static final java.lang.String ICONABLE_PROPERTY
public WebInternalFrame()
JInternalFrame with no title.public WebInternalFrame(java.lang.String title)
WebInternalFrame with the specified title.
Note that passing in a null title results in unspecified behavior and possibly an exception.title - the non-null String to display in the title barpublic WebInternalFrame(java.lang.String title,
boolean resizable)
WebInternalFrame with the specified title and resizability.title - the String to display in the title barresizable - if true, the internal frame can be resizedpublic WebInternalFrame(java.lang.String title,
boolean resizable,
boolean closable)
WebInternalFrame with the specified title, resizability, and closability.title - the String to display in the title barresizable - if true, the internal frame can be resizedclosable - if true, the internal frame can be closedpublic WebInternalFrame(java.lang.String title,
boolean resizable,
boolean closable,
boolean maximizable)
WebInternalFrame with the specified title, resizability, closability, and maximizability.title - the String to display in the title barresizable - if true, the internal frame can be resizedclosable - if true, the internal frame can be closedmaximizable - if true, the internal frame can be maximizedpublic WebInternalFrame(java.lang.String title,
boolean resizable,
boolean closable,
boolean maximizable,
boolean iconifiable)
WebInternalFrame with the specified title, resizability, closability, maximizability, and iconifiability.title - the String to display in the title barresizable - if true, the internal frame can be resizedclosable - if true, the internal frame can be closedmaximizable - if true, the internal frame can be maximizediconifiable - if true, the internal frame can be iconifiedpublic WebInternalFrame(StyleId id)
JInternalFrame with no title.id - style IDpublic WebInternalFrame(StyleId id, java.lang.String title)
WebInternalFrame with the specified title.
Note that passing in a null title results in unspecified behavior and possibly an exception.id - style IDtitle - the non-null String to display in the title barpublic WebInternalFrame(StyleId id, java.lang.String title, boolean resizable)
WebInternalFrame with the specified title and resizability.id - style IDtitle - the String to display in the title barresizable - if true, the internal frame can be resizedpublic WebInternalFrame(StyleId id, java.lang.String title, boolean resizable, boolean closable)
WebInternalFrame with the specified title, resizability, and closability.id - style IDtitle - the String to display in the title barresizable - if true, the internal frame can be resizedclosable - if true, the internal frame can be closedpublic WebInternalFrame(StyleId id, java.lang.String title, boolean resizable, boolean closable, boolean maximizable)
WebInternalFrame with the specified title, resizability, closability, and maximizability.id - style IDtitle - the String to display in the title barresizable - if true, the internal frame can be resizedclosable - if true, the internal frame can be closedmaximizable - if true, the internal frame can be maximizedpublic WebInternalFrame(StyleId id, java.lang.String title, boolean resizable, boolean closable, boolean maximizable, boolean iconifiable)
WebInternalFrame with the specified title, resizability, closability, maximizability, and iconifiability.id - style IDtitle - the String to display in the title barresizable - if true, the internal frame can be resizedclosable - if true, the internal frame can be closedmaximizable - if true, the internal frame can be maximizediconifiable - if true, the internal frame can be iconifiedpublic StyleId getStyleId()
StyleablegetStyleId in interface Styleablepublic StyleId setStyleId(StyleId id)
StyleablesetStyleId in interface Styleableid - custom component style IDpublic Skin getSkin()
Skinnablepublic Skin setSkin(Skin skin, boolean recursively)
Skinnablepublic Skin restoreSkin()
SkinnableStyleId.
Actual linked children information is stored within StyleData data objects.
Restoring component skin will also include it back into the skin update cycle in case global skin will be changed.restoreSkin in interface Skinnablepublic void addStyleListener(StyleListener listener)
SkinnableaddStyleListener in interface Skinnablelistener - style change listener to addpublic void removeStyleListener(StyleListener listener)
SkinnableremoveStyleListener in interface Skinnablelistener - style change listener to removepublic java.util.Map<java.lang.String,Painter> getCustomPainters()
PaintablegetCustomPainters in interface Paintablepublic Painter getCustomPainter()
PaintablegetCustomPainter in interface Paintablepublic Painter getCustomPainter(java.lang.String id)
PaintablegetCustomPainter in interface Paintableid - painter IDpublic Painter setCustomPainter(Painter painter)
PaintablesetCustomPainter in interface Paintablepainter - custom base painterpublic Painter setCustomPainter(java.lang.String id, Painter painter)
PaintablesetCustomPainter in interface Paintableid - painter IDpainter - painterpublic boolean restoreDefaultPainters()
PaintablerestoreDefaultPainters in interface Paintablepublic java.awt.Shape provideShape()
ShapeProviderprovideShape in interface ShapeProviderpublic java.awt.Insets getMargin()
MarginSupportgetMargin in interface MarginSupportpublic void setMargin(int margin)
margin - new marginpublic void setMargin(int top,
int left,
int bottom,
int right)
top - new top marginleft - new left marginbottom - new bottom marginright - new right marginpublic 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(int padding)
padding - new paddingpublic void setPadding(int top,
int left,
int bottom,
int right)
top - new top paddingleft - new left paddingbottom - new bottom paddingright - new right paddingpublic 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 void setIcon(boolean b)
setIcon in class javax.swing.JInternalFramepublic void close()
public void open()
public void updateUI()
updateUI in class javax.swing.JInternalFramepublic void setLanguage(java.lang.String key,
java.lang.Object... data)
setLanguage in interface com.alee.managers.language.LanguageMethodspublic void updateLanguage(java.lang.Object... data)
updateLanguage in interface com.alee.managers.language.LanguageMethodspublic void updateLanguage(java.lang.String key,
java.lang.Object... data)
updateLanguage in interface com.alee.managers.language.LanguageMethodspublic void removeLanguage()
removeLanguage in interface com.alee.managers.language.LanguageMethodspublic boolean isLanguageSet()
isLanguageSet in interface com.alee.managers.language.LanguageMethodspublic void setLanguageUpdater(com.alee.managers.language.updaters.LanguageUpdater updater)
setLanguageUpdater in interface com.alee.managers.language.LanguageMethodspublic void removeLanguageUpdater()
removeLanguageUpdater in interface com.alee.managers.language.LanguageMethods