Class DoubleRangeConstraintEditor
java.lang.Object
docking.widgets.table.constrainteditor.AbstractColumnConstraintEditor<Double>
docking.widgets.table.constrainteditor.DoubleRangeConstraintEditor
- All Implemented Interfaces:
- ColumnConstraintEditor<Double>
A constraint editor for specifying ranges of floating-point numbers (Float and Double)
- 
Field SummaryFieldsFields inherited from class docking.widgets.table.constrainteditor.AbstractColumnConstraintEditorcurrentConstraint, INVALID_INPUT_COLOR, VALID_INPUT_COLOR
- 
Constructor SummaryConstructorsConstructorDescriptionDoubleRangeConstraintEditor(ColumnConstraint<Double> constraint) Constructor.
- 
Method SummaryModifier and TypeMethodDescriptionprotected ComponentDelegate the construction of the inline editor component.protected booleanTemplate method that subclasses must implement.If the editor contains and invalid value, this message should indicate why the value is invalid.protected ColumnConstraint<Double> Get the constraints' new value from the editor component.voidreset()Reset the editor to a known-good state.protected voidIndicates to subclasses that the constraint has changed, and the user interface needs to be updated to reflect the new state.protected voidupdateInfoMessage(boolean isValid) Methods inherited from class docking.widgets.table.constrainteditor.AbstractColumnConstraintEditoraddChangeListener, buildDetailEditorComponent, formatStatus, getDetailComponent, getInlineComponent, getValue, hasEditorComponents, hasValidValue, notifyConstraintChanged, removeChangeListener, setValue, valueChanged
- 
Field Details- 
FLOATING_POINT_FORMAT- See Also:
 
- 
DISPLAY_FORMAT- See Also:
 
 
- 
- 
Constructor Details- 
DoubleRangeConstraintEditorConstructor.- Parameters:
- constraint- Floating-point constraint for which this component is an editor.
 
 
- 
- 
Method Details- 
buildInlineEditorComponentDescription copied from class:AbstractColumnConstraintEditorDelegate the construction of the inline editor component.- Specified by:
- buildInlineEditorComponentin class- AbstractColumnConstraintEditor<Double>
- Returns:
- the editors inline component
- See Also:
 
- 
updateInfoMessageprotected void updateInfoMessage(boolean isValid) - Specified by:
- updateInfoMessagein class- AbstractColumnConstraintEditor<Double>
 
- 
updateEditorComponentprotected void updateEditorComponent()Description copied from class:AbstractColumnConstraintEditorIndicates to subclasses that the constraint has changed, and the user interface needs to be updated to reflect the new state.- Specified by:
- updateEditorComponentin class- AbstractColumnConstraintEditor<Double>
 
- 
resetpublic void reset()Description copied from interface:ColumnConstraintEditorReset the editor to a known-good state.
- 
getValueFromComponentDescription copied from class:AbstractColumnConstraintEditorGet the constraints' new value from the editor component. This expects the UI to have been constructed.- Specified by:
- getValueFromComponentin class- AbstractColumnConstraintEditor<Double>
- Returns:
- the value
- See Also:
 
- 
checkEditorValueValidityprotected boolean checkEditorValueValidity()Description copied from class:AbstractColumnConstraintEditorTemplate method that subclasses must implement. This class will call this method whenever the value changes so that the validity state is updated.Only called when the editor component has been constructed and UI elements are defined. - Specified by:
- checkEditorValueValidityin class- AbstractColumnConstraintEditor<Double>
- Returns:
- true if the UI defines a valid value, false otherwise
- See Also:
 
- 
getErrorMessageDescription copied from interface:ColumnConstraintEditorIf the editor contains and invalid value, this message should indicate why the value is invalid. Only called ifhasValidValue()returns false.- Returns:
- an error message, or an empty string if no error
 
 
-