Class CoreRibbonResizeSequencingPolicies.CollapseFromLast

java.lang.Object
org.pushingpixels.radiance.component.api.ribbon.resize.BaseRibbonBandResizeSequencingPolicy
org.pushingpixels.radiance.component.api.ribbon.resize.CoreRibbonResizeSequencingPolicies.CollapseFromLast
All Implemented Interfaces:
RibbonBandResizeSequencingPolicy
Enclosing class:
CoreRibbonResizeSequencingPolicies

public static class CoreRibbonResizeSequencingPolicies.CollapseFromLast extends BaseRibbonBandResizeSequencingPolicy
The collapse from last resize sequencing policy. Under this policy the ribbon bands are being collapsed from right to left.
  • Field Details

    • nextIndex

      int nextIndex
      The index of the next ribbon task for collapsing.
  • Constructor Details

    • CollapseFromLast

      public CollapseFromLast(RibbonTask ribbonTask)
      Creates a new collapse from last resize sequencing policy for the specified task.
      Parameters:
      ribbonTask - Ribbon task.
  • Method Details

    • reset

      public void reset()
      Description copied from interface: RibbonBandResizeSequencingPolicy
      Resets this policy. Note that this method is for internal use only and should not be called by the application code.
    • next

      public AbstractRibbonBand next()
      Description copied from interface: RibbonBandResizeSequencingPolicy
      Returns the next ribbon band for collapse.
      Returns:
      The next ribbon band for collapse.