- java.lang.Object
- 
- java.awt.ScrollPaneAdjustable
 
- 
- All Implemented Interfaces:
- Adjustable, Serializable
 
 public class ScrollPaneAdjustable extends Object implements Adjustable, Serializable This class represents the state of a horizontal or vertical scrollbar of aScrollPane. Objects of this class are returned byScrollPanemethods.- Since:
- 1.4
- See Also:
- Serialized Form
 
- 
- 
Field Summary- 
Fields inherited from interface java.awt.AdjustableHORIZONTAL, NO_ORIENTATION, VERTICAL
 
- 
 - 
Method SummaryMethods Modifier and Type Method and Description voidaddAdjustmentListener(AdjustmentListener l)Adds the specified adjustment listener to receive adjustment events from thisScrollPaneAdjustable.AdjustmentListener[]getAdjustmentListeners()Returns an array of all the adjustment listeners registered on thisScrollPaneAdjustable.intgetBlockIncrement()Gets the block value increment for the adjustable object.intgetMaximum()Gets the maximum value of the adjustable object.intgetMinimum()Gets the minimum value of the adjustable object.intgetOrientation()Returns the orientation of this scrollbar.intgetUnitIncrement()Gets the unit value increment for the adjustable object.intgetValue()Gets the current value of the adjustable object.booleangetValueIsAdjusting()Returns true if the value is in the process of changing as a result of actions being taken by the user.intgetVisibleAmount()Gets the length of the proportional indicator.StringparamString()Returns a string representing the state of this scrollbar.voidremoveAdjustmentListener(AdjustmentListener l)Removes the specified adjustment listener so that it no longer receives adjustment events from thisScrollPaneAdjustable.voidsetBlockIncrement(int b)Sets the block value increment for the adjustable object.voidsetMaximum(int max)This method should NOT be called by user code.voidsetMinimum(int min)This method should NOT be called by user code.voidsetUnitIncrement(int u)Sets the unit value increment for the adjustable object.voidsetValue(int v)Sets the value of this scrollbar to the specified value.voidsetValueIsAdjusting(boolean b)Sets thevalueIsAdjustingproperty.voidsetVisibleAmount(int v)This method should NOT be called by user code.StringtoString()Returns a string representation of this scrollbar and its values.
 
- 
- 
- 
Method Detail- 
getOrientationpublic int getOrientation() Returns the orientation of this scrollbar.- Specified by:
- getOrientationin interface- Adjustable
- Returns:
- the orientation of this scrollbar, either
            Adjustable.HORIZONTALorAdjustable.VERTICAL
 
 - 
setMinimumpublic void setMinimum(int min) This method should NOT be called by user code. This method is public for this class to properly implementAdjustableinterface.- Specified by:
- setMinimumin interface- Adjustable
- Parameters:
- min- the minimum value
- Throws:
- AWTError
 
 - 
getMinimumpublic int getMinimum() Description copied from interface:AdjustableGets the minimum value of the adjustable object.- Specified by:
- getMinimumin interface- Adjustable
- Returns:
- the minimum value of the adjustable object
 
 - 
setMaximumpublic void setMaximum(int max) This method should NOT be called by user code. This method is public for this class to properly implementAdjustableinterface.- Specified by:
- setMaximumin interface- Adjustable
- Parameters:
- max- the maximum value
- Throws:
- AWTError
 
 - 
getMaximumpublic int getMaximum() Description copied from interface:AdjustableGets the maximum value of the adjustable object.- Specified by:
- getMaximumin interface- Adjustable
- Returns:
- the maximum value of the adjustable object
 
 - 
setUnitIncrementpublic void setUnitIncrement(int u) Description copied from interface:AdjustableSets the unit value increment for the adjustable object.- Specified by:
- setUnitIncrementin interface- Adjustable
- Parameters:
- u- the unit increment
 
 - 
getUnitIncrementpublic int getUnitIncrement() Description copied from interface:AdjustableGets the unit value increment for the adjustable object.- Specified by:
- getUnitIncrementin interface- Adjustable
- Returns:
- the unit value increment for the adjustable object
 
 - 
setBlockIncrementpublic void setBlockIncrement(int b) Description copied from interface:AdjustableSets the block value increment for the adjustable object.- Specified by:
- setBlockIncrementin interface- Adjustable
- Parameters:
- b- the block increment
 
 - 
getBlockIncrementpublic int getBlockIncrement() Description copied from interface:AdjustableGets the block value increment for the adjustable object.- Specified by:
- getBlockIncrementin interface- Adjustable
- Returns:
- the block value increment for the adjustable object
 
 - 
setVisibleAmountpublic void setVisibleAmount(int v) This method should NOT be called by user code. This method is public for this class to properly implementAdjustableinterface.- Specified by:
- setVisibleAmountin interface- Adjustable
- Parameters:
- v- the length of the indicator
- Throws:
- AWTError
 
 - 
