Interface IRelationEditorActionAccess
-
- All Known Implementing Classes:
GenericRelationEditor.RelationEditorActionAccess
public interface IRelationEditorActionAccess
This interface provides access to the relation editor for actions.- Since:
- 14027
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default voidaddMemberTableAction(java.lang.String actionMapKey, javax.swing.Action action)Adds a keyboard action to the member table.default IRelation<?>getChangedRelation()Get the changed relationIRelationEditorgetEditor()Get the current relation editorMemberTablegetMemberTable()Get the member table that is used by the dialog.MemberTableModelgetMemberTableModel()Get the model the member table is using.SelectionTablegetSelectionTable()Get the table that displays the current user selectionSelectionTableModelgetSelectionTableModel()Get the model that the selection table is based on.TagEditorModelgetTagModel()Gets the model for the tag table.AutoCompletingTextFieldgetTextFieldRole()Get the text field that is used to edit the role.default booleanstopMemberCellEditing()Tells the member table editor to stop editing and accept any partially edited value as the value of the editor.default booleanwouldRelationBeUseful()Check if the changed relation would be useful.
-
-
-
Method Detail
-
addMemberTableAction
default void addMemberTableAction(java.lang.String actionMapKey, javax.swing.Action action)
Adds a keyboard action to the member table.- Parameters:
actionMapKey- The key to useaction- The action to map for that key.
-
getMemberTable
MemberTable getMemberTable()
Get the member table that is used by the dialog.- Returns:
- The member table
-
getMemberTableModel
MemberTableModel getMemberTableModel()
Get the model the member table is using.- Returns:
- That model
-
getSelectionTable
SelectionTable getSelectionTable()
Get the table that displays the current user selection- Returns:
- That table
-
getSelectionTableModel
SelectionTableModel getSelectionTableModel()
Get the model that the selection table is based on.- Returns:
- The model
-
getEditor
IRelationEditor getEditor()
Get the current relation editor- Returns:
- The relation editor object.
-
getTagModel
TagEditorModel getTagModel()
Gets the model for the tag table.- Returns:
- The tag editor model.
-
getChangedRelation
default IRelation<?> getChangedRelation()
Get the changed relation- Returns:
- The changed relation (note: will not be part of a dataset) or the
value returned by
getEditor().getRelation(). This should never benull. If called for a temporary use of the relation instance, make sure to cleanup a copy to avoid memory leaks, see #23527 - Since:
- 18413
-
wouldRelationBeUseful
default boolean wouldRelationBeUseful()
Check if the changed relation would be useful.- Returns:
- true if the saved relation has at least one tag and one member
- Since:
- 19014
-
getTextFieldRole
AutoCompletingTextField getTextFieldRole()
Get the text field that is used to edit the role.- Returns:
- The role text field.
-
stopMemberCellEditing
default boolean stopMemberCellEditing()
Tells the member table editor to stop editing and accept any partially edited value as the value of the editor. The editor returns false if editing was not stopped; this is useful for editors that validate and can not accept invalid entries.- Returns:
trueif editing was stopped;falseotherwise- Since:
- 18118
-
-