RibbonBandResizePolicypublic static class CoreRibbonResizePolicies.IconRibbonBandResizePolicy extends CoreRibbonResizePolicies.BaseRibbonBandResizePolicy<AbstractRibbonBand>
RibbonBandResizePolicy, the entire ribbon band content is
replaced by a single popup button. Activating the popup button will show a popup
with the original content under the most permissive resize policy.
An instance of this policy must appear exactly once in the
list passed to AbstractRibbonBand.setResizePolicies(java.util.List),
and it must be the last entry in that list.
controlPanel, ribbonBand| Constructor | Description |
|---|---|
IconRibbonBandResizePolicy(AbstractRibbonBand ribbonBand) |
Creates a new collapsed resize policy.
|
| Modifier and Type | Method | Description |
|---|---|---|
int |
getPreferredWidth(int availableHeight,
int gap) |
Returns the preferred width of the associated ribbon band under the
specified dimensions.
|
void |
install(int availableHeight,
int gap) |
Installs this resize policy on the associated ribbon band.
|
public IconRibbonBandResizePolicy(AbstractRibbonBand ribbonBand)
ribbonBand - The associated ribbon band.public int getPreferredWidth(int availableHeight,
int gap)
RibbonBandResizePolicyavailableHeight - The height available for the associated ribbon band.gap - The inter-component gap.public void install(int availableHeight,
int gap)
RibbonBandResizePolicyJFlowRibbonBands only changes the bounds of the flow components.
For JRibbonBands can also change the display state of the command
buttons (with
AbstractCommandButton.setDisplayState(org.pushingpixels.flamingo.api.common.CommandButtonDisplayState)
) and the number of visible buttons in the ribbon galleries. Note that
this method is for internal use only and should not be called by the
application code.availableHeight - The height available for the associated ribbon band.gap - The inter-component gap.