public class PropertySetterBlockPrototype extends AbstractBlockPrototype implements PropertySetterBlockProperties
PropertySetterBlockProperties.PropertyScope
blockTitle, COMMON_OUTPUT_DESCRIPTOR, factoryId
EXPRESSION, FACTORY_ID, PROPERTY_ID, SCOPE
Constructor and Description |
---|
PropertySetterBlockPrototype() |
Modifier and Type | Method and Description |
---|---|
javax.swing.JComponent |
createEditingUI(DesignerContext context,
PropertySet block)
Create a new editing UI for the given block.
|
javax.swing.Icon |
getIcon() |
javax.swing.Icon |
getRolloverIcon() |
java.util.Collection<Property<?>> |
getSearchableProperties(PropertySet block)
Which properties (if any) are eligible for the search and replace system.
|
javax.swing.Icon |
getSmallIcon() |
void |
initPreviewPanel(ObservablePropertySet block,
javax.swing.JPanel panel)
Used to initialize a small preview of the block's properties, which is displayed beneath the block.
|
boolean |
isPreviewPanelSupported()
Return true here if you want to add extra information to the block display on a preview panel beneath the
input/output pins.
|
createNewBlock, getBlockMutatingProperties, getFactoryId, getOutputs, getTitle, isSystemOnly
public javax.swing.Icon getIcon()
getIcon
in interface PipelineBlockPrototype
getIcon
in class AbstractBlockPrototype
public javax.swing.Icon getRolloverIcon()
getRolloverIcon
in interface PipelineBlockPrototype
getRolloverIcon
in class AbstractBlockPrototype
public javax.swing.Icon getSmallIcon()
getSmallIcon
in interface PipelineBlockPrototype
getSmallIcon
in class AbstractBlockPrototype
public javax.swing.JComponent createEditingUI(DesignerContext context, PropertySet block)
PipelineBlockPrototype
PipelineBlockEditor
to get callbacks on uninstallcreateEditingUI
in interface PipelineBlockPrototype
public java.util.Collection<Property<?>> getSearchableProperties(PropertySet block)
PipelineBlockPrototype
getSearchableProperties
in interface PipelineBlockPrototype
getSearchableProperties
in class AbstractBlockPrototype
block
- The block in questionpublic boolean isPreviewPanelSupported()
PipelineBlockPrototype
isPreviewPanelSupported
in interface PipelineBlockPrototype
isPreviewPanelSupported
in class AbstractBlockPrototype
public void initPreviewPanel(ObservablePropertySet block, javax.swing.JPanel panel)
PipelineBlockPrototype
initPreviewPanel
in interface PipelineBlockPrototype
initPreviewPanel
in class AbstractBlockPrototype