Package detectiongrouplocaliser.dialogs
Class DetectionGroupTableProvider
java.lang.Object
detectiongrouplocaliser.dialogs.DetectionGroupTableProvider
- All Implemented Interfaces:
UserDisplayProvider
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
getComponent
(UserDisplayControl userDisplayControl, String uniqueDisplayName) int
getName()
void
removeDisplay
(UserDisplayComponent component) Called when a display is removed from a user display.
-
Constructor Details
-
DetectionGroupTableProvider
-
-
Method Details
-
getName
- Specified by:
getName
in interfaceUserDisplayProvider
- Returns:
- the name of the display to be shown in the user display menu
-
getComponent
public UserDisplayComponent getComponent(UserDisplayControl userDisplayControl, String uniqueDisplayName) - Specified by:
getComponent
in interfaceUserDisplayProvider
- Parameters:
userDisplayControl
- the user display that this component is being created within.uniqueDisplayName
- unique name for the display. This may need to be passed early to a display so that it can find settings based on this name.- Returns:
- The swing component to add into a frame within the user display.
-
getComponentClass
- Specified by:
getComponentClass
in interfaceUserDisplayProvider
- Returns:
- the class of the swing component.
-
getMaxDisplays
public int getMaxDisplays()- Specified by:
getMaxDisplays
in interfaceUserDisplayProvider
- Returns:
- the max mumber of displays that can be created. 0 indicates no limit.
-
canCreate
public boolean canCreate()- Specified by:
canCreate
in interfaceUserDisplayProvider
- Returns:
- true if another display can be created (i.e. number of displays is invalid input: '<' the max number or there is no max number.
-
removeDisplay
Description copied from interface:UserDisplayProvider
Called when a display is removed from a user display.- Specified by:
removeDisplay
in interfaceUserDisplayProvider
- Parameters:
component
- removed component.
-