Class AutocompletingStringConstraintEditor
java.lang.Object
docking.widgets.table.constrainteditor.AbstractColumnConstraintEditor<String>
docking.widgets.table.constrainteditor.DataLoadingConstraintEditor<String>
docking.widgets.table.constrainteditor.AutocompletingStringConstraintEditor
- All Implemented Interfaces:
ColumnConstraintEditor<String>,TaskListener
An editor that provides suggestions of values that, according to
StringColumnConstraint, match a user-supplied
pattern.
-
Field Summary
FieldsFields inherited from class docking.widgets.table.constrainteditor.DataLoadingConstraintEditor
columnDataSource, statusLabelFields inherited from class docking.widgets.table.constrainteditor.AbstractColumnConstraintEditor
currentConstraint, INVALID_INPUT_COLOR, VALID_INPUT_COLOR -
Constructor Summary
ConstructorsConstructorDescriptionAutocompletingStringConstraintEditor(StringColumnConstraint constraint, ColumnData<String> columnDataSource) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionprotected ComponentGet the delegates' inline editor componentprotected booleanTemplate method that subclasses must implement.voidRequest that any state maintained by the delegate editor pertaining to column data be cleared.voidNotification that the column data-load was cancelled.voidNotification that the column data-load has been completed.protected voidIndicates the constraint has changed, and the user interface needs to be updated to reflect the new state.protected ColumnConstraint<String> Get the constraints' new value from the editor component.voidhandleColumnDataValue(String value) A value has been read from the table (column); handle it in an editor-specific way.protected voidReset the delegate editor to a known stateprotected voidupdateInfoMessage(boolean isValid) Methods inherited from class docking.widgets.table.constrainteditor.DataLoadingConstraintEditor
buildDelegateDetailEditor, buildDetailEditorComponent, buildInlineEditorComponent, getErrorMessage, reset, taskCancelled, taskCompleted, updateEditorComponentMethods inherited from class docking.widgets.table.constrainteditor.AbstractColumnConstraintEditor
addChangeListener, formatStatus, getDetailComponent, getInlineComponent, getValue, hasEditorComponents, hasValidValue, notifyConstraintChanged, removeChangeListener, setValue, valueChanged
-
Field Details
-
textField
-
-
Constructor Details
-
AutocompletingStringConstraintEditor
public AutocompletingStringConstraintEditor(StringColumnConstraint constraint, ColumnData<String> columnDataSource) Constructor.- Parameters:
constraint- String constraint for which this component is an editorcolumnDataSource- provides access to table data and. Must be non-null.
-
-
Method Details
-
buildDelegateInlineEditor
Description copied from class:DataLoadingConstraintEditorGet the delegates' inline editor component- Overrides:
buildDelegateInlineEditorin classDataLoadingConstraintEditor<String>- Returns:
- the inline editor for the delegate constraint
-
checkEditorValueValidity
protected 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 classAbstractColumnConstraintEditor<String>- Returns:
- true if the UI defines a valid value, false otherwise
- See Also:
-
updateInfoMessage
protected void updateInfoMessage(boolean isValid) - Specified by:
updateInfoMessagein classAbstractColumnConstraintEditor<String>
-
resetEditor
protected void resetEditor()Description copied from class:DataLoadingConstraintEditorReset the delegate editor to a known state- Specified by:
resetEditorin classDataLoadingConstraintEditor<String>- See Also:
-
getValueFromComponent
Description copied from class:AbstractColumnConstraintEditorGet the constraints' new value from the editor component. This expects the UI to have been constructed.- Specified by:
getValueFromComponentin classDataLoadingConstraintEditor<String>- Returns:
- the value
- See Also:
-
handleColumnDataValue
Description copied from class:DataLoadingConstraintEditorA value has been read from the table (column); handle it in an editor-specific way.- Specified by:
handleColumnDataValuein classDataLoadingConstraintEditor<String>- Parameters:
value- the value read from the table (column)
-
columnDataLoadComplete
public void columnDataLoadComplete()Description copied from class:DataLoadingConstraintEditorNotification that the column data-load has been completed.- Overrides:
columnDataLoadCompletein classDataLoadingConstraintEditor<String>
-
columnDataLoadCancelled
public void columnDataLoadCancelled()Description copied from class:DataLoadingConstraintEditorNotification that the column data-load was cancelled.- Overrides:
columnDataLoadCancelledin classDataLoadingConstraintEditor<String>
-
clearColumnData
public void clearColumnData()Description copied from class:DataLoadingConstraintEditorRequest that any state maintained by the delegate editor pertaining to column data be cleared.- Overrides:
clearColumnDatain classDataLoadingConstraintEditor<String>
-
doUpdateEditorComponent
protected void doUpdateEditorComponent()Description copied from class:DataLoadingConstraintEditorIndicates the constraint has changed, and the user interface needs to be updated to reflect the new state.- Specified by:
doUpdateEditorComponentin classDataLoadingConstraintEditor<String>
-