Class AutocompletingStringConstraintEditor
- java.lang.Object
- 
- docking.widgets.table.constrainteditor.AbstractColumnConstraintEditor<T>
- 
- docking.widgets.table.constrainteditor.DataLoadingConstraintEditor<java.lang.String>
- 
- docking.widgets.table.constrainteditor.AutocompletingStringConstraintEditor
 
 
 
- 
- All Implemented Interfaces:
- ColumnConstraintEditor<java.lang.String>,- TaskListener
 
 public class AutocompletingStringConstraintEditor extends DataLoadingConstraintEditor<java.lang.String> An editor that provides suggestions of values that, according to StringMatchStrategy, match a user-supplied pattern.
- 
- 
Field SummaryFields Modifier and Type Field Description protected DropDownTextField<java.lang.String>textField- 
Fields inherited from class docking.widgets.table.constrainteditor.DataLoadingConstraintEditorcolumnDataSource, statusLabel
 - 
Fields inherited from class docking.widgets.table.constrainteditor.AbstractColumnConstraintEditorcurrentConstraint, INVALID_INPUT_COLOR, VALID_INPUT_COLOR
 
- 
 - 
Constructor SummaryConstructors Constructor Description AutocompletingStringConstraintEditor(StringColumnConstraint constraint, ColumnData<java.lang.String> columnDataSource)Constructor.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.awt.ComponentbuildDelegateInlineEditor()Get the delegates' inline editor componentprotected booleancheckEditorValueValidity()Template method that subclasses must implement.voidclearColumnData()Request that any state maintained by the delegate editor pertaining to column data be cleared.voidcolumnDataLoadCancelled()Notification that the column data-load was cancelled.voidcolumnDataLoadComplete()Notification that the column data-load has been completed.protected voiddoUpdateEditorComponent()Indicates the constraint has changed, and the user interface needs to be updated to reflect the new state.protected ColumnConstraint<java.lang.String>getValueFromComponent()Get the constraints' new value from the editor component.voidhandleColumnDataValue(java.lang.String value)A value has been read from the table (column); handle it in an editor-specific way.protected voidresetEditor()Reset the delegate editor to a known stateprotected voidupdateInfoMessage(boolean isValid)- 
Methods inherited from class docking.widgets.table.constrainteditor.DataLoadingConstraintEditorbuildDelegateDetailEditor, buildDetailEditorComponent, buildInlineEditorComponent, getErrorMessage, reset, taskCancelled, taskCompleted, updateEditorComponent
 - 
Methods inherited from class docking.widgets.table.constrainteditor.AbstractColumnConstraintEditoraddChangeListener, formatStatus, getDetailComponent, getInlineComponent, getValue, hasEditorComponents, hasValidValue, notifyConstraintChanged, removeChangeListener, setValue, valueChanged
 
- 
 
- 
- 
- 
Field Detail- 
textFieldprotected DropDownTextField<java.lang.String> textField 
 
- 
 - 
Constructor Detail- 
AutocompletingStringConstraintEditorpublic AutocompletingStringConstraintEditor(StringColumnConstraint constraint, ColumnData<java.lang.String> columnDataSource) Constructor.- Parameters:
- constraint- String constraint for which this component is an editor
- columnDataSource- provides access to table data and. Must be non-null.
 
 
- 
 - 
Method Detail- 
buildDelegateInlineEditorprotected java.awt.Component buildDelegateInlineEditor() Description copied from class:DataLoadingConstraintEditorGet the delegates' inline editor component- Overrides:
- buildDelegateInlineEditorin class- DataLoadingConstraintEditor<java.lang.String>
- Returns:
- the inline editor for the delegate constraint
 
 - 
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<java.lang.String>
- Returns:
- true if the UI defines a valid value, false otherwise
- See Also:
- ColumnConstraintEditor.hasValidValue()
 
 - 
updateInfoMessageprotected void updateInfoMessage(boolean isValid) - Specified by:
- updateInfoMessagein class- AbstractColumnConstraintEditor<java.lang.String>
 
 - 
resetEditorprotected void resetEditor() Description copied from class:DataLoadingConstraintEditorReset the delegate editor to a known state- Specified by:
- resetEditorin class- DataLoadingConstraintEditor<java.lang.String>
- See Also:
- DataLoadingConstraintEditor.reset()
 
 - 
getValueFromComponentprotected ColumnConstraint<java.lang.String> 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 class- DataLoadingConstraintEditor<java.lang.String>
- Returns:
- See Also:
- AbstractColumnConstraintEditor.getValue()
 
 - 
handleColumnDataValuepublic void handleColumnDataValue(java.lang.String value) Description copied from class:DataLoadingConstraintEditorA value has been read from the table (column); handle it in an editor-specific way.- Specified by:
- handleColumnDataValuein class- DataLoadingConstraintEditor<java.lang.String>
- Parameters:
- value- the value read from the table (column)
 
 - 
columnDataLoadCompletepublic void columnDataLoadComplete() Description copied from class:DataLoadingConstraintEditorNotification that the column data-load has been completed.- Overrides:
- columnDataLoadCompletein class- DataLoadingConstraintEditor<java.lang.String>
 
 - 
columnDataLoadCancelledpublic void columnDataLoadCancelled() Description copied from class:DataLoadingConstraintEditorNotification that the column data-load was cancelled.- Overrides:
- columnDataLoadCancelledin class- DataLoadingConstraintEditor<java.lang.String>
 
 - 
clearColumnDatapublic void clearColumnData() Description copied from class:DataLoadingConstraintEditorRequest that any state maintained by the delegate editor pertaining to column data be cleared.- Overrides:
- clearColumnDatain class- DataLoadingConstraintEditor<java.lang.String>
 
 - 
doUpdateEditorComponentprotected 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 class- DataLoadingConstraintEditor<java.lang.String>
 
 
- 
 
-