Class MacroListPanel
- java.lang.Object
-
- org.bidib.wizard.mvc.main.view.panel.MacroListPanel
-
- All Implemented Interfaces:
org.bidib.wizard.api.model.listener.MacroListListener,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
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classMacroListPanel.MacroList
-
Constructor Summary
Constructors Constructor Description 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 Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddLabelChangedListener(LabelChangedListener<org.bidib.wizard.api.model.Macro> l)voidaddListSelectionListener(ListSelectionListener l)voidchangeLabel(org.bidib.wizard.common.script.node.types.TargetType portType)voideditLabel(MouseEvent popupEvent)booleanequals(Object other)voidexportMacro()voidexportMacro(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)JPanelgetComponent()protected voidhandleMouseEvent(MouseEvent e, JPopupMenu popupMenu)inthashCode()booleanhasPendingChanges()voidimportMacro()Import the macro from an external file.voidinitializeMacro()voidinitializeMacro(org.bidib.wizard.api.model.Macro macro)Clear the entries of the macro and set default values for cycles.booleanisTabVisible()voidlabelChanged(org.bidib.wizard.api.model.Macro macro, String label)The label of the object has changed.voidlistChanged()voidmacroChanged()The selected macro has changed.voidnotifyMacrosChanged()voidpendingChangesChanged()voidrefreshView()voidreloadMacro()voidreloadMacro(org.bidib.wizard.api.model.Macro macro)Reload macro from node.voidremoteStartMacro()voidreplaceMacro(org.bidib.wizard.api.model.Macro macro, boolean saveOnNode)voidsaveMacro()voidsaveMacro(org.bidib.wizard.api.model.Macro macro)Write the macro to the node into persistent memory.voidsavePendingChanges()Save the pending changes.voidsetEnabled(boolean enabled)voidsetMacroPanelListener(MacroPanelListener macroPanelListener)voidstartMacro()voidstartMacro(org.bidib.wizard.api.model.Macro macro, boolean transferBeforeStart)Start the macro.voidstopMacro()voidstopMacro(org.bidib.wizard.api.model.Macro macro)Stop the macro.voidtabSelected(boolean selected)voidtestMacro(boolean transferBeforeStart)voidtransferMacro()voidtransferMacro(org.bidib.wizard.api.model.Macro macro)Write the macro to the node into transient memory.
-
-
-
Constructor Detail
-
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 Detail
-
setMacroPanelListener
public void setMacroPanelListener(MacroPanelListener macroPanelListener)
- Parameters:
macroPanelListener- the macroPanelListener
-
getComponent
public JPanel 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.
-
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
public void labelChanged(org.bidib.wizard.api.model.Macro macro, String label)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
public void addLabelChangedListener(LabelChangedListener<org.bidib.wizard.api.model.Macro> l)
-
addListSelectionListener
public void addListSelectionListener(ListSelectionListener l)
-
fireLabelChanged
protected void fireLabelChanged(org.bidib.wizard.api.model.Macro macro, String label)
-
tabSelected
public void tabSelected(boolean selected)
- Specified by:
tabSelectedin interfaceTabSelectionListener- Parameters:
selected- the tab is selected
-
editLabel
public void editLabel(MouseEvent popupEvent)
- Specified by:
editLabelin interfaceLabelListMenuListener
-
handleMouseEvent
protected void handleMouseEvent(MouseEvent e, JPopupMenu popupMenu)
-
refreshView
public void refreshView()
-
notifyMacrosChanged
public void notifyMacrosChanged()
-
-