Class SortOrderSelector.Model
java.lang.Object
uk.ac.starlink.topcat.SortOrderSelector.Model
- Enclosing class:
SortOrderSelector
Model for SortOrderSelector.
- Since:
- 17 Feb 2025
- Author:
- Mark Taylor
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final SortOrderSelector.ModelModel that can be used when no selections are possible. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds a listener that will be informed if the selection has changed.Returns the sort order currently selected.booleanIndicates whether this model is in the middle of an update.voidRemoves a previously added listener.voidsetSelectedSortOrder(SortOrder sortOrder) Sets the selected sort order.voidsetUpdating(boolean isUpdating) Sets whether this model is in the middle of an update.
-
Field Details
-
DUMMY_MODEL
Model that can be used when no selections are possible.
-
-
Constructor Details
-
Model
Constructor.- Parameters:
tcModel- topcat model that this selector can sort, may be null for a dummy instance
-
-
Method Details
-
getSelectedSortOrder
Returns the sort order currently selected.- Returns:
- selection, not null
-
setSelectedSortOrder
Sets the selected sort order.- Parameters:
sortOrder- new selection, not null
-
setUpdating
public void setUpdating(boolean isUpdating) Sets whether this model is in the middle of an update.- Parameters:
isUpdating- true iff an update is in progress
-
isUpdating
public boolean isUpdating()Indicates whether this model is in the middle of an update.- Returns:
- true iff an update is in progress
-
addPropertyChangeListener
Adds a listener that will be informed if the selection has changed.- Parameters:
l- listener
-
removePropertyChangeListener
Removes a previously added listener.- Parameters:
l- listener
-