Class ToolBarButtonManagerImpl

java.lang.Object
hec.clientapp.model.ToolBarButtonManagerImpl
All Implemented Interfaces:
hec.appInterface.ToolBarButtonManager, PreferencesConstants

public class ToolBarButtonManagerImpl extends Object implements hec.appInterface.ToolBarButtonManager, PreferencesConstants
class for loading and saving customized ToolBarButtons
  • Constructor Details

    • ToolBarButtonManagerImpl

      public ToolBarButtonManagerImpl(hec.clientapp.client.ClientMode module)
  • Method Details

    • addToolBarButton

      public void addToolBarButton(hec.appInterface.IToolBarButtonItem item)
      Description copied from interface: hec.appInterface.ToolBarButtonManager
      Add the toolBarItem to the current ApplicationModules toolbar
      Specified by:
      addToolBarButton in interface hec.appInterface.ToolBarButtonManager
      Parameters:
      item - The feature to be added to the ToolBarButton attribute
    • resetDefaultToolbars

      public void resetDefaultToolbars()
      reset the toolbar buttons to the default toolbar buttons
      Specified by:
      resetDefaultToolbars in interface hec.appInterface.ToolBarButtonManager
    • removeToolBarButton

      public void removeToolBarButton(hec.appInterface.IToolBarButtonItem item)
      Description copied from interface: hec.appInterface.ToolBarButtonManager
      Remove the toolBarItem from the current ApplicationModules toolbar.
      Specified by:
      removeToolBarButton in interface hec.appInterface.ToolBarButtonManager
      Parameters:
      item - Description
    • contains

      public boolean contains(hec.appInterface.IToolBarButtonItem item)
      Description copied from interface: hec.appInterface.ToolBarButtonManager
      Check to see if the current ApplicationModule has toolBarItem already displayed in its toolbar.
      Specified by:
      contains in interface hec.appInterface.ToolBarButtonManager
      Parameters:
      item - Description
      Returns:
      Description
    • save

      public void save()
      Description copied from interface: hec.appInterface.ToolBarButtonManager
      Save the contents of the ToolBarButtonManager to disk.
      Specified by:
      save in interface hec.appInterface.ToolBarButtonManager
    • save

      public void save(BufferedWriter writer) throws IOException
      Throws:
      IOException
    • load

      public void load()
      Description copied from interface: hec.appInterface.ToolBarButtonManager
      Loads the ToolbarItems from disk
      Specified by:
      load in interface hec.appInterface.ToolBarButtonManager
    • load

      public void load(BufferedReader reader)