swingwtx.swing
Class JRootPane
java.lang.Object
swingwt.awt.Component
swingwt.awt.Container
swingwtx.swing.JComponent
swingwtx.swing.JPanel
swingwtx.swing.JRootPane
- All Implemented Interfaces:
- ImageObserver, MenuContainer
- Direct Known Subclasses:
- JInternalFrame.DecoratedRootPane
- public class JRootPane
- extends JPanel
RootPane implementation. Handles containing of all other components
for windows and internal frames. Manages default buttons and a
few other bits and bobs. Ok, so the hierarchy has a bit more in
it than "real" swing, but it shouldn't cause any problems.
Nested Class Summary |
protected class |
JRootPane.RootPaneLayout
RootPane layout - one component and it fills the whole damn thing |
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.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 |
NONE
public static final int NONE
- See Also:
- Constant Field Values
FRAME
public static final int FRAME
- See Also:
- Constant Field Values
PLAIN_DIALOG
public static final int PLAIN_DIALOG
- See Also:
- Constant Field Values
INFORMATION_DIALOG
public static final int INFORMATION_DIALOG
- See Also:
- Constant Field Values
ERROR_DIALOG
public static final int ERROR_DIALOG
- See Also:
- Constant Field Values
COLOR_CHOOSER_DIALOG
public static final int COLOR_CHOOSER_DIALOG
- See Also:
- Constant Field Values
FILE_CHOOSER_DIALOG
public static final int FILE_CHOOSER_DIALOG
- See Also:
- Constant Field Values
QUESTION_DIALOG
public static final int QUESTION_DIALOG
- See Also:
- Constant Field Values
WARNING_DIALOG
public static final int WARNING_DIALOG
- See Also:
- Constant Field Values
windowDecorationStyle
protected int windowDecorationStyle
contentPane
protected Container contentPane
jMenuBar
protected JMenuBar jMenuBar
menuBar
protected MenuBar menuBar
defaultButton
protected JButton defaultButton
glassPane
protected Component glassPane
layeredPane
protected JLayeredPane layeredPane
parentWindow
protected Window parentWindow
JRootPane
public JRootPane()
JRootPane
public JRootPane(Window parentWindow)
createContentPane
protected Container createContentPane()
createGlassPane
protected Component createGlassPane()
createLayeredPane
protected JLayeredPane createLayeredPane()
getWindowDecorationStyle
public int getWindowDecorationStyle()
setWindowDecorationStyle
public void setWindowDecorationStyle(int windowStyle)
getContentPane
public Container getContentPane()
setContentPane
public void setContentPane(Container content)
getGlassPane
public Component getGlassPane()
getLayeredPane
public JLayeredPane getLayeredPane()
setGlassPane
public void setGlassPane(Component glassPane)
setLayeredPane
public void setLayeredPane(JLayeredPane layeredPane)
setJMenuBar
public void setJMenuBar(JMenuBar menu)
setMenuBar
public void setMenuBar(MenuBar menu)
getMenuBar
public MenuBar getMenuBar()
getJMenuBar
public JMenuBar getJMenuBar()
getDefaultButton
public JButton getDefaultButton()
setDefaultButton
public void setDefaultButton(JButton defaultButton)
isValidateRoot
public boolean isValidateRoot()
- Since components live in this on all frames, returns true as the
root for which validation down should be performed when laying
out components
- Overrides:
isValidateRoot
in class JComponent
isOptimizedDrawingEnabled
public boolean isOptimizedDrawingEnabled()
- Returns true - native widgets!
- Overrides:
isOptimizedDrawingEnabled
in class JComponent
addNotify
public void addNotify()
- NOT IMPLEMENTED
- Overrides:
addNotify
in class Component
removeNotify
public void removeNotify()
- NOT MIMPLEMENTED
- Overrides:
removeNotify
in class Component