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 void
addMemberTableAction(java.lang.String actionMapKey, javax.swing.Action action)
Adds a keyboard action to the member table.default IRelation<?>
getChangedRelation()
Get the changed relationIRelationEditor
getEditor()
Get the current relation editorMemberTable
getMemberTable()
Get the member table that is used by the dialog.MemberTableModel
getMemberTableModel()
Get the model the member table is using.SelectionTable
getSelectionTable()
Get the table that displays the current user selectionSelectionTableModel
getSelectionTableModel()
Get the model that the selection table is based on.TagEditorModel
getTagModel()
Gets the model for the tag table.AutoCompletingTextField
getTextFieldRole()
Get the text field that is used to edit the role.default boolean
stopMemberCellEditing()
Tells the member table editor to stop editing and accept any partially edited value as the value of the editor.default boolean
wouldRelationBeUseful()
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:
true
if editing was stopped;false
otherwise- Since:
- 18118
-
-