Class AbstractBlockPrototype
java.lang.Object
com.inductiveautomation.ignition.alarming.designer.api.AbstractBlockPrototype
- All Implemented Interfaces:
PipelineBlockPrototype
- Direct Known Subclasses:
DelayBlockPrototype
,EventStreamBlockPrototype
,ExpressionBlockPrototype
,JumpBlockPrototype
,LegacyNotificationPrototype
,NotificationBlockPrototype
,PropertySetterBlockPrototype
,ScriptableBlockPrototype
,SplitterBlockPrototype
,SwitchBlockPrototype
Base class for most block prototype implementations.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected LocalizedString
static final OutputDescriptor
An output descriptor to use for most blocks with a single output.protected String
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
AbstractBlockPrototype
(String factoryId, String titleKey) -
Method Summary
Modifier and TypeMethodDescriptionCreates a new BasicPropertySet, setting theCommonBlockProperties.FACTORY_ID
on it.Collection<Property<?>>
Which properties (if any) are able to alter the structure of the block (number/names of outputs)Return the factory id of blocks created with this prototype.getIcon()
getOutputs
(ObservablePropertySet block) Collection<Property<?>>
Which properties (if any) are eligible for the search and replace system.getTitle()
void
initPreviewPanel
(ObservablePropertySet block, JPanel panel) Used to initialize a small preview of the block's properties, which is displayed beneath the block.boolean
Return true here if you want to add extra information to the block display on a preview panel beneath the input/output pins.boolean
Returns whether only the system can programmatically create these types of blocks.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.inductiveautomation.ignition.alarming.designer.api.PipelineBlockPrototype
createEditingUI
-
Field Details
-
COMMON_OUTPUT_DESCRIPTOR
An output descriptor to use for most blocks with a single output. UsesCommonBlockProperties.OUTPUT_ID
for the output property. -
blockTitle
-
factoryId
-
-
Constructor Details
-
AbstractBlockPrototype
- Parameters:
factoryId
- The ID of the factory in the gateway who is in charge of creating working instances of this block type.titleKey
- The title for this block
-
-
Method Details
-
createNewBlock
Creates a new BasicPropertySet, setting theCommonBlockProperties.FACTORY_ID
on it.- Specified by:
createNewBlock
in interfacePipelineBlockPrototype
-
getTitle
- Specified by:
getTitle
in interfacePipelineBlockPrototype
- Returns:
- the title for the block
-
getIcon
- Specified by:
getIcon
in interfacePipelineBlockPrototype
- Returns:
- A 32x32 icon for the palette
-
getRolloverIcon
- Specified by:
getRolloverIcon
in interfacePipelineBlockPrototype
- Returns:
- Rollover version of the palette icon.
-
getSmallIcon
- Specified by:
getSmallIcon
in interfacePipelineBlockPrototype
- Returns:
- Small 16x16 icon for the title of the block
-
getFactoryId
Description copied from interface:PipelineBlockPrototype
Return the factory id of blocks created with this prototype.- Specified by:
getFactoryId
in interfacePipelineBlockPrototype
-
getOutputs
- Specified by:
getOutputs
in interfacePipelineBlockPrototype
-
getBlockMutatingProperties
Description copied from interface:PipelineBlockPrototype
Which properties (if any) are able to alter the structure of the block (number/names of outputs)- Specified by:
getBlockMutatingProperties
in interfacePipelineBlockPrototype
-
getSearchableProperties
Description copied from interface:PipelineBlockPrototype
Which properties (if any) are eligible for the search and replace system.- Specified by:
getSearchableProperties
in interfacePipelineBlockPrototype
- Parameters:
block
- The block in question
-
isPreviewPanelSupported
public boolean isPreviewPanelSupported()Description copied from interface:PipelineBlockPrototype
Return true here if you want to add extra information to the block display on a preview panel beneath the input/output pins.- Specified by:
isPreviewPanelSupported
in interfacePipelineBlockPrototype
-
initPreviewPanel
Description copied from interface:PipelineBlockPrototype
Used to initialize a small preview of the block's properties, which is displayed beneath the block.- Specified by:
initPreviewPanel
in interfacePipelineBlockPrototype
-
isSystemOnly
public boolean isSystemOnly()Description copied from interface:PipelineBlockPrototype
Returns whether only the system can programmatically create these types of blocks. If false, the user will be able to create them from the palette.- Specified by:
isSystemOnly
in interfacePipelineBlockPrototype
-