Liking cljdoc? Tell your friends :D

javax.swing.DefaultBoundedRangeModel

A generic implementation of BoundedRangeModel.

Warning: Serialized objects of this class will not be compatible with future Swing releases. The current serialization support is appropriate for short term storage or RMI between applications running the same version of Swing. As of 1.4, support for long term storage of all JavaBeans™ has been added to the java.beans package. Please see XMLEncoder.

A generic implementation of BoundedRangeModel.

Warning:
Serialized objects of this class will not be compatible with
future Swing releases. The current serialization support is
appropriate for short term storage or RMI between applications running
the same version of Swing.  As of 1.4, support for long term storage
of all JavaBeans™
has been added to the java.beans package.
Please see XMLEncoder.
raw docstring

->default-bounded-range-modelclj

(->default-bounded-range-model)
(->default-bounded-range-model value extent min max)

Constructor.

Initializes value, extent, minimum and maximum. Adjusting is false. Throws an IllegalArgumentException if the following constraints aren't satisfied:

min <= value <= value+extent <= max

value - int extent - int min - int max - int

Constructor.

Initializes value, extent, minimum and maximum. Adjusting is false.
 Throws an IllegalArgumentException if the following
 constraints aren't satisfied:


 min <= value <= value+extent <= max

value - `int`
extent - `int`
min - `int`
max - `int`
raw docstring

add-change-listenerclj

(add-change-listener this l)

Adds a ChangeListener. The change listeners are run each time any one of the Bounded Range model properties changes.

l - the ChangeListener to add - javax.swing.event.ChangeListener

Adds a ChangeListener.  The change listeners are run each
 time any one of the Bounded Range model properties changes.

l - the ChangeListener to add - `javax.swing.event.ChangeListener`
raw docstring

get-change-listenersclj

(get-change-listeners this)

Returns an array of all the change listeners registered on this DefaultBoundedRangeModel.

returns: all of this model's ChangeListeners or an empty array if no change listeners are currently registered - javax.swing.event.ChangeListener[]

Returns an array of all the change listeners
 registered on this DefaultBoundedRangeModel.

returns: all of this model's ChangeListeners
         or an empty
         array if no change listeners are currently registered - `javax.swing.event.ChangeListener[]`
raw docstring

get-extentclj

(get-extent this)

Returns the model's extent.

returns: the model's extent - int

Returns the model's extent.

returns: the model's extent - `int`
raw docstring

get-listenersclj

(get-listeners this listener-type)

Returns an array of all the objects currently registered as FooListeners upon this model. FooListeners are registered using the addFooListener method.

You can specify the listenerType argument with a class literal, such as FooListener.class. For example, you can query a DefaultBoundedRangeModel instance m for its change listeners with the following code:

ChangeListener[] cls = (ChangeListener[])(m.getListeners(ChangeListener.class));

If no such listeners exist, this method returns an empty array.

listener-type - the type of listeners requested; this parameter should specify an interface that descends from java.util.EventListener - java.lang.Class

returns: an array of all objects registered as FooListeners on this model, or an empty array if no such listeners have been added - <T extends java.util.EventListener> T[]

throws: java.lang.ClassCastException - if listenerType doesn't specify a class or interface that implements java.util.EventListener

Returns an array of all the objects currently registered as
 FooListeners
 upon this model.
 FooListeners
 are registered using the addFooListener method.

 You can specify the listenerType argument
 with a class literal, such as FooListener.class.
 For example, you can query a DefaultBoundedRangeModel
 instance m
 for its change listeners
 with the following code:



ChangeListener[] cls = (ChangeListener[])(m.getListeners(ChangeListener.class));

 If no such listeners exist,
 this method returns an empty array.

listener-type - the type of listeners requested; this parameter should specify an interface that descends from java.util.EventListener - `java.lang.Class`

returns: an array of all objects registered as
          FooListeners
          on this model,
          or an empty array if no such
          listeners have been added - `<T extends java.util.EventListener> T[]`

throws: java.lang.ClassCastException - if listenerType doesn't specify a class or interface that implements java.util.EventListener
raw docstring

get-maximumclj

