|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--com.maxistech.desktopex.SystemTrayAdapter
|
+--com.maxistech.desktopex.SystemTrayTargetAdapter
A concrete implementation of SystemTrayListener that
shows target component depending on which button is pressed. A component can
be displayed for each of the following buttons:
Any AWT or Swing components that inherit from java.awt.Component are supported.
| Constructor Summary | |
SystemTrayTargetAdapter(Component comp1,
Component comp2,
Component comp3)
Constructs a new adapter. |
|
| Method Summary | |
Component |
getButtonComponent(int button)
Gets the component that will be displayed when a button is pressed. |
boolean |
isButtonAutoHidden(int button)
Indicates if a component is hidden automatically when the window that owns this component is deactivated. |
void |
mouseReleased(SystemTrayEvent e)
Invoked when a mouse button has been released on a system tray. |
void |
setButtonComponent(int button,
Component comp)
Sets the component that will be displayed when a button is pressed. |
void |
setButtonComponent(int button,
Component comp,
boolean autoHide)
Sets the component that will be displayed when a button is pressed. |
void |
setButtonComponentAutoHidden(int button,
boolean autoHide)
Sets if the component is hidden automatically when the window that owns this component is deactivated. |
| Methods inherited from class com.maxistech.desktopex.SystemTrayAdapter |
mouseDblClicked, mouseMoved, mousePressed |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public SystemTrayTargetAdapter(Component comp1,
Component comp2,
Component comp3)
comp1 - component that will be displayed when SystemTrayEvent.BUTTON1 is pressed.comp2 - component that will be displayed when SystemTrayEvent.BUTTON2 is pressed.comp3 - component that will be displayed when SystemTrayEvent.BUTTON3 is pressed.| Method Detail |
public void setButtonComponent(int button,
Component comp,
boolean autoHide)
button - numbercomp - component to be displayed.autoHide - this component is hidden automatically when the window that owns
this component is deactivated.
IllegalArgumentException - thrown when button number is invalid.
public void setButtonComponent(int button,
Component comp)
button - numbercomp - component to be displayed.
IllegalArgumentException - thrown when button number is invalid.public Component getButtonComponent(int button)
button - number
IllegalArgumentException - thrown when button number is invalid.setButtonComponent(int, java.awt.Component, boolean)
public void setButtonComponentAutoHidden(int button,
boolean autoHide)
button - numberautoHide - this component is hidden automatically when the window that owns
IllegalArgumentException - thrown when button number is invalid.public boolean isButtonAutoHidden(int button)
button - number
IllegalArgumentException - thrown when button number is invalid.setButtonComponentAutoHidden(int, boolean)public final void mouseReleased(SystemTrayEvent e)
SystemTrayListener
mouseReleased in interface SystemTrayListenermouseReleased in class SystemTrayAdapter
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||