public class GSliderWithLabel extends GSliderAbstractWithLabel implements GListener, GReadWrite, GClear
Index | Class | Item | Constraint |
0 | GLabelWithIndicator | label | 0, 0 => "newline , split 2" 0, 1 => (null) |
1 | GIntField | setValueEntry | (null) |
2 | GSlider | slider | "newline" |
GComponent.CopyPasteOperation, GComponent.DisplayIndicatorStatus, GComponent.ItemType, GComponent.Operation
NAME_ATTRIBUTE
Constructor and Description |
---|
GSliderWithLabel(String label,
String orientation,
int minVal,
int maxVal,
int initVal,
int spacing)
Constructor.
|
GSliderWithLabel(String widgetId,
String label,
String orientation,
int minVal,
int maxVal,
int initVal,
int spacing)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
after(GEvent e)
Called after the event is processed.
|
void |
before(GEvent e)
Called before the event is processed.
|
void |
clear()
Called when the element is to be cleared, so it can perform the actions required to return to the last
saved/loaded values.
|
int |
getSavedValue()
Get the saved value.
|
int |
getValue()
Get the value of the slider.
|
boolean |
isModified()
Gets the modification status of the component against the last set of values loaded or saved.
|
void |
read()
Implementaion of the routines that allow the component to be loaded from a configuration file.
|
void |
setDefaultValue(int memoryValue)
Set the default value.
|
void |
setSavedValue(int memoryValue)
Set the saved value.
|
void |
setValue(int value)
Set the value of the slider.
|
protected void |
updateIsModifiedIndicator()
Updates the is modified indicator.
|
void |
write()
Implementaion of the routines that allow the component to be saved to a configuration file.
|
addGInterval, attachCopyPasteMenu, display, generic, getGLabelWithIndicator, getGSlider, getNumber, getSetValueEntry, getSubComponent, isCopyPasteEvent, isEnabled, removeGInterval, setDefaultConstraints, setEnabled, setStringConstraint, setToolTipText, setUnitPoupList, updateGInterval, updateStatus
put
activateConstraintsByType, 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, getWidgetId, handleCopyPasteEvent, handleCopyPasteEvent, handleProcessEventException, isForcedStatus, launchInvalidPositionException, mouseWheelMoved, parseSimpleConstraint, processGEvent, processMouseWheelEvent, setBusyCursor, setCommentInConfigFile, setConstraint, setCopyPasteMenuEnabled, setCurrentOperation, setDataForConstraintsByType, setDisplayIsModifiedIndicator, setElement, setForcedStatus, setGPanel, setGParent, setGUnitInConfigFile, setInnerDescendantConstraint, setName, setNameAndCommentInConfigFile, setNameInConfigFile, setPathInConfigFile, setStatus, setWidgetId, setWidth, setWindowBusyCursor, writeCollection, writeCollection, writeCollection, writeCollection, writeConfigItem, writeConfigItem, writeConfigItem, writeConfigItem, writeConfigItem
public GSliderWithLabel(String label, String orientation, int minVal, int maxVal, int initVal, int spacing)
label
- of the widget.orientation
- of the slider; can have the value "VERTICAL" or "HORIZONTAL", default is "HORIZONTAL".minVal
- minimum value.maxVal
- maximum value.initVal
- initial value.spacing
- spacing between the ticks.public GSliderWithLabel(String widgetId, String label, String orientation, int minVal, int maxVal, int initVal, int spacing)
widgetId
- widget identifier.label
- of the widget.orientation
- of the slider; can have the value "VERTICAL" or "HORIZONTAL", default is "HORIZONTAL".minVal
- minimum value.maxVal
- maximum value.initVal
- initial value.spacing
- spacing between the ticks.public int getValue()
public void setValue(int value) throws GArithmeticException
value
- to set.GArithmeticException
- if value is NaNpublic void setDefaultValue(int memoryValue)
memoryValue
- new default value.public void setSavedValue(int memoryValue)
memoryValue
- new saved value.public int getSavedValue()
public void before(GEvent e) throws GException
before
in interface GListener
e
- event to processed.GException
- in case there is a problem managing the event.public void after(GEvent e) throws GException, GFileManipulatorException
after
in interface GListener
e
- processed event.GException
- in case there is a problem managing the event.GFileManipulatorException
public void read() throws GException
read
in interface GReadWrite
GException
- in case of problem while reading the value from file.public void write() throws GException
write
in interface GReadWrite
GException
- in case of problem while writing the value to file.public boolean isModified()
isModified
in class GSliderAbstractWithLabel
public void clear() throws GException
clear
in interface GClear
GException
- in case of problem while clearing the values.protected void updateIsModifiedIndicator()
updateIsModifiedIndicator
in class GComponent
Copyright © 2024. All rights reserved.