Package jmri.jmrix.dccpp.swing.messages
Class MessagesPositionableFactory
java.lang.Object
jmri.jmrix.dccpp.swing.messages.MessagesPositionableFactory
- All Implemented Interfaces:
PositionableFactory
A factory for a DCC-EX Messages display 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.booleanOnly offered when there's at least one DCC-EX connection.
-
Constructor Details
-
MessagesPositionableFactory
public MessagesPositionableFactory()
-
-
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
Only offered when there's at least one DCC-EX connection.- Specified by:
isEnabledin interfacePositionableFactory- Returns:
- true if enabled, 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
-