public abstract class GSliderAbstract extends GComponent
GComponent.CopyPasteOperation, GComponent.DisplayIndicatorStatus, GComponent.ItemType, GComponent.Operation
NAME_ATTRIBUTE
Constructor and Description |
---|
GSliderAbstract(String widgetId)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
abstract JSlider |
getJSlider()
Get the Swing JSlider object.
|
abstract Number |
getMajorTickSpacing()
This method gets the major tick spacing.
|
abstract Number |
getMaxVal()
Get the maximum value of the slider.
|
abstract Number |
getMinVal()
Get the minimum value of the slider.
|
abstract boolean |
getPaintLabels()
Tells if labels are to be painted.
|
abstract boolean |
getPaintTicks()
Tells if the track (area the slider slides in) is to be painted.
|
abstract Number |
getValue()
Get the current value of the widget.
|
abstract void |
setMajorTickSpacing(Number spacing)
This method sets the major tick spacing.
|
abstract void |
setPaintLabels(boolean flag)
Determines whether labels are painted on the slider.
|
abstract void |
setPaintTicks(boolean flag)
Determines whether the track is painted on the slider.
|
abstract void |
setValue(Number numberValue)
Set the value of the widget.
|
activateConstraintsByType, attachCopyPasteMenu, attachCopyPasteMenu, beginOfElement, beginOfElement, beginOfElement, beginOfElement, clearAllInnerDescendantConstraint, clearConstraint, clearInnerDescendantContraint, composeWidgetId, doDisplay, endOfElement, getCommentInConfigFile, getComponent, getConstraint, getCurrentOperation, getDisplayIndicatorStatus, getDisplayIsModifiedIndicator, getElement, getGClassName, getGPanel, getGParent, getGUnitInConfigFile, getInnerDescendantConstraint, getName, getNameInConfigFile, getOperationSaveValue, getPathInConfigFile, getSimpleWidgetId, getStatus, getStringConstraint, getSubComponent, getWidgetId, handleCopyPasteEvent, handleCopyPasteEvent, handleProcessEventException, isCopyPasteEvent, isEnabled, isForcedStatus, isModified, launchInvalidPositionException, mouseWheelMoved, parseSimpleConstraint, processGEvent, processMouseWheelEvent, setBusyCursor, setCommentInConfigFile, setConstraint, setCopyPasteMenuEnabled, setCurrentOperation, setDataForConstraintsByType, setDefaultConstraints, setDisplayIsModifiedIndicator, setElement, setEnabled, setForcedStatus, setGPanel, setGParent, setGUnitInConfigFile, setInnerDescendantConstraint, setName, setNameAndCommentInConfigFile, setNameInConfigFile, setPathInConfigFile, setStatus, setStringConstraint, setToolTipText, setWidgetId, setWidth, setWindowBusyCursor, updateIsModifiedIndicator, writeCollection, writeCollection, writeCollection, writeCollection, writeConfigItem, writeConfigItem, writeConfigItem, writeConfigItem, writeConfigItem
public GSliderAbstract(String widgetId)
widgetId
- widget identifierpublic abstract void setValue(Number numberValue) throws GArithmeticException
numberValue
- new value of the widget.GArithmeticException
- if numberValue is NaNpublic abstract Number getValue()
public abstract Number getMaxVal()
public abstract Number getMinVal()
public abstract JSlider getJSlider()
public abstract boolean getPaintTicks()
public abstract void setPaintTicks(boolean flag)
flag
- whether or not to paint the slider track.public abstract boolean getPaintLabels()
public abstract void setPaintLabels(boolean flag)
flag
- whether or not to paint labels.public abstract void setMajorTickSpacing(Number spacing)
spacing
- new value for the majorTickSpacing property.public abstract Number getMajorTickSpacing()
Copyright © 2024. All rights reserved.