| com.xoetrope.swing.XRollupBar
All known Subclasses: com.xoetrope.swing.XAccordian,
XRollupBar | public class XRollupBar extends XPanel implements ActionListener,XAttributedComponent,XCompositeComponent(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.15 $
|
Inner Class :class XRollupPanel extends JComponent | |
Inner Class :public class AccordianLayout implements LayoutManager | |
Method Summary | |
public void | actionPerformed(ActionEvent e) Invoked when a mouse button has been pressed on a component. | public Component | add(Component comp) Add a new button. | public void | add(Component comp, Object constraints) Add a new button. | public Color | getBackgroundAt(int index) | public JToggleButton | getButton(int index) | public int | getButtonCount() | public Component | getContentComponent(int idx) | public int | getContentComponentCount() | public Color | getForegroundAt(int index) | public int | getMaxSharedPanels() | public Dimension | getMaximumSize() | public Dimension | getMinimumSize() | public Dimension | getPreferredSize() | public int | getSelectedIndex() | public String | getTitleAt(int index) | protected boolean | isAllExpandable() | public boolean | isOverlapButtons() | protected void | setAllExpandable(boolean state) Set this component to allow all of its panel to be visible at once. | public void | setAntiAlias(String state) Set the AntiAliasing state. | public int | setAttribute(String attribName, Object attribValue) Set one or more attributes of the component.
- alignment, value=(Left|Right|Center|Leading|Trailing)
- imagename, value=the image file name
- pressed, value=the pressed image file name
- rollover, value=the rollover image file name
- icon, value=name of the image
- iconpressed, value=name of the pressed image
- iconrollover, value=name of the rollover image
- tooltip, value=the tooltip text
- painter, value=the painter class for the image buttons
- slideImages, value=true to slide images of the panels rather than the
actual panels themselves.
| public void | setBackgroundAt(int index, Color clr) | public void | setForegroundAt(int index, Color clr) | public void | setIsVertical(boolean vertical) | public void | setMaxSharedPanels(int maxPanels) | public void | setOverlapButtons(boolean state) | public void | setSelectedIndex(int index) | public void | setState(String[] panelStates) | public void | setTitleAt(int index, String str) |
allExpandable | protected boolean allExpandable(Code) | | |
antiAlias | protected boolean antiAlias(Code) | | |
buttonHeight | protected int buttonHeight(Code) | | |
currentProject | protected XProject currentProject(Code) | | |
maxPanelSize | protected int maxPanelSize(Code) | | |
minPanelSize | protected int minPanelSize(Code) | | |
selIdxlastSelIdx | protected int selIdxlastSelIdx(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 |
add | public void add(Component comp, Object constraints)(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 |
getBackgroundAt | public Color getBackgroundAt(int index)(Code) | | Get a button's background color
Parameters: index - the button index the color |
getButton | public JToggleButton 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 |
getContentComponent | public Component getContentComponent(int idx)(Code) | | Get a nested component
Parameters: the - index of the nested component the specified component |
getContentComponentCount | public int getContentComponentCount()(Code) | | Get the count of the nested components
the component count |
getForegroundAt | public Color getForegroundAt(int index)(Code) | | Get a button's foreground color
Parameters: index - the button index the color |
getMaxSharedPanels | public int getMaxSharedPanels()(Code) | | Get the maximum number of shared panels
the panel count |
getMaximumSize | public Dimension getMaximumSize()(Code) | | Get the minimum layout size of this component
the preferred size |
getMinimumSize | public Dimension getMinimumSize()(Code) | | Get the minimum layout size of this component
the preferred size |
getPreferredSize | public Dimension getPreferredSize()(Code) | | Get the preferred layout size of this component
the preferred size |
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 |
isAllExpandable | protected boolean isAllExpandable()(Code) | | Does this component allow all of its panel to be visible at once?
true if all panels can be made visible |
isOverlapButtons | public boolean isOverlapButtons()(Code) | | Do the buttons overlap for the adjacent panels when the content is hidden?
true if the buttons ovrlap |
setAllExpandable | protected void setAllExpandable(boolean state)(Code) | | Set this component to allow all of its panel to be visible at once.
Parameters: allExpandable - |
setAntiAlias | public void setAntiAlias(String state)(Code) | | Set the AntiAliasing state. Any buttons contained within the rolloup bar
will have their antialias setting modified by this call.
"true" to anti alias the text |
setAttribute | public int setAttribute(String attribName, Object attribValue)(Code) | | Set one or more attributes of the component.
- alignment, value=(Left|Right|Center|Leading|Trailing)
- imagename, value=the image file name
- pressed, value=the pressed image file name
- rollover, value=the rollover image file name
- icon, value=name of the image
- iconpressed, value=name of the pressed image
- iconrollover, value=name of the rollover image
- tooltip, value=the tooltip text
- painter, value=the painter class for the image buttons
- slideImages, value=true to slide images of the panels rather than the
actual panels themselves. In sme case this can give better performance as
each panel does not get layout at ever animatio step
Parameters: attribName - the name of the attribute Parameters: attribValue - the value of the attribute 0 for success, non zero otherwise |
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 |
setIsVertical | public void setIsVertical(boolean vertical)(Code) | | Set the layout as vertical (one button above another)
Parameters: isVertical - |
setMaxSharedPanels | public void setMaxSharedPanels(int maxPanels)(Code) | | Set the maximum number of shared panels (the number of panels that can
occupy a single divider)
Parameters: maxPanels - the new max panel count |
setOverlapButtons | public void setOverlapButtons(boolean state)(Code) | | Set the buttons to overlap for the adjacent panels when the content is hidden
Parameters: state - the new flag value |
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 |
|
|