getVisibleAmountpublic int getVisibleAmount() Description copied from interface:AdjustableGets the length of the proportional indicator.- Specified by:
- getVisibleAmountin interface- Adjustable
- Returns:
- the length of the proportional indicator
 
 - 
setValueIsAdjustingpublic void setValueIsAdjusting(boolean b) Sets thevalueIsAdjustingproperty.- Parameters:
- b- new adjustment-in-progress status
- Since:
- 1.4
- See Also:
- getValueIsAdjusting()
 
 - 
getValueIsAdjustingpublic boolean getValueIsAdjusting() Returns true if the value is in the process of changing as a result of actions being taken by the user.- Returns:
- the value of the valueIsAdjustingproperty
- See Also:
- setValueIsAdjusting(boolean)
 
 - 
setValuepublic void setValue(int v) Sets the value of this scrollbar to the specified value.If the value supplied is less than the current minimum or greater than the current maximum, then one of those values is substituted, as appropriate. - Specified by:
- setValuein interface- Adjustable
- Parameters:
- v- the new value of the scrollbar
 
 - 
getValuepublic int getValue() Description copied from interface:AdjustableGets the current value of the adjustable object.- Specified by:
- getValuein interface- Adjustable
- Returns:
- the current value of the adjustable object
 
 - 
addAdjustmentListenerpublic void addAdjustmentListener(AdjustmentListener l) Adds the specified adjustment listener to receive adjustment events from thisScrollPaneAdjustable. Iflisnull, no exception is thrown and no action is performed.Refer to AWT Threading Issues for details on AWT's threading model. - Specified by:
- addAdjustmentListenerin interface- Adjustable
- Parameters:
- l- the adjustment listener.
- See Also:
- removeAdjustmentListener(java.awt.event.AdjustmentListener),- getAdjustmentListeners(),- AdjustmentListener,- AdjustmentEvent
 
 - 
removeAdjustmentListenerpublic void removeAdjustmentListener(AdjustmentListener l) Removes the specified adjustment listener so that it no longer receives adjustment events from thisScrollPaneAdjustable. Iflisnull, no exception is thrown and no action is performed.Refer to AWT Threading Issues for details on AWT's threading model. - Specified by:
- removeAdjustmentListenerin interface- Adjustable
- Parameters:
- l- the adjustment listener.
- Since:
- JDK1.1
- See Also:
- addAdjustmentListener(java.awt.event.AdjustmentListener),- getAdjustmentListeners(),- AdjustmentListener,- AdjustmentEvent
 
 - 
getAdjustmentListenerspublic AdjustmentListener[] getAdjustmentListeners() Returns an array of all the adjustment listeners registered on thisScrollPaneAdjustable.- Returns:
- all of this ScrollPaneAdjustable'sAdjustmentListeners or an empty array if no adjustment listeners are currently registered
- Since:
- 1.4
- See Also:
- addAdjustmentListener(java.awt.event.AdjustmentListener),- removeAdjustmentListener(java.awt.event.AdjustmentListener),- AdjustmentListener,- AdjustmentEvent
 
 - 
toStringpublic String toString() Returns a string representation of this scrollbar and its values.
 - 
paramStringpublic String paramString() Returns a string representing the state of this scrollbar. This method is intended to be used only for debugging purposes, and the content and format of the returned string may vary between implementations. The returned string may be empty but may not benull.- Returns:
- the parameter string of this scrollbar.
 
 
- 
 
- 
Nederlandse vertaling
U hebt gevraagd om deze site in het Nederlands te bezoeken. Voor nu wordt alleen de interface vertaald, maar nog niet alle inhoud.Als je me wilt helpen met vertalingen, is je bijdrage welkom. Het enige dat u hoeft te doen, is u op de site registreren en mij een bericht sturen waarin u wordt gevraagd om u toe te voegen aan de groep vertalers, zodat u de gewenste pagina's kunt vertalen. Een link onderaan elke vertaalde pagina geeft aan dat u de vertaler bent en heeft een link naar uw profiel.
Bij voorbaat dank.
Document heeft de 11/06/2005 gemaakt, de laatste keer de 04/03/2020 gewijzigd
Bron van het afgedrukte document:https://www.gaudry.be/nl/java-api-rf-java/awt/ScrollPaneAdjustable.html
De infobrol is een persoonlijke site waarvan de inhoud uitsluitend mijn verantwoordelijkheid is. De tekst is beschikbaar onder CreativeCommons-licentie (BY-NC-SA). Meer info op de gebruiksvoorwaarden en de auteur.
Referenties
Deze verwijzingen en links verwijzen naar documenten die geraadpleegd zijn tijdens het schrijven van deze pagina, of die aanvullende informatie kunnen geven, maar de auteurs van deze bronnen kunnen niet verantwoordelijk worden gehouden voor de inhoud van deze pagina.
De auteur van deze site is als enige verantwoordelijk voor de manier waarop de verschillende concepten, en de vrijheden die met de referentiewerken worden genomen, hier worden gepresenteerd. Vergeet niet dat u meerdere broninformatie moet doorgeven om het risico op fouten te verkleinen.
 
  
  
 