|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.awt.Component java.awt.Container javax.swing.JComponent javax.swing.JPanel com.jidesoft.swing.NullPanel com.jidesoft.status.StatusBarItem com.jidesoft.status.ComboBoxStatusBarItem
public class ComboBoxStatusBarItem
A status bar item with a JComboBox.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class javax.swing.JPanel |
---|
JPanel.AccessibleJPanel |
Nested classes/interfaces inherited from class javax.swing.JComponent |
---|
JComponent.AccessibleJComponent |
Nested classes/interfaces inherited from class java.awt.Container |
---|
Container.AccessibleAWTContainer |
Nested classes/interfaces inherited from class java.awt.Component |
---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, 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 | |
---|---|
ComboBoxStatusBarItem()
|
|
ComboBoxStatusBarItem(String name)
Creates a label status bar item with name. |
Method Summary | |
---|---|
void |
addItem(Object item)
Adds the item to the combobox. |
void |
addMouseListener(MouseListener listener)
Adds the specified mouse listener to receive mouse events from this component. |
protected void |
configureComboBox(JComboBox comboBox)
Configures the combo box. |
protected JComboBox |
createComboBox()
Creates the label component used by LabelStatusBarItem. |
Component |
getComponent()
Gets the actual component. |
String |
getItemName()
Gets item name. |
Dimension |
getPreferredSize()
If the preferredSize has been set to a non-null value just returns
it. |
int |
getSelectedIndex()
Get the current selected index on the combo box. |
Object |
getSelectedItem()
Gets text displayed on the label. |
Point |
getToolTipLocation(MouseEvent event)
|
String |
getToolTipText()
Gets tooltip displayed on the label. |
void |
removeItem(Object item)
Removes the item from the combobox. |
void |
setEnabled(boolean enabled)
Enable or disable the StatusBar Item. |
void |
setSelectedIndex(int index)
Set the index to be displayed on the combo box. |
void |
setSelectedItem(Object item)
Sets the item to be displayed on the combo box. |
void |
setToolTip(String tooltip)
Sets tooltip to be displayed on the label. |
Methods inherited from class com.jidesoft.status.StatusBarItem |
---|
getPreferredWidth, setPreferredWidth, updateUI |
Methods inherited from class com.jidesoft.swing.NullPanel |
---|
setBackground, setFont, setForeground |
Methods inherited from class javax.swing.JPanel |
---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ComboBoxStatusBarItem()
public ComboBoxStatusBarItem(String name)
name
- name of the status bar itemMethod Detail |
---|
protected JComboBox createComboBox()
protected void configureComboBox(JComboBox comboBox)
comboBox
- the combo boxpublic void setSelectedItem(Object item)
item
- the item to be selected.public Object getSelectedItem()
public void setSelectedIndex(int index)
index
- the index of the itempublic int getSelectedIndex()
public void addItem(Object item)
item
- the item to be added.public void removeItem(Object item)
item
- the item to be removed.public void setToolTip(String tooltip)
tooltip
- the tooltip stringpublic String getToolTipText()
getToolTipText
in class JComponent
public Point getToolTipLocation(MouseEvent event)
getToolTipLocation
in class JComponent
public void setEnabled(boolean enabled)
setEnabled
in class JComponent
enabled
- the flagpublic void addMouseListener(MouseListener listener)
l
is null
, no exception is thrown and no action is performed.
addMouseListener
in class Component
listener
- the mouse listenerpublic Component getComponent()
public Dimension getPreferredSize()
preferredSize
has been set to a non-null
value just returns
it. If the UI delegate's getPreferredSize
method returns a non null
value then return that; otherwise defer to the component's layout manager.
getPreferredSize
in class StatusBarItem
preferredSize
propertyJComponent.setPreferredSize(java.awt.Dimension)
,
ComponentUI
public String getItemName()
StatusBarItem
getItemName
in class StatusBarItem
|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |