| com.xoetrope.awt.XRollupBar
XRollupBar | public class XRollupBar extends XPanel implements ActionListener(Code) | | An outlook style roll-up bar. The methods are modelled on the JTabbedPane
Copyright (c) Xoetrope Ltd., 2001-2006, This software is licensed under
the GNU Public License (GPL), please see license.txt for more details. If
you make commercial use of this software you must purchase a commercial
license from Xoetrope.
$Revision: 1.3 $
|
contentPane | protected XPanel contentPane(Code) | | |
selIdx | protected int selIdx(Code) | | |
XRollupBar | public XRollupBar()(Code) | | Create a new button panel
|
actionPerformed | public void actionPerformed(ActionEvent e)(Code) | | Invoked when a mouse button has been pressed on a component.
Parameters: e - the event |
add | public Component add(Component comp)(Code) | | Add a new button.
The add method could not be overloaded so this method adds does the
equivalent.
Parameters: comp - the new button component the new component |
addbutton | public void addbutton(String name, Component panel)(Code) | | Add a new button.
The add method could not be overloaded so this method adds does the
equivalent.
Parameters: name - the name/caption of the button component Parameters: panel - the content |
getBackgroundAt | public Color getBackgroundAt(int index)(Code) | | Get a button's background color
Parameters: index - the button index the color |
getButton | public XButton getButton(int index)(Code) | | Get the button component at the specified index, skips over the expanded panel
Parameters: index - the button index the button component |
getButtonCount | public int getButtonCount()(Code) | | Get the number of buttons
the number of buttons |
getForegroundAt | public Color getForegroundAt(int index)(Code) | | Get a button's foreground color
Parameters: index - the button index the color |
getSelectedIndex | public int getSelectedIndex()(Code) | | Get the index of the selected button
the selection index |
getTitleAt | public String getTitleAt(int index)(Code) | | Get the title of the button at the specified index
Parameters: index - the button index the button text/title |
setBackgroundAt | public void setBackgroundAt(int index, Color clr)(Code) | | Set the button background color
Parameters: index - the button index Parameters: clr - the new colr |
setForegroundAt | public void setForegroundAt(int index, Color clr)(Code) | | Set the foreground color
Parameters: index - the button index Parameters: clr - the new color |
setSelectedIndex | public void setSelectedIndex(int index)(Code) | | Select a button
Parameters: index - the button index |
setTitleAt | public void setTitleAt(int index, String str)(Code) | | Set a button's title
Parameters: index - the button index Parameters: str - the text for the button |
|
|