当前页面:
在线文档首页 >
JDK 5 Documentation v1.2.2, Java 2 SDK 英文文档
Java(TM) 2 Platform, Standard Edition, v1.2.2 API Specification: Class Box.Filler - JDK 5 Documentation v1.2.2, Java 2 SDK 英文文档
javax.swing
Class Box.Filler
java.lang.Object
|
+--java.awt.Component
|
+--javax.swing.Box.Filler
- Enclosing class:
- Box
- public static class Box.Filler
- extends Component
- implements Accessible
An implementation of a lightweight component that participates in
layout but has no view.
Warning:
Serialized objects of this class will not be compatible with
future Swing releases. The current serialization support is appropriate
for short term storage or RMI between applications running the same
version of Swing. A future release of Swing will provide support for
long term persistence.
- See Also:
- Serialized Form
Methods inherited from class java.awt.Component |
action,
add,
addComponentListener,
addFocusListener,
addInputMethodListener,
addKeyListener,
addMouseListener,
addMouseMotionListener,
addNotify,
addPropertyChangeListener,
addPropertyChangeListener,
bounds,
checkImage,
checkImage,
coalesceEvents,
contains,
contains,
createImage,
createImage,
deliverEvent,
disable,
disableEvents,
dispatchEvent,
doLayout,
enable,
enable,
enableEvents,
enableInputMethods,
firePropertyChange,
getAlignmentX,
getAlignmentY,
getBackground,
getBounds,
getBounds,
getColorModel,
getComponentAt,
getComponentAt,
getComponentOrientation,
getCursor,
getDropTarget,
getFont,
getFontMetrics,
getForeground,
getGraphics,
getHeight,
getInputContext,
getInputMethodRequests,
getLocale,
getLocation,
getLocation,
getLocationOnScreen,
getName,
getParent,
getPeer,
getSize,
getSize,
getToolkit,
getTreeLock,
getWidth,
getX,
getY,
gotFocus,
handleEvent,
hasFocus,
hide,
imageUpdate,
inside,
invalidate,
isDisplayable,
isDoubleBuffered,
isEnabled,
isFocusTraversable,
isLightweight,
isOpaque,
isShowing,
isValid,
isVisible,
keyDown,
keyUp,
layout,
list,
list,
list,
list,
list,
locate,
location,
lostFocus,
minimumSize,
mouseDown,
mouseDrag,
mouseEnter,
mouseExit,
mouseMove,
mouseUp,
move,
nextFocus,
paint,
paintAll,
paramString,
postEvent,
preferredSize,
prepareImage,
prepareImage,
print,
printAll,
processComponentEvent,
processEvent,
processFocusEvent,
processInputMethodEvent,
processKeyEvent,
processMouseEvent,
processMouseMotionEvent,
remove,
removeComponentListener,
removeFocusListener,
removeInputMethodListener,
removeKeyListener,
removeMouseListener,
removeMouseMotionListener,
removeNotify,
removePropertyChangeListener,
removePropertyChangeListener,
repaint,
repaint,
repaint,
repaint,
requestFocus,
reshape,
resize,
resize,
setBackground,
setBounds,
setBounds,
setComponentOrientation,
setCursor,
setDropTarget,
setEnabled,
setFont,
setForeground,
setLocale,
setLocation,
setLocation,
setName,
setSize,
setSize,
setVisible,
show,
show,
size,
toString,
transferFocus,
update,
validate |
accessibleContext
protected AccessibleContext accessibleContext
- The currently set AccessibleContext object.
Box.Filler
public Box.Filler(Dimension min,
Dimension pref,
Dimension max)
- Constructor to create shape with the given size ranges.
- Parameters:
min
- Minimum sizepref
- Preferred sizemax
- Maximum size
changeShape
public void changeShape(Dimension min,
Dimension pref,
Dimension max)
- Change the size requests for this shape. An invalidate() is
propagated upward as a result so that layout will eventually
happen with using the new sizes.
- Parameters:
min
- Value to return for getMinimumSizepref
- Value to return for getPreferredSizemax
- Value to return for getMaximumSize
getMinimumSize
public Dimension getMinimumSize()
- Returns the minimum size of the component.
- Overrides:
- getMinimumSize in class Component
- Returns:
- the size
getPreferredSize
public Dimension getPreferredSize()
- Returns the preferred size of the component.
- Overrides:
- getPreferredSize in class Component
- Returns:
- the size
getMaximumSize
public Dimension getMaximumSize()
- Returns the maximum size of the component.
- Overrides:
- getMaximumSize in class Component
- Returns:
- the size
getAccessibleContext
public AccessibleContext getAccessibleContext()
- Gets the AccessibleContext associated with this Component.
Creates a new context if necessary.
- Specified by:
- getAccessibleContext in interface Accessible
- Returns:
- the AccessibleContext of this Component
Submit a bug or feature
Java, Java 2D, and JDBC are a trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries.
Copyright 1993-1999 Sun Microsystems, Inc. 901 San Antonio Road,
Palo Alto, California, 94303, U.S.A. All Rights Reserved.