Class FreezeRowCommand

    • Constructor Detail

      • FreezeRowCommand

        public FreezeRowCommand​(ILayer layer,
                                int rowPosition)
        Creates a FreezeRowCommand for the given row position related to the given layer, that doesn't toggle or override a current frozen state.
        Parameters:
        layer - The layer to which the row position matches.
        rowPosition - The row position that will be the bottom row in the frozen part.
      • FreezeRowCommand

        public FreezeRowCommand​(ILayer layer,
                                int rowPosition,
                                boolean toggle)
        Creates a FreezeRowCommand for the given row position related to the given layer, that doesn't override a current frozen state. If it should toggle the current frozen state can be specified by parameter.
        Parameters:
        layer - The layer to which the row position matches.
        rowPosition - The row position that will be the bottom row in the frozen part.
        toggle - whether this command should toggle the frozen state between frozen and unfrozen, or if it should always result in a frozen state.
      • FreezeRowCommand

        public FreezeRowCommand​(ILayer layer,
                                int rowPosition,
                                boolean toggle,
                                boolean overrideFreeze)
        Creates a FreezeRowCommand for the given row position related to the given layer. If it should toggle or override the current frozen state can be specified by parameter.
        Parameters:
        layer - The layer to which the row position matches.
        rowPosition - The row position that will be the bottom row in the frozen part.
        toggle - whether this command should toggle the frozen state between frozen and unfrozen, or if it should always result in a frozen state.
        overrideFreeze - whether this command should override a current frozen state or if it should be skipped if a frozen state is already applied.
      • FreezeRowCommand

        protected FreezeRowCommand​(FreezeRowCommand command)
        Constructor used for cloning the command.
        Parameters:
        command - The command which is the base for the new cloned instance.
    • Method Detail

      • isToggle

        public boolean isToggle()
        Description copied from interface: IFreezeCommand
        Indicates whether this command should toggle the frozen state between frozen and unfrozen, or if it should always result in a frozen state.
        Specified by:
        isToggle in interface IFreezeCommand
        Returns:
        true if a frozen state should be unfrozen when it is tried to freeze again
      • isOverrideFreeze

        public boolean isOverrideFreeze()
        Description copied from interface: IFreezeCommand
        Indicates whether this command should override a current frozen state or if it should be skipped if a frozen state is already applied.
        Specified by:
        isOverrideFreeze in interface IFreezeCommand
        Returns:
        true if a current freeze state should be overriden, false if a requested freeze should be skipped on a already frozen state.