yu.ac.bg.etf.javaqx.qswing
Class JQScrollBar

java.lang.Object
  extended byyu.ac.bg.etf.javaqx.core.AbstractDisposable
      extended byyu.ac.bg.etf.javaqx.qswing.JQComponent
          extended byyu.ac.bg.etf.javaqx.qswing.JQScrollBar
All Implemented Interfaces:
Disposable, JQComponentProperties, JQScrollBarProperties, QSwingConstants

public class JQScrollBar
extends JQComponent
implements QSwingConstants, JQScrollBarProperties

ScrollBar Component.

Version:
0.2.0
Author:
Slobodan Vrkacevic (slobodan.vrkacevic@gmail.com)

Field Summary
 
Fields inherited from class yu.ac.bg.etf.javaqx.qswing.JQComponent
listenerList
 
Fields inherited from interface yu.ac.bg.etf.javaqx.qswing.QSwingConstants
BOTTOM, CENTER, HORIZONTAL, LEADING, LEFT, RIGHT, TOP, TRAILING, VERTICAL
 
Fields inherited from interface yu.ac.bg.etf.javaqx.qswing.properties.JQScrollBarProperties
PROPERTY_BLOCK_INCREMENT, PROPERTY_MODEL, PROPERTY_ORIENTATION, PROPERTY_UNIT_INCREMENT
 
Fields inherited from interface yu.ac.bg.etf.javaqx.qswing.properties.JQComponentProperties
PROPERTY_BACKGROUND, PROPERTY_COMPONENT_ORIENTATION, PROPERTY_CONTEXT_MENU, PROPERTY_ENABLED, PROPERTY_FIXED_SIZE, PROPERTY_FOCUSABLE, PROPERTY_FONT, PROPERTY_FOREGROUND, PROPERTY_INSETS, PROPERTY_LOCALE, PROPERTY_MAXIMUM_SIZE, PROPERTY_MINIMUM_SIZE, PROPERTY_NAME, PROPERTY_OPAQUE, PROPERTY_PREFERRED_SIZE, PROPERTY_RESOURCE_BUNDLE_NAME, PROPERTY_STATUS_TIP_TEXT, PROPERTY_STYLE_SHEET, PROPERTY_TOOL_TIP_TEXT, PROPERTY_VISIBLE, PROPERTY_WHATS_THIS_TEXT
 
Constructor Summary
JQScrollBar()
          Constructs new JQScrollBar object.
JQScrollBar(BoundedRangeModel model)
          Constructs new JQScrollBar object.
JQScrollBar(int orientation)
          Constructs new JQScrollBar object.
JQScrollBar(int minimum, int maximum)
          Constructs new JQScrollBar object.
JQScrollBar(int minimum, int maximum, int value)
          Constructs new JQScrollBar object.
JQScrollBar(int orientation, int minimum, int maximum, int value)
          Constructs new JQScrollBar object.
 
Method Summary
 void addChangeListener(ChangeListener listener)
          Adds change listener.
protected  void fireStateChanged()
          Fires state changed event.
 int getBlockIncrement()
          Returns block increment of the scrollbar.
 ChangeListener[] getChangeListeners()
          Returns change listeners.
 int getMaximum()
          Returns maximum scrollbar value.
 int getMinimum()
          Returns minimum scrollbar value.
 BoundedRangeModel getModel()
          Returns data model of the scrollbar.
 int getOrientation()
          Returns orientation of the scrollbar.
 int getUnitIncrement()
          Returns unit increment of the scrollbar.
 int getValue()
          Returns current value of the scrollbar.
 boolean getValueIsAdjusting()
          Returns true if the scrollbar knob is being dragged.
protected  java.lang.String paramString()
          Returns parameters string.
 void removeChangeListener(ChangeListener listener)
          Removes change listener.
 void setBlockIncrement(int blockIncrement)
          Sets block increment.
 void setMaximum(int maximum)
          Sets maximum scrollbar value.
 void setMinimum(int minimum)
          Sets minimum scrollbar value.
 void setModel(BoundedRangeModel model)
          Sets data model of the scrollbar.
 void setOrientation(int orientation)
          Sets orientation.
 void setUnitIncrement(int unitIncrement)
          Sets unit increment.
 void setValue(int value)
          Sets current value of the scrollbar.
 void setValueIsAdjusting(boolean adjusting)
          Sets the value of the valueIsAdjusting property.
 
