Overview
Package
Class
Use
Tree
Deprecated
Index
All Classes
Help
Prev Class
Next Class
Sample
Document
Interface java.awt.Adjustable
Inherited members: ShowHide
Deprecated: ShowHide
View: ClientSubclassPackageImplementation
java.awt

Interface Adjustable

  • All Known Implementing Classes:
    Scrollbar, ScrollPaneAdjustable
    public interface Adjustable
    The interface for objects which have an adjustable numeric value contained within a bounded range of values.
    • Fields 
      Modifier and Type Field and Description
      Ordinary member indicator HORIZONTAL Reveal DetailHide Detail
      static int HORIZONTAL
      Indicates that the Adjustable has horizontal orientation.
      static final int HORIZONTAL
      Indicates that the Adjustable has horizontal orientation.
      See Also:
      Constant Field Values
      Ordinary member indicator NO_ORIENTATION Reveal DetailHide Detail
      static int NO_ORIENTATION
      Indicates that the Adjustable has no orientation.
      static final int NO_ORIENTATION
      Indicates that the Adjustable has no orientation.
      See Also:
      Constant Field Values
      Ordinary member indicator VERTICAL Reveal DetailHide Detail
      static int VERTICAL
      Indicates that the Adjustable has vertical orientation.
      static final int VERTICAL
      Indicates that the Adjustable has vertical orientation.
      See Also:
      Constant Field Values
    • Methods 
      Modifier and Type Method and Description
      Ordinary member indicator addAdjustmentListener Reveal DetailHide Detail
      void addAdjustmentListener(AdjustmentListener l)
      Adds a listener to receive adjustment events when the value of the adjustable object changes.
      void addAdjustmentListener(AdjustmentListener l)
      Adds a listener to receive adjustment events when the value of the adjustable object changes.
      Parameters:
      l - the listener to receive events
      See Also:
      AdjustmentEvent
      Ordinary member indicator getBlockIncrement Reveal DetailHide Detail
      int getBlockIncrement()
      Gets the block value increment for the adjustable object.
      int getBlockIncrement()
      Gets the block value increment for the adjustable object.
      Returns:
      the block value increment for the adjustable object
      Ordinary member indicator getMaximum Reveal DetailHide Detail
      int getMaximum()
      Gets the maximum value of the adjustable object.
      int getMaximum()
      Gets the maximum value of the adjustable object.
      Returns:
      the maximum value of the adjustable object
      Ordinary member indicator getMinimum Reveal DetailHide Detail
      int getMinimum()
      Gets the minimum value of the adjustable object.
      int getMinimum()
      Gets the minimum value of the adjustable object.
      Returns:
      the minimum value of the adjustable object
      Ordinary member indicator getOrientation Reveal DetailHide Detail
      int getOrientation()
      Gets the orientation of the adjustable object.
      int getOrientation()
      Gets the orientation of the adjustable object.
      Returns:
      the orientation of the adjustable object; either HORIZONTAL, VERTICAL, or NO_ORIENTATION
      Ordinary member indicator getUnitIncrement Reveal DetailHide Detail
      int getUnitIncrement()
      Gets the unit value increment for the adjustable object.
      int getUnitIncrement()
      Gets the unit value increment for the adjustable object.
      Returns:
      the unit value increment for the adjustable object
      Ordinary member indicator getValue Reveal DetailHide Detail
      int getValue()
      Gets the current value of the adjustable object.
      int getValue()
      Gets the current value of the adjustable object.
      Returns:
      the current value of the adjustable object
      Ordinary member indicator getVisibleAmount Reveal DetailHide Detail
      int getVisibleAmount()
      Gets the length of the proportional indicator.
      int getVisibleAmount()
      Gets the length of the proportional indicator.
      Returns:
      the length of the proportional indicator
      Ordinary member indicator removeAdjustmentListener Reveal DetailHide Detail
      void removeAdjustmentListener(AdjustmentListener l)
      Removes an adjustment listener.
      void removeAdjustmentListener(AdjustmentListener l)
      Removes an adjustment listener.
      Parameters:
      l - the listener being removed
      See Also:
      AdjustmentEvent
      Ordinary member indicator setBlockIncrement Reveal DetailHide Detail
      void setBlockIncrement(int b)
      Sets the block value increment for the adjustable object.
      void setBlockIncrement(int b)
      Sets the block value increment for the adjustable object.
      Parameters:
      b - the block increment
      Ordinary member indicator setMaximum Reveal DetailHide Detail
      void setMaximum(int max)
      Sets the maximum value of the adjustable object.
      void setMaximum(int max)
      Sets the maximum value of the adjustable object.
      Parameters:
      max - the maximum value
      Ordinary member indicator setMinimum Reveal DetailHide Detail
      void setMinimum(int min)
      Sets the minimum value of the adjustable object.
      void setMinimum(int min)
      Sets the minimum value of the adjustable object.
      Parameters:
      min - the minimum value
      Ordinary member indicator setUnitIncrement Reveal DetailHide Detail
      void setUnitIncrement(int u)
      Sets the unit value increment for the adjustable object.
      void setUnitIncrement(int u)
      Sets the unit value increment for the adjustable object.
      Parameters:
      u - the unit increment
      Ordinary member indicator setValue Reveal DetailHide Detail
      void setValue(int v)
      Sets the current value of the adjustable object.
      void setValue(int v)
      Sets the current value of the adjustable object. If the value supplied is less than minimum or greater than maximum - visibleAmount, then one of those values is substituted, as appropriate.

      Calling this method does not fire an AdjustmentEvent.

      Parameters:
      v - the current value, between minimum and maximum - visibleAmount
      Ordinary member indicator setVisibleAmount Reveal DetailHide Detail
      void setVisibleAmount(int v)
      Sets the length of the proportional indicator of the adjustable object.
      void setVisibleAmount(int v)
      Sets the length of the proportional indicator of the adjustable object.
      Parameters:
      v - the length of the indicator
This document was created by Dulcet from the OpenJDK sources. Copyright © 1993, 2012 Oracle and/or its affiliates. All rights reserved.

SourceForge