org.jvnet.flamingo.common.ui
Class BasicCommandButtonPanelUI
java.lang.Object
javax.swing.plaf.ComponentUI
javax.swing.plaf.PanelUI
org.jvnet.flamingo.common.ui.CommandButtonPanelUI
org.jvnet.flamingo.common.ui.BasicCommandButtonPanelUI
public class BasicCommandButtonPanelUI
- extends CommandButtonPanelUI
Basic UI for command button panel JCommandButtonPanel
.
- Author:
- Kirill Grouchnikov
Method Summary |
static javax.swing.plaf.ComponentUI |
createUI(javax.swing.JComponent c)
|
int |
getPreferredHeight(int buttonVisibleRows,
int titleVisibleRows)
Returns the preferred size of the associated button panel for the
specified parameters. |
void |
installUI(javax.swing.JComponent c)
|
void |
paint(java.awt.Graphics g,
javax.swing.JComponent c)
|
void |
uninstallUI(javax.swing.JComponent c)
|
Methods inherited from class javax.swing.plaf.ComponentUI |
contains, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior, getMaximumSize, getMinimumSize, getPreferredSize, update |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BasicCommandButtonPanelUI
public BasicCommandButtonPanelUI()
createUI
public static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent c)
installUI
public void installUI(javax.swing.JComponent c)
- Overrides:
installUI
in class javax.swing.plaf.ComponentUI
uninstallUI
public void uninstallUI(javax.swing.JComponent c)
- Overrides:
uninstallUI
in class javax.swing.plaf.ComponentUI
paint
public void paint(java.awt.Graphics g,
javax.swing.JComponent c)
- Overrides:
paint
in class javax.swing.plaf.ComponentUI
getPreferredHeight
public int getPreferredHeight(int buttonVisibleRows,
int titleVisibleRows)
- Returns the preferred size of the associated button panel for the
specified parameters.
- Parameters:
buttonVisibleRows
- Target number of visible button rows.titleVisibleRows
- Target number of visible group title rows.
- Returns:
- The preferred size of the associated button panel for the
specified parameters.