Ontimize 5.2072EN

com.ontimize.util.notice
Class NewNoticeWindow

java.lang.Object
  extended byjava.awt.Component
      extended byjava.awt.Container
          extended byjava.awt.Window
              extended byjavax.swing.JWindow
                  extended bycom.ontimize.util.notice.NewNoticeWindow
All Implemented Interfaces:
javax.accessibility.Accessible, java.awt.image.ImageObserver, INoticeWindow, java.awt.MenuContainer, javax.swing.RootPaneContainer, java.io.Serializable

public class NewNoticeWindow
extends javax.swing.JWindow
implements INoticeWindow

See Also:
Serialized Form

Nested Class Summary
protected  class NewNoticeWindow.ListenerClick
           
 
Nested classes inherited from class javax.swing.JWindow
javax.swing.JWindow.AccessibleJWindow
 
Nested classes inherited from class java.awt.Window
java.awt.Window.AccessibleAWTWindow
 
Nested classes inherited from class java.awt.Container
java.awt.Container.AccessibleAWTContainer
 
Nested classes inherited from class java.awt.Component
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
 
Field Summary
protected static boolean alwaysVisible
          When alwaysVisible is true the user can not hide the window
It is used with the force read notices and only can be false if all these notices are read
protected  javax.swing.JButton bClose
           
static boolean defaultMarkAsReadOnClick
          Mark as read notices when user clicks on notice window.
protected  java.lang.String formName
           
protected  javax.swing.JLabel licon
           
protected  NewNoticeWindow.ListenerClick listenerClick
           
protected  javax.swing.JLabel ltext
           
protected  java.lang.String managerName
           
protected  boolean markAsReadOnClick
           
protected  javax.swing.JPanel panel
           
protected  boolean visibleWindow
           
 
Fields inherited from class javax.swing.JWindow
accessibleContext, rootPane, rootPaneCheckingEnabled
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Fields inherited from interface com.ontimize.util.notice.INoticeWindow
NEW_MESSAGES_RECEIVED, NEW_NOTICE_INFO, NEW_NOTICES_MESSAGE, NEW_NOTICES_TOOLTIP
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
NewNoticeWindow(java.awt.Frame f)
           
 
Method Summary
 void addMouseListeners()
           
 void configWindow()
           
 javax.swing.JButton getCloseButton()
           
 javax.swing.JLabel getLabelIcon()
           
 javax.swing.JLabel getLabelText()
           
 NewNoticeWindow.ListenerClick getListenerClick()
           
 boolean isAlwaysVisible()
           
 boolean isMarkAsReadOnClick()
           
 boolean isVisibleWindow()
           
 void markAsReadNotices()
           
 void placeWindow()
          Put the window in the left bottom of the application frame only if the window is visible
static void putLeftBottom(java.awt.Component c, java.awt.Component cp)
          Put the window in the left button corner of the application frame
 void setAlwaysVisible(boolean alwaysVisible)
           
 void setFormReference(java.lang.String formManagerName, java.lang.String formName)
           
 void setListenerClick(NewNoticeWindow.ListenerClick listenerClick)
           
 void setMarkAsReadOnClick(boolean markAsReadOnClick)
           
 void setVisible(boolean b)
           
 void setVisibleWindow(boolean visible, boolean alwaysVisible, java.lang.String text)
          Shows or hides the window.
 void setVisibleWindow(boolean visible, java.lang.String text)
          Show or hide the window.
 
Methods inherited from class javax.swing.JWindow
addImpl, createRootPane, getAccessibleContext, getContentPane, getGlassPane, getLayeredPane, getRootPane, isRootPaneCheckingEnabled, paramString, remove, setContentPane, setGlassPane, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, update, windowInit
 
