def METHOD_NAME(self):
    """
    Reimplemented from LayerViewerGui base class.
    """
    # Load the ui file (find it in our own directory)
    localDir = os.path.split(__file__)[0]
    self._drawer = uic.loadUi(localDir + "/drawer.ui")
    self._drawer.applyButton.clicked.connect(self._onApplyButtonPressed)
    self._blockSpinBoxes = {
        "x": self._drawer.blockSpinBox_X,
        "y": self._drawer.blockSpinBox_Y,
        "z": self._drawer.blockSpinBox_Z,
    }
    self._haloSpinBoxes = {
        "x": self._drawer.haloSpinBox_X,
        "y": self._drawer.haloSpinBox_Y,
        "z": self._drawer.haloSpinBox_Z,
    }
    for spinBoxes in (self._blockSpinBoxes, self._haloSpinBoxes):
        for spinBox in list(spinBoxes.values()):
            # Any time a spinbox changes, enable the "Apply" button.
            spinBox.valueChanged.connect(partial(self._drawer.applyButton.setEnabled, True))
            # If the user pressed enter inside a spinbox, auto-click "Apply"
            spinBox.installEventFilter(self)
    # FIXME: we are relying on z being there because of the OpReorderAxes
    zIndex = self.topLevelOperatorView.RawImage.meta.axistags.index("z")
    nz = self.topLevelOperatorView.RawImage.meta.shape[zIndex]
    if nz == 1:
        # it's a 2d image, hide z spin boxes
        self._drawer.blockSpinBox_Z.setVisible(False)
        self._drawer.haloSpinBox_Z.setVisible(False)