Class MacroListPanel
java.lang.Object
org.bidib.wizard.mvc.main.view.panel.MacroListPanel
- All Implemented Interfaces:
org.bidib.wizard.api.model.listener.MacroListListener,org.bidib.wizard.api.model.listener.NodeSelectionListener,LabelListMenuListener,TabPanelProvider,MacroSelectionListener,MacroListMenuListener,LabelChangedListener<org.bidib.wizard.api.model.Macro>,MacroActionListener,TabSelectionListener,TabVisibilityProvider,PendingChangesAware,ChangeLabelSupport
public class MacroListPanel
extends Object
implements MacroListMenuListener, org.bidib.wizard.api.model.listener.MacroListListener, MacroActionListener, MacroSelectionListener, ChangeLabelSupport, TabVisibilityProvider, TabPanelProvider, PendingChangesAware, TabSelectionListener, org.bidib.wizard.api.model.listener.NodeSelectionListener
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionMacroListPanel(MacroPanelController macroPanelController, MainModel model, TabVisibilityListener tabVisibilityListener, org.bidib.wizard.common.service.SettingsService settingsService, org.bidib.wizard.common.labels.WizardLabelWrapper wizardLabelWrapper, org.bidib.wizard.common.labels.DefaultWizardLabelFactory bidibLabelFactory, StatusBar statusBar) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddLabelChangedListener(LabelChangedListener<org.bidib.wizard.api.model.Macro> l) voidvoidchangeLabel(org.bidib.wizard.common.script.node.types.TargetType portType) voideditLabel(MouseEvent popupEvent) booleanvoidvoidexportMacro(org.bidib.wizard.api.model.Macro macro) Export the macro to an external file.protected voidfireLabelChanged(org.bidib.wizard.api.model.Macro macro, String label) protected voidhandleMouseEvent(MouseEvent e, JPopupMenu popupMenu) inthashCode()booleanvoidImport the macro from an external file.voidvoidinitializeMacro(org.bidib.wizard.api.model.Macro macro) Clear the entries of the macro and set default values for cycles.booleanvoidlabelChanged(org.bidib.wizard.api.model.Macro macro, String label) The label of the object has changed.voidvoidThe selected macro has changed.voidvoidvoidvoidvoidreloadMacro(org.bidib.wizard.api.model.Macro macro) Reload macro from node.voidvoidreplaceMacro(org.bidib.wizard.api.model.Macro macro, boolean saveOnNode) voidvoidsaveMacro(org.bidib.wizard.api.model.Macro macro) Write the macro to the node into persistent memory.voidSave the pending changes.voidselectedNodeChanged(org.bidib.wizard.api.model.NodeInterface selectedNode) voidsetEnabled(boolean enabled) voidsetMacroPanelListener(MacroPanelListener macroPanelListener) voidvoidstartMacro(org.bidib.wizard.api.model.Macro macro, boolean transferBeforeStart) Start the macro.voidvoidstopMacro(org.bidib.wizard.api.model.Macro macro) Stop the macro.voidtabSelected(boolean selected) voidtestMacro(boolean transferBeforeStart) voidvoidtransferMacro(org.bidib.wizard.api.model.Macro macro) Write the macro to the node into transient memory.
-
Constructor Details
-
MacroListPanel
public MacroListPanel(MacroPanelController macroPanelController, MainModel model, TabVisibilityListener tabVisibilityListener, org.bidib.wizard.common.service.SettingsService settingsService, org.bidib.wizard.common.labels.WizardLabelWrapper wizardLabelWrapper, org.bidib.wizard.common.labels.DefaultWizardLabelFactory bidibLabelFactory, StatusBar statusBar)
-
-
Method Details
-
setMacroPanelListener
- Parameters:
macroPanelListener- the macroPanelListener
-
getComponent
- Specified by:
getComponentin interfaceTabPanelProvider- Specified by:
getComponentin interfaceTabVisibilityProvider- Returns:
- the visible component of the tab
-
setEnabled
public void setEnabled(boolean enabled) -
remoteStartMacro
public void remoteStartMacro()- Specified by:
remoteStartMacroin interfaceMacroListMenuListener
-
transferMacro
public void transferMacro()- Specified by:
transferMacroin interfaceMacroListMenuListener
-
exportMacro
public void exportMacro()- Specified by:
exportMacroin interfaceMacroListMenuListener
-
startMacro
public void startMacro()- Specified by:
startMacroin interfaceMacroListMenuListener
-
stopMacro
public void stopMacro()- Specified by:
stopMacroin interfaceMacroListMenuListener
-
initializeMacro
public void initializeMacro()- Specified by:
initializeMacroin interfaceMacroListMenuListener
-
saveMacro
public void saveMacro()- Specified by:
saveMacroin interfaceMacroListMenuListener
-
reloadMacro
public void reloadMacro()- Specified by:
reloadMacroin interfaceMacroListMenuListener
-
testMacro
public void testMacro(boolean transferBeforeStart) - Specified by:
testMacroin interfaceMacroListMenuListener
-
listChanged
public void listChanged()- Specified by:
listChangedin interfaceorg.bidib.wizard.api.model.listener.MacroListListener
-
macroChanged
public void macroChanged()Description copied from interface:MacroSelectionListenerThe selected macro has changed.- Specified by:
macroChangedin interfaceorg.bidib.wizard.api.model.listener.MacroListListener- Specified by:
macroChangedin interfaceMacroSelectionListener
-
pendingChangesChanged
public void pendingChangesChanged()- Specified by:
pendingChangesChangedin interfaceorg.bidib.wizard.api.model.listener.MacroListListener
-
changeLabel
public void changeLabel(org.bidib.wizard.common.script.node.types.TargetType portType) - Specified by:
changeLabelin interfaceChangeLabelSupport
-
isTabVisible
public boolean isTabVisible()- Specified by:
isTabVisiblein interfaceTabVisibilityProvider- Returns:
- the tab visible state.
-
equals
-
hashCode
public int hashCode() -
exportMacro
public void exportMacro(org.bidib.wizard.api.model.Macro macro) Description copied from interface:MacroActionListenerExport the macro to an external file.- Specified by:
exportMacroin interfaceMacroActionListener- Parameters:
macro- the macro
-
importMacro
public void importMacro()Description copied from interface:MacroActionListenerImport the macro from an external file.- Specified by:
importMacroin interfaceMacroActionListener- Specified by:
importMacroin interfaceMacroListMenuListener
-
replaceMacro
public void replaceMacro(org.bidib.wizard.api.model.Macro macro, boolean saveOnNode) -
labelChanged
Description copied from interface:LabelChangedListenerThe label of the object has changed.- Specified by:
labelChangedin interfaceLabelChangedListener<org.bidib.wizard.api.model.Macro>- Parameters:
macro- the instancelabel- the new label
-
reloadMacro
public void reloadMacro(org.bidib.wizard.api.model.Macro macro) Description copied from interface:MacroActionListenerReload macro from node.- Specified by:
reloadMacroin interfaceMacroActionListener- Parameters:
macro- the macro
-
saveMacro
public void saveMacro(org.bidib.wizard.api.model.Macro macro) Description copied from interface:MacroActionListenerWrite the macro to the node into persistent memory.- Specified by:
saveMacroin interfaceMacroActionListener- Parameters:
macro- the macro
-
startMacro
public void startMacro(org.bidib.wizard.api.model.Macro macro, boolean transferBeforeStart) Description copied from interface:MacroActionListenerStart the macro.- Specified by:
startMacroin interfaceMacroActionListener- Parameters:
macro- the macrotransferBeforeStart- transfer macro to node before start
-
stopMacro
public void stopMacro(org.bidib.wizard.api.model.Macro macro) Description copied from interface:MacroActionListenerStop the macro.- Specified by:
stopMacroin interfaceMacroActionListener- Parameters:
macro- the macro
-
transferMacro
public void transferMacro(org.bidib.wizard.api.model.Macro macro) Description copied from interface:MacroActionListenerWrite the macro to the node into transient memory.- Specified by:
transferMacroin interfaceMacroActionListener- Parameters:
macro- the macro
-
initializeMacro
public void initializeMacro(org.bidib.wizard.api.model.Macro macro) Description copied from interface:MacroActionListenerClear the entries of the macro and set default values for cycles.- Specified by:
initializeMacroin interfaceMacroActionListener- Parameters:
macro- the macro
-
hasPendingChanges
public boolean hasPendingChanges()- Specified by:
hasPendingChangesin interfacePendingChangesAware- Returns:
truepending changes detected,falseno pending changes detected
-
savePendingChanges
public void savePendingChanges()Description copied from interface:PendingChangesAwareSave the pending changes.- Specified by:
savePendingChangesin interfacePendingChangesAware
-
addLabelChangedListener
-
addListSelectionListener
-
fireLabelChanged
-
tabSelected
public void tabSelected(boolean selected) - Specified by:
tabSelectedin interfaceTabSelectionListener- Parameters:
selected- the tab is selected
-
editLabel
- Specified by:
editLabelin interfaceLabelListMenuListener
-
handleMouseEvent
-
refreshView
public void refreshView() -
notifyMacrosChanged
public void notifyMacrosChanged() -
selectedNodeChanged
public void selectedNodeChanged(org.bidib.wizard.api.model.NodeInterface selectedNode) - Specified by:
selectedNodeChangedin interfaceorg.bidib.wizard.api.model.listener.NodeSelectionListener
-