javax.swing
public class JRootPane extends JComponent implements Accessible
Modifier and Type | Class and Description |
---|---|
protected class |
JRootPane.AccessibleJRootPane |
protected class |
JRootPane.RootLayout |
JComponent.AccessibleJComponent
Container.AccessibleAWTContainer
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy
Modifier and Type | Field and Description |
---|---|
static int |
COLOR_CHOOSER_DIALOG |
protected Container |
contentPane
DOCUMENT ME!
|
protected JButton |
defaultButton |
protected Action |
defaultPressAction
Deprecated.
since JDK1.3
|
protected Action |
defaultReleaseAction
Deprecated.
since JDK1.3
|
static int |
ERROR_DIALOG |
static int |
FILE_CHOOSER_DIALOG |
static int |
FRAME |
protected Component |
glassPane
DOCUMENT ME!
|
static int |
INFORMATION_DIALOG |
protected JLayeredPane |
layeredPane
DOCUMENT ME!
|
protected JMenuBar |
menuBar
DOCUMENT ME!
|
static int |
NONE |
static int |
PLAIN_DIALOG |
static int |
QUESTION_DIALOG |
static int |
WARNING_DIALOG |
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
Constructor and Description |
---|
JRootPane()
Creates a new
JRootPane object. |
Modifier and Type | Method and Description |
---|---|
protected void |
addImpl(Component comp,
Object constraints,
int index)
DOCUMENT ME!
|
protected Container |
createContentPane()
DOCUMENT ME!
|
protected Component |
createGlassPane()
DOCUMENT ME!
|
protected JLayeredPane |
createLayeredPane()
DOCUMENT ME!
|
protected LayoutManager |
createRootLayout()
DOCUMENT ME!
|
AccessibleContext |
getAccessibleContext()
Returns the accessible context for this JRootPane.
|
Container |
getContentPane()
DOCUMENT ME!
|
JButton |
getDefaultButton() |
Component |
getGlassPane()
DOCUMENT ME!
|
JMenuBar |
getJMenuBar()
DOCUMENT ME!
|
JLayeredPane |
getLayeredPane()
DOCUMENT ME!
|
JMenuBar |
getMenuBar()
Deprecated.
Replaced by
getJMenuBar() |
RootPaneUI |
getUI()
DOCUMENT ME!
|
String |
getUIClassID()
DOCUMENT ME!
|
int |
getWindowDecorationStyle() |
boolean |
isOptimizedDrawingEnable()
This returns
true if the glassPane is not
visible because then the root pane can guarantee to tile its children
(the only other direct child is a JLayeredPane which must figure its
optimizeDrawingEnabled state on its own). |
boolean |
isValidateRoot()
DOCUMENT ME!
|
void |
setContentPane(Container p)
Sets the JRootPane's content pane.
|
void |
setDefaultButton(JButton newButton) |
void |
setGlassPane(Component f)
DOCUMENT ME!
|
void |
setJMenuBar(JMenuBar m)
DOCUMENT ME!
|
void |
setLayeredPane(JLayeredPane f)
Set the layered pane for the root pane.
|
void |
setMenuBar(JMenuBar m)
Deprecated.
Replaced by
setJMenuBar() |
void |
setUI(RootPaneUI ui)
DOCUMENT ME!
|
void |
setWindowDecorationStyle(int style) |
void |
updateUI()
DOCUMENT ME!
|
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isRequestFocusEnabled, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, paramString, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, 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, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setNextFocusableComponent, setOpaque, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
add, 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, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate, validateTree
action, 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, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, 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, hide, 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, processMouseEvent, 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, setMaximumSize, setMinimumSize, setName, setPreferredSize, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
public static final int NONE
public static final int FRAME
public static final int PLAIN_DIALOG
public static final int INFORMATION_DIALOG
public static final int ERROR_DIALOG
public static final int COLOR_CHOOSER_DIALOG
public static final int FILE_CHOOSER_DIALOG
public static final int QUESTION_DIALOG
public static final int WARNING_DIALOG
protected JLayeredPane layeredPane
protected Container contentPane
protected JButton defaultButton
protected Action defaultPressAction
protected Action defaultReleaseAction
public JRootPane()
JRootPane
object.public void setJMenuBar(JMenuBar m)
m
- DOCUMENT ME!public void setMenuBar(JMenuBar m)
setJMenuBar()
public JMenuBar getJMenuBar()
public JMenuBar getMenuBar()
getJMenuBar()
public boolean isValidateRoot()
isValidateRoot
in class JComponent
public Container getContentPane()
public void setContentPane(Container p)
p
- the Container that will be the content paneIllegalComponentStateException
- if p is nullpublic Component getGlassPane()
public void setGlassPane(Component f)
f
- DOCUMENT ME!public JLayeredPane getLayeredPane()
public void setLayeredPane(JLayeredPane f)
f
- The JLayeredPane to be used.IllegalComponentStateException
- if JLayeredPane
parameter is null.protected LayoutManager createRootLayout()
protected Container createContentPane()
protected Component createGlassPane()
protected JLayeredPane createLayeredPane()
public RootPaneUI getUI()
public void setUI(RootPaneUI ui)
ui
- DOCUMENT ME!public void updateUI()
updateUI
in class JComponent
public String getUIClassID()
getUIClassID
in class JComponent
JComponent.setUI(javax.swing.plaf.ComponentUI)
,
JComponent.updateUI()
public JButton getDefaultButton()
public void setDefaultButton(JButton newButton)
public int getWindowDecorationStyle()
public void setWindowDecorationStyle(int style)
public boolean isOptimizedDrawingEnable()
true
if the glassPane
is not
visible because then the root pane can guarantee to tile its children
(the only other direct child is a JLayeredPane which must figure its
optimizeDrawingEnabled
state on its own).true
if the glassPane
is not
visiblepublic AccessibleContext getAccessibleContext()
JRootPane.AccessibleJRootPane
.getAccessibleContext
in interface Accessible
getAccessibleContext
in class JComponent