public class AnnounceFrame extends TaskFrame implements java.awt.event.ActionListener
IcyFrame.IcyFrameState
Constructor and Description |
---|
AnnounceFrame(java.lang.String message)
Show an announcement with specified message.
|
AnnounceFrame(java.lang.String message,
int liveTime)
Show an announcement with specified parameters
|
AnnounceFrame(java.lang.String message,
java.lang.Runnable btnAction)
Show an announcement with specified parameters.
|
AnnounceFrame(java.lang.String message,
java.lang.Runnable btnAction,
int liveTime)
Show an announcement with specified parameters
|
AnnounceFrame(java.lang.String message,
java.lang.String buttonText,
java.lang.Runnable btnAction,
int liveTime)
Show an announcement with specified parameters
|
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent e) |
java.lang.Runnable |
getAction() |
void |
internalClose()
Used by the TaskWindowManager to close the TaskFrame.
|
void |
setAction(java.lang.Runnable action) |
canRemove, close, isCanBeRemoved, stateChanged
add, add, add, addComponentListener, addFrameListener, addKeyListener, addTo, addTo, addTo, addToDesktopPane, addToDesktopPane, addToMainDesktopPane, attach, center, detach, dispose, externalize, findIcyFrame, frameClosed, getActionMap, getAllFrames, getAllFrames, getBorder, getBounds, getBoundsExternal, getBoundsInternal, getContentPane, getDefaultSystemMenu, getExternalFrame, getFrame, getHeight, getHeightExternal, getHeightInternal, getIcyExternalFrame, getIcyInternalFrame, getInputMap, getInternalFrame, getJMenuBar, getLocation, getLocationExternal, getLocationInternal, getMaximumSize, getMaximumSizeExternal, getMaximumSizeInternal, getMinimumSize, getMinimumSizeExternal, getMinimumSizeInternal, getMousePosition, getParent, getPreferredSize, getPreferredSizeExternal, getPreferredSizeInternal, getRootPane, getSize, getSizeExternal, getSizeInternal, getSwitchStateAction, getSystemMenuCallback, getTitle, getTitleBarVisible, getToolkit, getVisibleRect, getWidth, getWidthExternal, getWidthInternal, getX, getXExternal, getXInternal, getY, getYExternal, getYInternal, hasFocus, imageUpdate, internalFrameActivated, internalFrameClosed, internalFrameClosing, internalFrameDeactivated, internalFrameDeiconified, internalFrameIconified, internalFrameOpened, internalize, isActive, isAlwaysOnTop, isClosable, isExternalized, isInternalized, isMaximized, isMaximizedExternal, isMaximizedInternal, isMinimized, isMinimizedExternal, isMinimizedInternal, isResizable, isSwitchStateItemVisible, isSyncProcess, isVisible, onClosed, pack, propertyChange, remove, removeAll, removeComponentListener, removeFrameListener, removeFrom, removeFromMainDesktopPane, removeKeyListener, repaint, requestFocus, revalidate, setAlwaysOnTop, setBackground, setBorder, setBounds, setClosable, setContentPane, setDefaultCloseOperation, setFocusable, setForeground, setJMenuBar, setLayout, setLocation, setLocation, setLocationExternal, setLocationExternal, setLocationInternal, setLocationInternal, setMaximisable, setMaximized, setMaximizedExternal, setMaximizedInternal, setMaximumSize, setMaximumSizeExternal, setMaximumSizeInternal, setMinimized, setMinimizedExternal, setMinimizedInternal, setMinimumSize, setMinimumSizeExternal, setMinimumSizeInternal, setPreferredSize, setPreferredSizeExternal, setPreferredSizeInternal, setResizable, setSize, setSize, setSizeExternal, setSizeExternal, setSizeInternal, setSizeInternal, setSwitchStateItemVisible, setSyncProcess, setSystemMenuCallback, setTitle, setTitleBarVisible, setToolTipText, setVisible, switchState, toBack, toFront, updateSystemMenu, updateUI, validate, windowActivated, windowClosed, windowClosing, windowDeactivated, windowDeiconified, windowIconified, windowOpened
public AnnounceFrame(java.lang.String message)
message
- message to display in announcementpublic AnnounceFrame(java.lang.String message, java.lang.Runnable btnAction)
message
- message to display in announcementbtnAction
- action on button clickpublic AnnounceFrame(java.lang.String message, int liveTime)
message
- message to display in announcementliveTime
- life time in second (0 = infinite)public AnnounceFrame(java.lang.String message, java.lang.Runnable btnAction, int liveTime)
message
- message to display in announcementbtnAction
- action on button clickliveTime
- life time in second (0 = infinite)public AnnounceFrame(java.lang.String message, java.lang.String buttonText, java.lang.Runnable btnAction, int liveTime)
message
- message to display in announcementbuttonText
- button textbtnAction
- action on button clickliveTime
- life time in second (0 = infinite)public java.lang.Runnable getAction()
public void setAction(java.lang.Runnable action)
action
- the action to setpublic void internalClose()
TaskFrame
internalClose
in class TaskFrame
public void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed
in interface java.awt.event.ActionListener