|
HOME | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
com.ultraswing.CPanel
com.ultraswing.OutlookBarItem
outlook bar item, including a title and buttons
OutlookBar
,
Serialized FormNested Class Summary |
Nested classes inherited from class javax.swing.JPanel |
JPanel.AccessibleJPanel |
Nested classes inherited from class javax.swing.JComponent |
JComponent.AccessibleJComponent |
Nested classes inherited from class java.awt.Container |
Container.AccessibleAWTContainer |
Nested classes inherited from class java.awt.Component |
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary |
Fields inherited from class javax.swing.JComponent |
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
OutlookBarItem(String title,
boolean center)
Creates a OutlookBarItem object |
Method Summary | |
LabelButton |
addButton(String text,
Icon icon)
Adds a button |
LabelButton |
addButton(String text,
Icon large,
Icon small)
Adds a button |
void |
addComponent(JComponent comp)
Adds a component |
JPopupMenu |
getPopupMenu()
Returns the popup menu |
JLabel |
getTitle()
Returns the title component |
void |
setBackground(Color c)
Sets the background color of this component |
void |
setForeground(Color c)
|
void |
setPopupMenu(JPopupMenu menu)
Sets the popup menu |
void |
toggleIcon()
Toggle button icon |
String |
toString()
|
Methods inherited from class com.ultraswing.CPanel |
contains, getPrefferedSize, onResize, paintBorder, processComponentEvent, setBackgroundImage, setGradientBackground |
Methods inherited from class javax.swing.JPanel |
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public OutlookBarItem(String title, boolean center)
title
- title of this itemcenter
- if true, component's horizonal alignment is CENTER, otherwise LEFTMethod Detail |
public JLabel getTitle()
public void setForeground(Color c)
public void setBackground(Color c)
CPanel
setBackground
in class CPanel
public LabelButton addButton(String text, Icon icon)
text
- button texticon
- button iconpublic LabelButton addButton(String text, Icon large, Icon small)
text
- button textlarge
- Large iconsmall
- small iconpublic void toggleIcon()
public void addComponent(JComponent comp)
public JPopupMenu getPopupMenu()
public void setPopupMenu(JPopupMenu menu)
menu
- the new popup menu. If it's null, popup menu is disabled. Otherwise popup menu is enabled.public String toString()
|
HOME | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |