|
JIDE 3.5.15 | ||||||||
| 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.jidesoft.swing.NullPanel
com.jidesoft.status.StatusBarItem
com.jidesoft.status.LabelStatusBarItem
public class LabelStatusBarItem
A status bar item with a JLabel.
| 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 | |
|---|---|
LabelStatusBarItem()
|
|
LabelStatusBarItem(String name)
Creates a label status bar item with name. |
|
| Method Summary | |
|---|---|
void |
addMouseListener(MouseListener listener)
Adds the specified mouse listener to receive mouse events from this component. |
protected void |
configureLabel(JLabel label)
Configures the label. |
protected JLabel |
createLabel()
Creates the label component used by LabelStatusBarItem. |
Component |
getComponent()
Gets the actual component. |
int |
getHorizontalAlignment()
Gets the text horizontal alignment. |
Icon |
getIcon()
Gets icon displayed on the label. |
String |
getItemName()
Gets item name. |
Dimension |
getPreferredSize()
If the preferredSize has been set to a non-null value just returns it. |
String |
getText()
Gets text displayed on the label. |
Point |
getToolTipLocation(MouseEvent event)
|
String |
getToolTipText()
Gets tooltip displayed on the label. |
void |
setAlignment(int alignment)
Sets the alignment. |
void |
setEnabled(boolean enabled)
Enable or disable the StatusBar Item. |
void |
setHorizontalAlignment(int alignment)
Sets the text horizontal alignment. |
void |
setIcon(Icon icon)
Sets icon to be displayed on the label. |
void |
setText(String text)
Sets text to be displayed on the label. |
void |
setToolTip(String tooltip)
Deprecated. replaced it with setToolTipText. |
void |
setToolTipText(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 LabelStatusBarItem()
public LabelStatusBarItem(String name)
name - name of the status bar item| Method Detail |
|---|
protected JLabel createLabel()
protected void configureLabel(JLabel label)
public void setText(String text)
text - public String getText()
@Deprecated public void setToolTip(String tooltip)
public void setToolTipText(String tooltip)
setToolTipText in class JComponenttooltip - the new tooltip.public String getToolTipText()
getToolTipText in class JComponentpublic Point getToolTipLocation(MouseEvent event)
getToolTipLocation in class JComponentpublic void setIcon(Icon icon)
icon - public void setHorizontalAlignment(int alignment)
JLabel.setHorizontalAlignment(int).
alignment - public int getHorizontalAlignment()
public Icon getIcon()
public void setEnabled(boolean enabled)
setEnabled in class JComponentenabled - public void addMouseListener(MouseListener listener)
l is
null, no exception is thrown and no action is performed.
addMouseListener in class Componentlistener - the mouse listenerpublic void setAlignment(int alignment)
alignment - public 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 StatusBarItempreferredSize propertyJComponent.setPreferredSize(java.awt.Dimension),
ComponentUIpublic 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 | ||||||||