| Class | Tree | Deprecated | Index | Help | |||
| PREV CLASS | NEXT CLASS | FRAMES | NO FRAMES | ||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||
java.lang.Object
|
+--java.awt.Component
|
+--java.awt.Container
|
+--java.awt.Panel
|
+--uk.co.ist.mwt.ScrollablePanel
|
+--uk.co.ist.mwt.ScrolledPanel
Children added to this panel are actually added to its clipwindow child, which only displays one of them.
| Fields inherited from class java.awt.Component | |
| BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT | |
| Constructor Summary | |
| ScrolledPanel()
Create a ScrolledPanel with everything set to the default |
|
| Method Summary | |
| java.awt.Component | add(java.awt.Component comp,
int pos)
Add a component to the Panel; overriden so that any children added are put into the clipWindow. |
| boolean | handleEvent(java.awt.Event e)
A method to catch scrollbar events to handle scrolling |
| boolean | hsbNeeded(java.awt.Dimension pSz)
Function to determine whether the ScrollablePanel needs a horizontal scroll bar if it's compressed into the parent passed in |
| java.awt.Component | locate(int x,
int y)
Locate a component; as we're hiding the existence of the internal clipWindow, we must return one of its children if the click is inside it. |
| void | removeAll()
Remove all components from the panel; actually removes those from the clipWindow. |
| void | remove(java.awt.Component comp)
Remove a component from the panel; overriden so that any children are removed from the clipWindow. |
| void | setAlwaysShowScrollbars(boolean whether)
Set whether we should always show the scroll bars for this ScrolledPanel, even if they are not necessary |
| void | setWorkAreaPlacement(int newPlacement)
An accessor method to allow the specification of the point in the clip window where the work area is placed if it is smaller than the clip window; if the value is invalid the change is ignored. |
| boolean | vsbNeeded(java.awt.Dimension pSz)
Function to determine whether the ScrollablePanel needs a vertical scroll bar if it's compressed into the parent passed in |
| Methods inherited from class uk.co.ist.mwt.ScrollablePanel | |
| addLayoutComponent, getScrollbarPlacement, getScrollHorz, getScrollVert, hsbNeeded, layoutContainer, minimumLayoutSize, preferredLayoutSize, removeLayoutComponent, setScrollbarPlacement, setScrollHorz, setScrollVert, vsbNeeded | |
| Methods inherited from class java.awt.Panel | |
| addNotify | |
| Methods inherited from class java.awt.Container | |
| add, add, add, add, add, addContainerListener, addNotify, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponentAt, getComponentAt, getComponent, getComponentCount, getComponents, getInsets, getLayout, getMaximumSize, getMinimumSize, getPreferredSize, insets, invalidate, isAncestorOf, layout, list, list, locate, minimumSize, paintComponents, paint, preferredSize, printComponents, print, removeAll, remove, remove, removeContainerListener, removeNotify, setLayout, update, validate | |
| Methods inherited from class java.awt.Component | |
| action, add, addComponentListener, addFocusListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, bounds, checkImage, checkImage, contains, contains, createImage, createImage, deliverEvent, disable, dispatchEvent, doLayout, enable, enable, enableInputMethods, getAlignmentX, getAlignmentY, getBackground, getBounds, getBounds, getColorModel, getComponentAt, getComponentAt, getComponentOrientation, getCursor, getDropTarget, getFont, getFontMetrics, getForeground, getGraphics, getHeight, getInputContext, getInputMethodRequests, getLocale, getLocation, getLocation, getLocationOnScreen, getMaximumSize, getMinimumSize, getName, getParent, getPeer, getPreferredSize, 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, paintAll, paint, postEvent, preferredSize, prepareImage, prepareImage, printAll, print, 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 | |
| Methods inherited from class java.lang.Object | |
| equals, getClass, hashCode, notifyAll, notify, toString, wait, wait, wait | |
| Constructor Detail |
public ScrolledPanel()
| Method Detail |
public void setAlwaysShowScrollbars(boolean whether)
public void setWorkAreaPlacement(int newPlacement)
public boolean vsbNeeded(java.awt.Dimension pSz)
public boolean hsbNeeded(java.awt.Dimension pSz)
public boolean handleEvent(java.awt.Event e)
e
- the event
public java.awt.Component add(java.awt.Component comp,
int pos)
comp
- the component to add
pos
- the position in the list of children at which to add it;
-1 means 'at the end'.public void remove(java.awt.Component comp)
comp
- the component to removepublic void removeAll()
public java.awt.Component locate(int x,
int y)
x
- the x co-ordinate within this component which the desired
component contains
y
- the y co-ordinate within this component which the desired
component contains| Class | Tree | Deprecated | Index | Help | |||
| PREV CLASS | NEXT CLASS | FRAMES | NO FRAMES | ||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||