Class AccessoryListPanel
java.lang.Object
org.bidib.wizard.mvc.main.view.panel.AccessoryListPanel
- All Implemented Interfaces:
org.bidib.wizard.api.model.listener.AccessoryListListener,LabelListMenuListener,TabPanelProvider,AccessoryListMenuListener,AccessoryActionListener,LabelChangedListener<org.bidib.wizard.api.model.Accessory>,TabSelectionListener,TabVisibilityProvider,PendingChangesAware,ChangeLabelSupport
public class AccessoryListPanel
extends Object
implements AccessoryListMenuListener, AccessoryActionListener, org.bidib.wizard.api.model.listener.AccessoryListListener, ChangeLabelSupport, TabSelectionListener, TabPanelProvider, TabVisibilityProvider, PendingChangesAware
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionAccessoryListPanel(AccessoryPanelController accessoryPanelController, MainModel model, AccessoryStartupAspectModel accessoryStartupAspectModel, org.bidib.wizard.api.model.AccessorySwitchTimeModel accessorySwitchTimeModel, TabVisibilityListener tabVisibilityListener, org.bidib.wizard.common.service.SettingsService settingsService, org.bidib.wizard.common.labels.WizardLabelWrapper wizardLabelWrapper, StatusBar statusBar, org.bidib.wizard.api.service.console.ConsoleService consoleService) -
Method Summary
Modifier and TypeMethodDescriptionvoidaccessoryChanged(Integer accessoryId) voidaddLabelChangedListener(LabelChangedListener<org.bidib.wizard.api.model.Accessory> l) voidvoidchangeLabel(org.bidib.wizard.common.script.node.types.TargetType portType) voidDelete the accessory.voideditLabel(MouseEvent popupEvent) booleanvoidExport the accessory.voidexportAccessory(org.bidib.wizard.api.model.Accessory accessory) Export the accessory.protected voidfireLabelChanged(org.bidib.wizard.api.model.Accessory accessory, String label) protected voidhandleMouseEvent(MouseEvent e, JPopupMenu popupMenu) voidhandleStringChanged(int index, String value) inthashCode()booleanvoidImport the accessory.voidimportAccessory(org.bidib.wizard.api.model.Accessory accessory) Import the accessory.booleanvoidlabelChanged(org.bidib.wizard.api.model.Accessory accessory, String label) The label of the object has changed.voidvoidvoidvoidReload the accessory from the node.voidreloadAccessory(org.bidib.wizard.api.model.Accessory accessory) Reload the accessory.voidsave the accessory.voidsaveAccessory(org.bidib.wizard.api.model.Accessory accessory) Save the accessory.voidSave the pending changes.voidsetEnabled(boolean enabled) voidtabSelected(boolean selected)
-
Constructor Details
-
AccessoryListPanel
public AccessoryListPanel(AccessoryPanelController accessoryPanelController, MainModel model, AccessoryStartupAspectModel accessoryStartupAspectModel, org.bidib.wizard.api.model.AccessorySwitchTimeModel accessorySwitchTimeModel, TabVisibilityListener tabVisibilityListener, org.bidib.wizard.common.service.SettingsService settingsService, org.bidib.wizard.common.labels.WizardLabelWrapper wizardLabelWrapper, StatusBar statusBar, org.bidib.wizard.api.service.console.ConsoleService consoleService)
-
-
Method Details
-
getComponent
- Specified by:
getComponentin interfaceTabPanelProvider- Specified by:
getComponentin interfaceTabVisibilityProvider- Returns:
- the visible component of the tab
-
exportAccessory
public void exportAccessory()Description copied from interface:AccessoryListMenuListenerExport the accessory.- Specified by:
exportAccessoryin interfaceAccessoryListMenuListener
-
saveAccessory
public void saveAccessory()Description copied from interface:AccessoryListMenuListenersave the accessory.- Specified by:
saveAccessoryin interfaceAccessoryListMenuListener
-
reloadAccessory
public void reloadAccessory()Description copied from interface:AccessoryListMenuListenerReload the accessory from the node.- Specified by:
reloadAccessoryin interfaceAccessoryListMenuListener
-
importAccessory
public void importAccessory()Description copied from interface:AccessoryListMenuListenerImport the accessory.- Specified by:
importAccessoryin interfaceAccessoryListMenuListener
-
deleteAccessory
public void deleteAccessory()Description copied from interface:AccessoryListMenuListenerDelete the accessory.- Specified by:
deleteAccessoryin interfaceAccessoryListMenuListener
-
setEnabled
public void setEnabled(boolean enabled) -
changeLabel
public void changeLabel(org.bidib.wizard.common.script.node.types.TargetType portType) - Specified by:
changeLabelin interfaceChangeLabelSupport
-
addLabelChangedListener
-
addListSelectionListener
-
fireLabelChanged
-
handleMouseEvent
-
tabSelected
public void tabSelected(boolean selected) - Specified by:
tabSelectedin interfaceTabSelectionListener- Parameters:
selected- the tab is selected
-
exportAccessory
public void exportAccessory(org.bidib.wizard.api.model.Accessory accessory) Description copied from interface:AccessoryActionListenerExport the accessory.- Specified by:
exportAccessoryin interfaceAccessoryActionListener- Parameters:
accessory- the accessory to export
-
importAccessory
public void importAccessory(org.bidib.wizard.api.model.Accessory accessory) Description copied from interface:AccessoryActionListenerImport the accessory.- Specified by:
importAccessoryin interfaceAccessoryActionListener- Parameters:
accessory- the accessory to import
-
labelChanged
Description copied from interface:LabelChangedListenerThe label of the object has changed.- Specified by:
labelChangedin interfaceLabelChangedListener<org.bidib.wizard.api.model.Accessory>- Parameters:
accessory- the instancelabel- the new label
-
reloadAccessory
public void reloadAccessory(org.bidib.wizard.api.model.Accessory accessory) Description copied from interface:AccessoryActionListenerReload the accessory.- Specified by:
reloadAccessoryin interfaceAccessoryActionListener- Parameters:
accessory- the accessory to reload
-
saveAccessory
public void saveAccessory(org.bidib.wizard.api.model.Accessory accessory) Description copied from interface:AccessoryActionListenerSave the accessory.- Specified by:
saveAccessoryin interfaceAccessoryActionListener- Parameters:
accessory- the accessory to save
-
equals
-
hashCode
public int hashCode() -
isTabVisible
public boolean isTabVisible()- Specified by:
isTabVisiblein interfaceTabVisibilityProvider- Returns:
- the tab visible state.
-
accessoryChanged
- Specified by:
accessoryChangedin interfaceorg.bidib.wizard.api.model.listener.AccessoryListListener
-
listChanged
public void listChanged()- Specified by:
listChangedin interfaceorg.bidib.wizard.api.model.listener.AccessoryListListener
-
pendingChangesChanged
public void pendingChangesChanged()- Specified by:
pendingChangesChangedin interfaceorg.bidib.wizard.api.model.listener.AccessoryListListener
-
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
-
editLabel
- Specified by:
editLabelin interfaceLabelListMenuListener
-
refreshView
public void refreshView() -
handleStringChanged
-