swingwtx.swing
Class JSlider
java.lang.Object
swingwt.awt.Component
swingwt.awt.Container
swingwtx.swing.JComponent
swingwtx.swing.JSlider
- All Implemented Interfaces:
- ImageObserver, MenuContainer, SwingConstants
- public class JSlider
- extends JComponent
- implements SwingConstants
Fields inherited from class swingwtx.swing.JComponent |
accessibleContext, actionMap, ancestorInputMap, border, clientProperties, descendantHasPeer, focusInputMap, internalFrameAdapter, internalFrameParent, opaque, 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 |
Fields inherited from interface swingwtx.swing.SwingConstants |
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST |
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, isOptimizedDrawingEnabled, isValidateRoot, paint, paintBackground, paintChildren, paintComponent, paintImmediately, paintImmediately, putClientProperty, remove, remove, removePropertyChangeListener, removePropertyChangeListener, repaint, revalidate, scrollRectToVisible, setActionMap, setAutoscrolls, setBorder, 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, addNotify, componentOnlyDispose, computePreferredSize, contains, contains, createImage, createListenerArrayFromVector, createVolatileImage, dispatchEvent, getActionCommand, getAlignmentX, getAlignmentY, getBackground, getBounds, getCursor, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getListeners, getLocation, getLocationOnScreen, getName, getPeer, getPeerSize, getSize, getSize, getSWTPeer, getToolkit, getToolTipText, getTreeLock, getWidth, 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, removeNotify, 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 |
orientation
protected int orientation
min
protected int min
max
protected int max
value
protected int value
thumb
protected int thumb
labelTable
protected java.util.Dictionary labelTable
changeListeners
protected java.util.Vector changeListeners
ppeer
protected org.eclipse.swt.widgets.Scale ppeer
JSlider
public JSlider()
JSlider
public JSlider(int orientation)
JSlider
public JSlider(int min,
int max)
JSlider
public JSlider(int min,
int max,
int value)
JSlider
public JSlider(int orientation,
int min,
int max,
int value)
createStandardLabels
public java.util.Hashtable createStandardLabels(int increment)
createStandardLabels
public java.util.Hashtable createStandardLabels(int increment,
int start)
addChangeListener
public void addChangeListener(ChangeListener l)
removeChangeListener
public void removeChangeListener(ChangeListener l)
fireStateChanged
protected void fireStateChanged()
getValue
public int getValue()
setValue
public void setValue(int value)
getExtent
public int getExtent()
setExtent
public void setExtent(int extent)
getInverted
public boolean getInverted()
isInverted
public boolean isInverted()
setInverted
public void setInverted(boolean b)
getMajorTickSpacing
public int getMajorTickSpacing()
setMajorTickSpacing
public void setMajorTickSpacing(int spacing)
getMinorTickSpacing
public int getMinorTickSpacing()
setMinorTickSpacing
public void setMinorTickSpacing(int spacing)
getSnapToTicks
public boolean getSnapToTicks()
getSnapToValue
public boolean getSnapToValue()
isSnapToTicks
public boolean isSnapToTicks()
isSnapToValue
public boolean isSnapToValue()
setSnapToTicks
public void setSnapToTicks(boolean b)
setSnapToValue
public void setSnapToValue(boolean b)
getPaintTicks
public boolean getPaintTicks()
isPaintTicks
public boolean isPaintTicks()
setPaintTicks
public void setPaintTicks(boolean b)
getPaintTrack
public boolean getPaintTrack()
isPaintTrack
public boolean isPaintTrack()
setPaintTrack
public void setPaintTrack(boolean b)
getPaintLabels
public boolean getPaintLabels()
isPaintLabels
public boolean isPaintLabels()
setPaintLabels
public void setPaintLabels(boolean b)
getLabelTable
public java.util.Dictionary getLabelTable()
setLabelTable
public void setLabelTable(java.util.Dictionary table)
calculatePreferredSize
protected Dimension calculatePreferredSize()
- Overriden to calculate non-realised
preferred size.
- Overrides:
calculatePreferredSize
in class Component
setSwingWTParent
public void setSwingWTParent(Container parent)
throws java.lang.Exception
- Once a parent component receives an "add" call for a child, this being
the child, this should be called to tell us to instantiate the peer
and load in any cached properties.
- Overrides:
setSwingWTParent
in class JComponent
- Throws:
java.lang.Exception