swingwtx.swing
Class JInternalFrame.DecoratedRootPane
java.lang.Object
swingwt.awt.Component
swingwt.awt.Container
swingwtx.swing.JComponent
swingwtx.swing.JPanel
swingwtx.swing.JRootPane
swingwtx.swing.JInternalFrame.DecoratedRootPane
- All Implemented Interfaces:
- ImageObserver, MenuContainer
- Enclosing class:
- JInternalFrame
- protected class JInternalFrame.DecoratedRootPane
- extends JRootPane
This is a JRootPane descendant that is capable of drawing the border around the contents
of the JInternalFrame. It can also draw the title, icon and buttons for the top
of the frame, and handles events to allow it to be dragged around it's parent
window.
Field Summary |
protected JPanel |
decorationPane
The outer panel that holds the content pane |
protected JLabel |
lblIcon
The label containing the frame's icon |
protected JLabel |
lblTitle
The label containing the frame's title |
protected JPanel |
pnlTopBar
Container for the frame icon, title and buttons |
protected boolean |
showDecorations
Whether or not to actually include the decorations around the contentpane or not |
Fields inherited from class swingwtx.swing.JRootPane |
COLOR_CHOOSER_DIALOG, contentPane, defaultButton, ERROR_DIALOG, FILE_CHOOSER_DIALOG, FRAME, glassPane, INFORMATION_DIALOG, jMenuBar, layeredPane, menuBar, NONE, parentWindow, PLAIN_DIALOG, QUESTION_DIALOG, WARNING_DIALOG, windowDecorationStyle |
Fields inherited from class swingwtx.swing.JComponent |
accessibleContext, actionMap, ancestorInputMap, border, clientProperties, descendantHasPeer, focusInputMap, internalFrameAdapter, internalFrameParent, propertyChangeListeners, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW, windowInputMap |
Fields inherited from class swingwt.awt.Component |
actionCommand, actionListeners, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, componentListeners, componentName, consumeAvailableHeight, consumeAvailableWidth, focusable, focusListeners, graphicsConfig, inputMethodListeners, isUserSetFont, keyListeners, layoutModifier, LEFT_ALIGNMENT, LOCK, mouseListeners, mouseMotionListeners, mouseWheelListeners, parent, pBackground, pCursor, pDoubleBuffered, peer, pEnabled, pFont, pForeground, pLayoutData, pLocation, pMaxSize, pMinSize, pPrefSize, pSize, pToolTipText, pVisible, RIGHT_ALIGNMENT, swingWTDefaultActionEventAdapter, swingWTEventAdapter, TOP_ALIGNMENT |
Methods inherited from class swingwtx.swing.JRootPane |
addNotify, createGlassPane, createLayeredPane, getContentPane, getDefaultButton, getGlassPane, getJMenuBar, getLayeredPane, getMenuBar, getWindowDecorationStyle, isOptimizedDrawingEnabled, isValidateRoot, removeNotify, setDefaultButton, setGlassPane, setJMenuBar, setLayeredPane, setMenuBar, setWindowDecorationStyle |
Methods inherited from class swingwtx.swing.JComponent |
add, add, add, add, add, addPropertyChangeListener, addPropertyChangeListener, checkInternalFrameChild, dispose, getAccessibleContext, getActionMap, getAutoscrolls, getBorder, getClientProperty, getInputMap, getInsets, getToolTipLocation, getToolTipText, getTopLevelAncestor, getVisibleRect, isDoubleBuffered, isOpaque, paint, paintBackground, paintChildren, paintComponent, paintImmediately, paintImmediately, putClientProperty, remove, remove, removePropertyChangeListener, removePropertyChangeListener, repaint, revalidate, scrollRectToVisible, setActionMap, setAutoscrolls, setDoubleBuffered, setInputMap, setMargin, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled |
Methods inherited from class swingwt.awt.Container |
addComponentToLayout, addContainerListener, debug_showContainmentTree, doAdd, doLayout, getComponent, getComponentCount, getComponentOrientation, getComponents, getComposite, getLayout, getMaximumSize, getMinimumSize, getParent, getPreferredSize, invalidate, minimumSize, preferredSize, processContainerEvent, processEvent, queuedValidate, removeAll, removeComponentFromCache, removeContainerListener, setLayout, setLayoutImpl, validate |
Methods inherited from class swingwt.awt.Component |
add, addActionListener, addComponentListener, addFocusListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, componentOnlyDispose, computePreferredSize, contains, contains, createImage, createListenerArrayFromVector, createVolatileImage, dispatchEvent, getActionCommand, getAlignmentX, getAlignmentY, getBackground, getBounds, getCursor, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getListeners, getLocation, getLocationOnScreen, getName, getPeer, getPeerSize, getSize, getSWTPeer, getToolkit, getToolTipText, getTreeLock, getX, getY, grabFocus, hasFocus, hasSetFont, hide, imageUpdate, inside, isEnabled, isFocusable, isMinimumSizeSet, isShowing, isVisible, processActionEvent, processComponentEvent, processFocusEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, processTraverseEvent, registerActionEvents, registerComponentEvents, registerEvents, registerExtendedModifyEvents, registerFocusEvents, registerKeyEvents, registerModifyEvents, registerMouseEvents, registerPaintEvents, registerTraversalEvents, remove, removeActionListener, removeComponentListener, removeFocusListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, repaint, repaint, repaint, requestFocus, setActionCommand, setAlignmentX, setAlignmentY, setBackground, setBounds, setBounds, setCachedProperties, setComponentOrientation, setComponentRemoved, setCursor, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setFont, setForeground, setHeight, setLocation, setLocation, setMaximumSize, setMinimumSize, setName, setSize, setSize, setToolTipText, setVisible, setWidth, show, transferFocus, transferFocusBackward, transferFocusUpCycle |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
decorationPane
protected JPanel decorationPane
- The outer panel that holds the content pane
lblTitle
protected JLabel lblTitle
- The label containing the frame's title
lblIcon
protected JLabel lblIcon
- The label containing the frame's icon
pnlTopBar
protected JPanel pnlTopBar
- Container for the frame icon, title and buttons
showDecorations
protected boolean showDecorations
- Whether or not to actually include the decorations around the contentpane or not
JInternalFrame.DecoratedRootPane
public JInternalFrame.DecoratedRootPane()
JInternalFrame.DecoratedRootPane
public JInternalFrame.DecoratedRootPane(Window parentWindow)
createContentPane
public Container createContentPane()
- Overrides:
createContentPane
in class JRootPane
createDecorations
public void createDecorations()
- Creates all of the decorations for the internal frame.
These sit in the decorationPane, which is a JPanel
with a BorderLayout. The decoration pane sits inside
the JRootPane and contains the content pane (which is
added to decorationPane with BorderLayout.CENTER
removeDecorations
public void removeDecorations()
- Removes window decorations from the component
updateDecorationFromFrame
public void updateDecorationFromFrame()
- Updates the frame decoration from the JInternalFrame's properties.
Call this from the JInternalFrame when the icon or title is
changed
setContentPane
public void setContentPane(Container content)
- Overrides:
setContentPane
in class JRootPane