Methods inherited from class yu.ac.bg.etf.javaqx.qswing.JQComponent
addComponentListener, addFocusListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, addPropertyChangeListener, addPropertyChangeListener, disableEvents, disposeComponent, disposeObject, enableEvents, eventEnabled, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getClientProperty, getComponentListeners, getComponentOrientation, getContextMenu, getCursor, getEventMask, getFocusListener, getFont, getFontMetrics, getForeground, getHeight, getInsets, getKeyListeners, getLocale, getLocation, getMaximumSize, getMinimumSize, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getOwnedComponents, getOwner, getParent, getPreferredSize, getPropertyChangeListeners, getPropertyChangeListeners, getResourceBundleName, getSize, getStatusTipText, getStyleSheet, getToolTipText, getToolTipText, getWhatsThisText, getWidth, getX, getY, invalidate, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFontSet, isForegroundSet, isLeftToRight, isLocaleSet, isOpaque, isOwnerOf, isPainting, isResizable, isResourceBundleNameSet, isUpdatesEnabled, isValid, isVisible, localizeObject, localizeString, localizeString, localizeStrings, paintComponent, processComponentEvent, processContextMenuEvent, processFocusEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, processStyleChange, putClientProperty, removeComponentListener, removeFocusListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, removeStyleSheet, repaint, repaint, repaint, requestFocus, revalidate, setBackground, setBounds, setBounds, setComponentOrientation, setContextMenu, setCursor, setDefaultResourceBundleName, setDisplayable, setEnabled, setFixedSize, setFixedSize, setFocusable, setFont, setForeground, setInsets, setInsets, setLeftToRightComponentOrientation, setLocale, setLocation, setLocation, setMaximumSize, setMaximumSize, setMinimumSize, setMinimumSize, setName, setOpaque, setPreferredSize, setPreferredSize, setResizable, setResourceBundleName, setRightToLeftComponentOrientation, setSize, setSize, setStatusTipText, setStyleSheet, setStyleSheet, setToolTipText, setUpdatesEnabled, setVisible, setWhatsThisText, toString, unsetComponentOrientation, update, update, update, updateComponentOrientation, updateLocalization, validate
 
Methods inherited from class yu.ac.bg.etf.javaqx.core.AbstractDisposable
addDisposeListener, dispose, disposedCheck, disposedErrorString, finalize, isDisposed, removeDisposeListener
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JQScrollBar

public JQScrollBar()
Constructs new JQScrollBar object.


JQScrollBar

public JQScrollBar(int orientation)
Constructs new JQScrollBar object.

Parameters:
orientation - the orientation of the scrollbar

JQScrollBar

public JQScrollBar(int minimum,
                   int maximum)
Constructs new JQScrollBar object.

Parameters:
minimum - the minimum value of the scrollbar
maximum - the maximum value of the scrollbar

JQScrollBar

public JQScrollBar(int minimum,
                   int maximum,
                   int value)
Constructs new JQScrollBar object.

Parameters:
minimum - the minimum value of the scrollbar
maximum - the maximum value of the scrollbar
value - the current value of the scrollbar

JQScrollBar

public JQScrollBar(int orientation,
                   int minimum,
                   int maximum,
                   int value)
Constructs new JQScrollBar object.

Parameters:
orientation - the orientation of the scrollbar
minimum - the minimum value of the scrollbar
maximum - the maximum value of the scrollbar
value - the current value of the scrollbar

JQScrollBar

public JQScrollBar(BoundedRangeModel model)
Constructs new JQScrollBar object.

Parameters:
model - the model
Method Detail

getModel

public BoundedRangeModel getModel()
Returns data model of the scrollbar.

Returns:
data model of the scrollbar

setModel

public void setModel(BoundedRangeModel model)
Sets data model of the scrollbar.

Parameters:
model - the data model

getValue

public int getValue()
Returns current value of the scrollbar.

Returns:
current value of the scrollbar

setValue

public void setValue(int value)
Sets current value of the scrollbar.

Parameters:
value - the current value of the scrollbar

getMinimum

public int getMinimum()
Returns minimum scrollbar value.

Returns:
minimum scrollbar value

setMinimum

public void setMinimum(int minimum)
Sets minimum scrollbar value.

Parameters:
minimum - the maximum scrollbar value

getMaximum

public int getMaximum()
Returns maximum scrollbar value.

Returns:
maximum scrollbar value

setMaximum

public void setMaximum(int maximum)
Sets maximum scrollbar value.

Parameters:
maximum - the maximum scrollbar value

getValueIsAdjusting

public boolean getValueIsAdjusting()
Returns true if the scrollbar knob is being dragged.

Returns:
true if the scrollbar knob is being dragged

setValueIsAdjusting

public void setValueIsAdjusting(boolean adjusting)
Sets the value of the valueIsAdjusting property.

Parameters:
adjusting - the value of the valueIsAdjusting property

getOrientation

public int getOrientation()
Returns orientation of the scrollbar.

Returns:
orientation of the scrollbar

setOrientation

public void setOrientation(int orientation)
Sets orientation.

Parameters:
orientation - the orientation

getUnitIncrement

public int getUnitIncrement()
Returns unit increment of the scrollbar.

Returns:
unit increment of the scrollbar

setUnitIncrement

public void setUnitIncrement(int unitIncrement)
Sets unit increment.

Parameters:
unitIncrement - the unit increment

getBlockIncrement

public int getBlockIncrement()
Returns block increment of the scrollbar.

Returns:
block increment of the scrollbar

setBlockIncrement

public void setBlockIncrement(int blockIncrement)
Sets block increment.

Parameters:
blockIncrement - the block increment

addChangeListener

public void addChangeListener(ChangeListener listener)
Adds change listener.

Parameters:
listener - the change listener

removeChangeListener

public void removeChangeListener(ChangeListener listener)
Removes change listener.

Parameters:
listener - the change listener

getChangeListeners

public ChangeListener[] getChangeListeners()
Returns change listeners.

Returns:
change listeners

fireStateChanged

protected void fireStateChanged()
Fires state changed event.


paramString

protected java.lang.String paramString()
Returns parameters string.

Overrides:
paramString in class JQComponent
Returns:
parameters string


Copyright © 2007 ETF and contributors. All Rights Reserved.