(get-maximum this)

Returns the model's maximum.

returns: the model's maximum - int

Returns the model's maximum.

returns: the model's maximum - `int`
raw docstring

get-minimumclj

(get-minimum this)

Returns the model's minimum.

returns: the model's minimum - int

Returns the model's minimum.

returns: the model's minimum - `int`
raw docstring

get-valueclj

(get-value this)

Returns the model's current value.

returns: the model's current value - int

Returns the model's current value.

returns: the model's current value - `int`
raw docstring

get-value-is-adjusting?clj

(get-value-is-adjusting? this)

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 valueIsAdjusting property - boolean

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 valueIsAdjusting property - `boolean`
raw docstring

remove-change-listenerclj

(remove-change-listener this l)

Removes a ChangeListener.

l - the ChangeListener to remove - javax.swing.event.ChangeListener

Removes a ChangeListener.

l - the ChangeListener to remove - `javax.swing.event.ChangeListener`
raw docstring

set-extentclj

(set-extent this n)

Sets the extent to n after ensuring that n is greater than or equal to zero and falls within the model's constraints:

 minimum <= value <= value+extent <= maximum

n - the model's new extent - int

Sets the extent to n after ensuring that n
 is greater than or equal to zero and falls within the model's
 constraints:


     minimum <= value <= value+extent <= maximum

n - the model's new extent - `int`
raw docstring

set-maximumclj

(set-maximum this n)

Sets the maximum to n after ensuring that n that the other three properties obey the model's constraints:

 minimum <= value <= value+extent <= maximum

n - the model's new maximum - int

Sets the maximum to n after ensuring that n
 that the other three properties obey the model's constraints:


     minimum <= value <= value+extent <= maximum

n - the model's new maximum - `int`
raw docstring

set-minimumclj

(set-minimum this n)

Sets the minimum to n after ensuring that n that the other three properties obey the model's constraints:

 minimum <= value <= value+extent <= maximum

n - the model's new minimum - int

Sets the minimum to n after ensuring that n
 that the other three properties obey the model's constraints:


     minimum <= value <= value+extent <= maximum

n - the model's new minimum - `int`
raw docstring

set-range-propertiesclj

(set-range-properties this new-value new-extent new-min new-max adjusting)

Sets all of the BoundedRangeModel properties after forcing the arguments to obey the usual constraints:

 minimum <= value <= value+extent <= maximum

At most, one ChangeEvent is generated.

new-value - an int giving the current value - int new-extent - an int giving the amount by which the value can "jump" - int new-min - an int giving the minimum value - int new-max - an int giving the maximum value - int adjusting - a boolean, true if a series of changes are in progress - boolean

Sets all of the BoundedRangeModel properties after forcing
 the arguments to obey the usual constraints:


     minimum <= value <= value+extent <= maximum

 At most, one ChangeEvent is generated.

new-value - an int giving the current value - `int`
new-extent - an int giving the amount by which the value can "jump" - `int`
new-min - an int giving the minimum value - `int`
new-max - an int giving the maximum value - `int`
adjusting - a boolean, true if a series of changes are in progress - `boolean`
raw docstring

set-valueclj

(set-value this n)

Sets the current value of the model. For a slider, that determines where the knob appears. Ensures that the new value, n falls within the model's constraints:

 minimum <= value <= value+extent <= maximum

n - the model's new value - int

Sets the current value of the model. For a slider, that
 determines where the knob appears. Ensures that the new
 value, n falls within the model's constraints:


     minimum <= value <= value+extent <= maximum

n - the model's new value - `int`
raw docstring

set-value-is-adjustingclj

(set-value-is-adjusting this b)

Sets the valueIsAdjusting property.

b - true if the upcoming changes to the value property are part of a series - boolean

Sets the valueIsAdjusting property.

b - true if the upcoming changes to the value property are part of a series - `boolean`
raw docstring

to-stringclj

(to-string this)

Returns a string that displays all of the BoundedRangeModel properties.

returns: a string representation of the object. - java.lang.String

Returns a string that displays all of the
 BoundedRangeModel properties.

returns: a string representation of the object. - `java.lang.String`
raw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close