Methods inherited from class java.awt.Window
addNotify, addPropertyChangeListener, addPropertyChangeListener, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, dispose, finalize, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getFocusTraversalKeys, getGraphicsConfiguration, getInputContext, getListeners, getLocale, getMostRecentFocusOwner, getOwnedWindows, getOwner, getToolkit, getWarningString, getWindowFocusListeners, getWindowListeners, getWindowStateListeners, hide, isActive, isFocusableWindow, isFocusCycleRoot, isFocused, isShowing, pack, postEvent, processEvent, processWindowEvent, processWindowFocusEvent, processWindowStateEvent, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, setCursor, setFocusableWindowState, setFocusCycleRoot, setLocationRelativeTo, show, toBack, toFront
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getContainerListeners, getFocusTraversalPolicy, getInsets, getLayout, getMaximumSize, getMinimumSize, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paint, paintComponents, preferredSize, print, printComponents, processContainerEvent, remove, removeAll, removeContainerListener, removeNotify, setFocusTraversalKeys, setFocusTraversalPolicy, setFont, transferFocusBackward, transferFocusDownCycle, validate, validateTree
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isOpaque, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, size, toString, transferFocus, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

defaultMarkAsReadOnClick

public static boolean defaultMarkAsReadOnClick
Mark as read notices when user clicks on notice window.


alwaysVisible

protected static boolean alwaysVisible
When alwaysVisible is true the user can not hide the window
It is used with the force read notices and only can be false if all these notices are read


visibleWindow

protected boolean visibleWindow

licon

protected javax.swing.JLabel licon

ltext

protected javax.swing.JLabel ltext

bClose

protected javax.swing.JButton bClose

listenerClick

protected NewNoticeWindow.ListenerClick listenerClick

panel

protected javax.swing.JPanel panel

formName

protected java.lang.String formName

managerName

protected java.lang.String managerName

markAsReadOnClick

protected boolean markAsReadOnClick
Constructor Detail

NewNoticeWindow

public NewNoticeWindow(java.awt.Frame f)
Method Detail

isMarkAsReadOnClick

public boolean isMarkAsReadOnClick()

setMarkAsReadOnClick

public void setMarkAsReadOnClick(boolean markAsReadOnClick)

putLeftBottom

public static void putLeftBottom(java.awt.Component c,
                                 java.awt.Component cp)
Put the window in the left button corner of the application frame

Parameters:
c - Component to show
cp - Application frame

configWindow

public void configWindow()

setVisible

public void setVisible(boolean b)

addMouseListeners

public void addMouseListeners()

getListenerClick

public NewNoticeWindow.ListenerClick getListenerClick()

setListenerClick

public void setListenerClick(NewNoticeWindow.ListenerClick listenerClick)

setFormReference

public void setFormReference(java.lang.String formManagerName,
                             java.lang.String formName)

setVisibleWindow

public void setVisibleWindow(boolean visible,
                             java.lang.String text)
Show or hide the window. I

Specified by:
setVisibleWindow in interface INoticeWindow

setVisibleWindow

public void setVisibleWindow(boolean visible,
                             boolean alwaysVisible,
                             java.lang.String text)
Description copied from interface: INoticeWindow
Shows or hides the window.

Specified by:
setVisibleWindow in interface INoticeWindow
Parameters:
visible - If visible is true then the window is shown else is hided
alwaysVisible - If alwaysVisible is true then the window can not be hided
text - Text to show in the window

setAlwaysVisible

public void setAlwaysVisible(boolean alwaysVisible)
Specified by:
setAlwaysVisible in interface INoticeWindow

isAlwaysVisible

public boolean isAlwaysVisible()
Specified by:
isAlwaysVisible in interface INoticeWindow
Returns:
true when it is possible to hide the window, false in other case

isVisibleWindow

public boolean isVisibleWindow()
Specified by:
isVisibleWindow in interface INoticeWindow
Returns:
true when the window is visible

placeWindow

public void placeWindow()
Description copied from interface: INoticeWindow
Put the window in the left bottom of the application frame only if the window is visible

Specified by:
placeWindow in interface INoticeWindow

getLabelIcon

public javax.swing.JLabel getLabelIcon()

getLabelText

public javax.swing.JLabel getLabelText()

getCloseButton

public javax.swing.JButton getCloseButton()

markAsReadNotices

public void markAsReadNotices()

Ontimize