Class VirtualLcdPositionableFactory
java.lang.Object
jmri.jmrix.dccpp.swing.virtuallcd.VirtualLcdPositionableFactory
- All Implemented Interfaces:
PositionableFactory
A factory for a VirtualLCD that can be put on a panel.
-
Nested Class Summary
Nested classes/interfaces inherited from interface jmri.jmrit.display.PositionableFactory
PositionableFactory.DoAfter -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddPositionable(Editor editor, PositionableFactory.DoAfter doAfter) Add a positionable to the panel.Get the description for this factory.Get an unique identifier for this factory.static booleanhasDccEx()Do we have a LocoNet connection?booleanDetermines whenever this factory enabled.
-
Constructor Details
-
VirtualLcdPositionableFactory
public VirtualLcdPositionableFactory()
-
-
Method Details
-
getIdentifier
Description copied from interface:PositionableFactoryGet an unique identifier for this factory. It's recommended that identifiers for connection specific factories begins with the connection type. Example: DCC-EX-VirtualDisplay.- Specified by:
getIdentifierin interfacePositionableFactory- Returns:
- an unique identifier for this factory
-
getDescription
Description copied from interface:PositionableFactoryGet the description for this factory.- Specified by:
getDescriptionin interfacePositionableFactory- Returns:
- the description
-
isEnabled
Description copied from interface:PositionableFactoryDetermines whenever this factory enabled. This method can for example check if a particular connection type is available. This is useful for positionables like DCC-VirtualLCD which are useful only for particular connections.- Specified by:
isEnabledin interfacePositionableFactory- Returns:
- true if enabled, false otherwise
-
hasDccEx
Do we have a LocoNet connection?- Returns:
- true if we have LocoNet, false otherwise
-
addPositionable
Description copied from interface:PositionableFactoryAdd a positionable to the panel. The method might show a dialog to let the user configure the positionable.- Specified by:
addPositionablein interfacePositionableFactory- Parameters:
editor- the editor to which the new positionable should be addeddoAfter- an optional task to run after the positionable is added to the editor, or null if no task is needed
-