< prev index next >
src/java.desktop/share/classes/javax/swing/plaf/basic/BasicSliderUI.java
Print this page
*** 1683,1693 ****
return yPositionForValue(value, trackRect.y, trackRect.height);
}
/**
* Returns the y location for the specified value. No checking is
! * done on the arguments. In particular if <code>trackHeight</code> is
* negative undefined results may occur.
*
* @param value the slider value to get the location for
* @param trackY y-origin of the track
* @param trackHeight the height of the track
--- 1683,1693 ----
return yPositionForValue(value, trackRect.y, trackRect.height);
}
/**
* Returns the y location for the specified value. No checking is
! * done on the arguments. In particular if {@code trackHeight} is
* negative undefined results may occur.
*
* @param value the slider value to get the location for
* @param trackY y-origin of the track
* @param trackHeight the height of the track
*** 1851,1861 ****
/////////////////////////////////////////////////////////////////////////
/**
* Data model listener.
*
* This class should be treated as a "protected" inner class.
! * Instantiate it only within subclasses of <code>Foo</code>.
*/
public class ChangeHandler implements ChangeListener {
// NOTE: This class exists only for backward compatibility. All
// its functionality has been moved into Handler. If you need to add
// new functionality add it to the Handler, but make sure this
--- 1851,1861 ----
/////////////////////////////////////////////////////////////////////////
/**
* Data model listener.
*
* This class should be treated as a "protected" inner class.
! * Instantiate it only within subclasses of {@code Foo}.
*/
public class ChangeHandler implements ChangeListener {
// NOTE: This class exists only for backward compatibility. All
// its functionality has been moved into Handler. If you need to add
// new functionality add it to the Handler, but make sure this
*** 1870,1880 ****
/////////////////////////////////////////////////////////////////////////
/**
* Track mouse movements.
*
* This class should be treated as a "protected" inner class.
! * Instantiate it only within subclasses of <code>Foo</code>.
*/
public class TrackListener extends MouseInputAdapter {
/** The offset */
protected transient int offset;
/** Current mouse x. */
--- 1870,1880 ----
/////////////////////////////////////////////////////////////////////////
/**
* Track mouse movements.
*
* This class should be treated as a "protected" inner class.
! * Instantiate it only within subclasses of {@code Foo}.
*/
public class TrackListener extends MouseInputAdapter {
/** The offset */
protected transient int offset;
/** Current mouse x. */
*** 2127,2137 ****
/**
* Scroll-event listener.
*
* This class should be treated as a "protected" inner class.
! * Instantiate it only within subclasses of <code>Foo</code>.
*/
public class ScrollListener implements ActionListener {
// changed this class to public to avoid bogus IllegalAccessException
// bug in InternetExplorer browser. It was protected. Work around
// for 4109432
--- 2127,2137 ----
/**
* Scroll-event listener.
*
* This class should be treated as a "protected" inner class.
! * Instantiate it only within subclasses of {@code Foo}.
*/
public class ScrollListener implements ActionListener {
// changed this class to public to avoid bogus IllegalAccessException
// bug in InternetExplorer browser. It was protected. Work around
// for 4109432
*** 2188,2198 ****
/**
* Listener for resizing events.
* <p>
* This class should be treated as a "protected" inner class.
! * Instantiate it only within subclasses of <code>Foo</code>.
*/
public class ComponentHandler extends ComponentAdapter {
// NOTE: This class exists only for backward compatibility. All
// its functionality has been moved into Handler. If you need to add
// new functionality add it to the Handler, but make sure this
--- 2188,2198 ----
/**
* Listener for resizing events.
* <p>
* This class should be treated as a "protected" inner class.
! * Instantiate it only within subclasses of {@code Foo}.
*/
public class ComponentHandler extends ComponentAdapter {
// NOTE: This class exists only for backward compatibility. All
// its functionality has been moved into Handler. If you need to add
// new functionality add it to the Handler, but make sure this
*** 2204,2214 ****
/**
* Focus-change listener.
* <p>
* This class should be treated as a "protected" inner class.
! * Instantiate it only within subclasses of <code>Foo</code>.
*/
public class FocusHandler implements FocusListener {
// NOTE: This class exists only for backward compatibility. All
// its functionality has been moved into Handler. If you need to add
// new functionality add it to the Handler, but make sure this
--- 2204,2214 ----
/**
* Focus-change listener.
* <p>
* This class should be treated as a "protected" inner class.
! * Instantiate it only within subclasses of {@code Foo}.
*/
public class FocusHandler implements FocusListener {
// NOTE: This class exists only for backward compatibility. All
// its functionality has been moved into Handler. If you need to add
// new functionality add it to the Handler, but make sure this
*** 2223,2241 ****
}
/**
* As of Java 2 platform v1.3 this undocumented class is no longer used.
* The recommended approach to creating bindings is to use a
! * combination of an <code>ActionMap</code>, to contain the action,
! * and an <code>InputMap</code> to contain the mapping from KeyStroke
* to action description. The InputMap is usually described in the
* LookAndFeel tables.
* <p>
* Please refer to the key bindings specification for further details.
* <p>
* This class should be treated as a "protected" inner class.
! * Instantiate it only within subclasses of <code>Foo</code>.
*/
@SuppressWarnings("serial") // Superclass is not serializable across versions
public class ActionScroller extends AbstractAction {
// NOTE: This class exists only for backward compatibility. All
// its functionality has been moved into Actions. If you need to add
--- 2223,2241 ----
}
/**
* As of Java 2 platform v1.3 this undocumented class is no longer used.
* The recommended approach to creating bindings is to use a
! * combination of an {@code ActionMap}, to contain the action,
! * and an {@code InputMap} to contain the mapping from KeyStroke
* to action description. The InputMap is usually described in the
* LookAndFeel tables.
* <p>
* Please refer to the key bindings specification for further details.
* <p>
* This class should be treated as a "protected" inner class.
! * Instantiate it only within subclasses of {@code Foo}.
*/
@SuppressWarnings("serial") // Superclass is not serializable across versions
public class ActionScroller extends AbstractAction {
// NOTE: This class exists only for backward compatibility. All
// its functionality has been moved into Actions. If you need to add
< prev index next >