|
|||||||||
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.pepper.guiutils.GradientPanel
com.pepper.guiutils.SystemTray
public class SystemTray
This class is the panel that displays icons/buttons in SystemTray area of the ProgramStatusBar.
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.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary | |
---|---|
static String |
TIME_ID
|
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 | |
---|---|
SystemTray()
Creates a new SystemTray instance. |
Method Summary | |
---|---|
void |
add(SystemTrayObject info)
Add an object to the SystemTray |
void |
addComponent(SystemTrayObject info)
Add an object with its own UI to the SystemTray |
void |
enablePopups(boolean state)
|
JComponent |
getComponent(String objectId)
Get the underlying component assoicated with a specific SystemTrayObject |
SystemTrayObject |
getSystemTrayObject(String objectId)
Get a particular SystemTrayObject |
boolean |
popupsEnabled()
|
void |
remove(String objectId)
Remove an object from the SystemTray |
void |
setIcon(String objectId,
Icon icon)
Set the Icon assoicated with a specific SystemTrayObject. |
void |
setText(String objectId,
String text)
Set the Display Text assoicated with a specific SystemTrayObject. |
void |
setToolTipText(String objectId,
String text)
Set the tooltip assoicated with a specific SystemTrayObject |
Methods inherited from class com.pepper.guiutils.GradientPanel |
---|
paintComponent |
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 |
Field Detail |
---|
public static final String TIME_ID
Constructor Detail |
---|
public SystemTray()
SystemTray
instance.
Method Detail |
---|
public void add(SystemTrayObject info)
info
- a SystemTrayObject
valuepublic void addComponent(SystemTrayObject info)
info
- SystemTrayObject with a UI componentpublic void remove(String objectId)
objectId
- The id of the SystemTrayObject that was addedpublic JComponent getComponent(String objectId)
objectId
- a String
value
component
valuepublic void setIcon(String objectId, Icon icon)
objectId
- a String
valueicon
- a Icon
valuepublic void setText(String objectId, String text)
objectId
- a String
valuetext
- a String
valuepublic void setToolTipText(String objectId, String text)
objectId
- a String
valuetext
- new tooltip textpublic SystemTrayObject getSystemTrayObject(String objectId)
objectId
- a String
value
SystemTrayObject
valuepublic void enablePopups(boolean state)
public boolean popupsEnabled()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |