Class BrowserCodeUnitFormat

  • Direct Known Subclasses:
    LabelCodeUnitFormat

    public class BrowserCodeUnitFormat
    extends CodeUnitFormat
    BrowserCodeUnitFormat provides a code unit format based upon a common set of viewer Options for specific Tool. The associated options correspond to the Browser Operand Fields category.
    • Constructor Detail

      • BrowserCodeUnitFormat

        public BrowserCodeUnitFormat​(ServiceProvider serviceProvider)
        Construct code unit format for specified serviceProvider with autoUpdate enabled.
        Parameters:
        serviceProvider - service provider (e.g., Tool)
      • BrowserCodeUnitFormat

        public BrowserCodeUnitFormat​(ServiceProvider serviceProvider,
                                     boolean autoUpdate)
        Construct code unit format for specified serviceProvider.
        Parameters:
        serviceProvider - service provider (e.g., Tool)
        autoUpdate - if true format will auto update if associated options are changed.
    • Method Detail

      • addChangeListener

        public void addChangeListener​(javax.swing.event.ChangeListener listener)
        Add a change listener to the underlying format options. When a format change occurs the listener may wish to trigger a refresh of of any formatted code units.
        Parameters:
        listener - change listener
      • removeChangeListener

        public void removeChangeListener​(javax.swing.event.ChangeListener listener)
        Remove an existing change listener from the underlying format options.
        Parameters:
        listener - change listener