|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.pushingpixels.flamingo.api.ribbon.resize.BaseRibbonBandResizePolicy<JFlowBandControlPanel>
org.pushingpixels.flamingo.api.ribbon.resize.CoreRibbonResizePolicies.FlowTwoRows
public static class CoreRibbonResizePolicies.FlowTwoRows
Core resize policy for JFlowRibbonBand that places the content in
two rows.
| Field Summary |
|---|
| Fields inherited from class org.pushingpixels.flamingo.api.ribbon.resize.BaseRibbonBandResizePolicy |
|---|
controlPanel |
| Constructor Summary | |
|---|---|
CoreRibbonResizePolicies.FlowTwoRows(JFlowBandControlPanel controlPanel)
Creates a new two-row resize policy for JFlowRibbonBands. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CoreRibbonResizePolicies.FlowTwoRows(JFlowBandControlPanel controlPanel)
JFlowRibbonBands.
controlPanel - The control panel of the associated ribbon band.| Method Detail |
|---|
public int getPreferredWidth(int availableHeight,
int gap)
RibbonBandResizePolicy
availableHeight - 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.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||