Package difar.display
Class DifarDisplayProvider2
java.lang.Object
difar.display.DifarDisplayProvider2
- All Implemented Interfaces:
 UserDisplayProvider
- 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionbooleangetComponent(UserDisplayControl userDisplayControl, String uniqueDisplayName) intgetName()voidremoveDisplay(UserDisplayComponent component) Called when a display is removed from a user display. 
- 
Constructor Details
- 
DifarDisplayProvider2
 
 - 
 - 
Method Details
- 
getName
- Specified by:
 getNamein 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:
 getComponentin 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:
 getComponentClassin interfaceUserDisplayProvider- Returns:
 - the class of the swing component.
 
 - 
getMaxDisplays
public int getMaxDisplays()- Specified by:
 getMaxDisplaysin interfaceUserDisplayProvider- Returns:
 - the max mumber of displays that can be created. 0 indicates no limit.
 
 - 
canCreate
public boolean canCreate()- Specified by:
 canCreatein 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:UserDisplayProviderCalled when a display is removed from a user display.- Specified by:
 removeDisplayin interfaceUserDisplayProvider- Parameters:
 component- removed component.
 
 -