Class DummyConstraintEditor<T>
- java.lang.Object
- 
- docking.widgets.table.constrainteditor.DummyConstraintEditor<T>
 
- 
- Type Parameters:
- T-
 - All Implemented Interfaces:
- ColumnConstraintEditor<T>
 
 public final class DummyConstraintEditor<T> extends java.lang.Object implements ColumnConstraintEditor<T> An editor that is always invalid.Used internally to indicate a constraint does not provide an editor of its own. 
- 
- 
Constructor SummaryConstructors Constructor Description DummyConstraintEditor(java.lang.String message)Constructor.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddChangeListener(javax.swing.event.ChangeListener constraintEditorChangeListener)Register a callback handler for responding to changes made within the editorjava.awt.ComponentgetDetailComponent()The detail component resides in the configuration interface below the column and constraint selection widgets, and is afforded greater space.java.lang.StringgetErrorMessage()If the editor contains and invalid value, this message should indicate why the value is invalid.java.awt.ComponentgetInlineComponent()The inline component resides in the configuration interface on the same visual line as the column and constraint selection widgets.ColumnConstraint<T>getValue()Get the current value from the editor, in the form of a constraint.booleanhasValidValue()Determine if the editor contains a valid value; do the UI widgets and state match, is the state sensible for the constraint.voidremoveChangeListener(javax.swing.event.ChangeListener constraintEditorChangeListener)Remove a callback handler that was responding changes made within the editorvoidreset()Reset the editor to a known-good state.voidsetValue(ColumnConstraint<T> value)Set the current value within the editor
 
- 
- 
- 
Method Detail- 
getInlineComponentpublic java.awt.Component getInlineComponent() Description copied from interface:ColumnConstraintEditorThe inline component resides in the configuration interface on the same visual line as the column and constraint selection widgets. It is intended to be a relatively small and simple interface for configuring the constraints' values.- Specified by:
- getInlineComponentin interface- ColumnConstraintEditor<T>
- Returns:
- the inline editor component
 
 - 
getDetailComponentpublic java.awt.Component getDetailComponent() Description copied from interface:ColumnConstraintEditorThe detail component resides in the configuration interface below the column and constraint selection widgets, and is afforded greater space. It is intended to be a more feature-rich editor that provides greater insight or control of the constraints value definition.- Specified by:
- getDetailComponentin interface- ColumnConstraintEditor<T>
- Returns:
- the detail editor component
 
 - 
getValuepublic ColumnConstraint<T> getValue() Description copied from interface:ColumnConstraintEditorGet the current value from the editor, in the form of a constraint.- Specified by:
- getValuein interface- ColumnConstraintEditor<T>
- Returns:
- the editors' current value
 
 - 
setValuepublic void setValue(ColumnConstraint<T> value) Description copied from interface:ColumnConstraintEditorSet the current value within the editor- Specified by:
- setValuein interface- ColumnConstraintEditor<T>
- Parameters:
- value- the new value to set
 
 - 
resetpublic void reset() Description copied from interface:ColumnConstraintEditorReset the editor to a known-good state.- Specified by:
- resetin interface- ColumnConstraintEditor<T>
 
 - 
hasValidValuepublic boolean hasValidValue() Description copied from interface:ColumnConstraintEditorDetermine if the editor contains a valid value; do the UI widgets and state match, is the state sensible for the constraint.- Specified by:
- hasValidValuein interface- ColumnConstraintEditor<T>
- Returns:
- true if the configuration is valid, false otherwise
 
 - 
getErrorMessagepublic java.lang.String getErrorMessage() Description copied from interface:ColumnConstraintEditorIf the editor contains and invalid value, this message should indicate why the value is invalid. Only called ifhasValidValue()returns false.- Specified by:
- getErrorMessagein interface- ColumnConstraintEditor<T>
- Returns:
- an error message, or an empty string if no error
 
 - 
addChangeListenerpublic void addChangeListener(javax.swing.event.ChangeListener constraintEditorChangeListener) Description copied from interface:ColumnConstraintEditorRegister a callback handler for responding to changes made within the editor- Specified by:
- addChangeListenerin interface- ColumnConstraintEditor<T>
- Parameters:
- constraintEditorChangeListener- listener callback
 
 - 
removeChangeListenerpublic void removeChangeListener(javax.swing.event.ChangeListener constraintEditorChangeListener) Description copied from interface:ColumnConstraintEditorRemove a callback handler that was responding changes made within the editor- Specified by:
- removeChangeListenerin interface- ColumnConstraintEditor<T>
- Parameters:
- constraintEditorChangeListener- listener callback
 
 
- 
 
-