public class NewNoticeWindow extends JWindow implements INoticeWindow
| Modifier and Type | Class and Description |
|---|---|
protected class |
NewNoticeWindow.ListenerClick |
JWindow.AccessibleJWindowWindow.AccessibleAWTWindow, Window.TypeContainer.AccessibleAWTContainerComponent.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy| Modifier and Type | Field and Description |
|---|---|
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 JButton |
bClose |
static boolean |
defaultMarkAsReadOnClick
Mark as read notices when user clicks on notice window.
|
protected String |
formName |
protected JLabel |
licon |
protected NewNoticeWindow.ListenerClick |
listenerClick |
protected JLabel |
ltext |
protected String |
managerName |
protected boolean |
markAsReadOnClick |
protected JPanel |
panel |
protected boolean |
visibleWindow |
accessibleContext, rootPane, rootPaneCheckingEnabledBOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENTNEW_MESSAGES_RECEIVED, NEW_NOTICE_INFO, NEW_NOTICES_MESSAGE, NEW_NOTICES_TOOLTIPABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH| Constructor and Description |
|---|
NewNoticeWindow(Frame f) |
| Modifier and Type | Method and Description |
|---|---|
void |
addMouseListeners() |
void |
configWindow() |
JButton |
getCloseButton() |
JLabel |
getLabelIcon() |
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(Component c,
Component cp)
Put the window in the left button corner of the application frame
|
void |
setAlwaysVisible(boolean alwaysVisible) |
void |
setFormReference(String formManagerName,
String formName) |
void |
setListenerClick(NewNoticeWindow.ListenerClick listenerClick) |
void |
setMarkAsReadOnClick(boolean markAsReadOnClick) |
void |
setVisible(boolean b) |
void |
setVisibleWindow(boolean visible,
boolean alwaysVisible,
String text)
Shows or hides the window.
|
void |
setVisibleWindow(boolean visible,
String text)
Show or hide the window.
|
addImpl, createRootPane, getAccessibleContext, getContentPane, getGlassPane, getGraphics, getLayeredPane, getRootPane, getTransferHandler, isRootPaneCheckingEnabled, paramString, remove, repaint, setContentPane, setGlassPane, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, setTransferHandler, update, windowInitaddNotify, addPropertyChangeListener, addPropertyChangeListener, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, dispose, getBackground, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getFocusTraversalKeys, getIconImages, getInputContext, getListeners, getLocale, getModalExclusionType, getMostRecentFocusOwner, getOpacity, getOwnedWindows, getOwner, getOwnerlessWindows, getShape, getToolkit, getType, getWarningString, getWindowFocusListeners, getWindowListeners, getWindows, getWindowStateListeners, hide, isActive, isAlwaysOnTop, isAlwaysOnTopSupported, isAutoRequestFocus, isFocusableWindow, isFocusCycleRoot, isFocused, isLocationByPlatform, isOpaque, isShowing, isValidateRoot, pack, paint, postEvent, processEvent, processWindowEvent, processWindowFocusEvent, processWindowStateEvent, removeNotify, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, reshape, setAlwaysOnTop, setAutoRequestFocus, setBackground, setBounds, setBounds, setCursor, setFocusableWindowState, setFocusCycleRoot, setIconImage, setIconImages, setLocation, setLocation, setLocationByPlatform, setLocationRelativeTo, setMinimumSize, setModalExclusionType, setOpacity, setShape, setSize, setSize, setType, show, toBack, toFrontadd, add, add, add, add, addContainerListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalPolicy, getInsets, getLayout, getMaximumSize, getMinimumSize, getMousePosition, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, print, printComponents, processContainerEvent, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, transferFocusDownCycle, validate, validateTreeaction, 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, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, 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, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, 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, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resize, resize, revalidate, setComponentOrientation, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setMaximumSize, setName, setPreferredSize, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCyclepublic static boolean defaultMarkAsReadOnClick
protected static boolean alwaysVisible
protected boolean visibleWindow
protected JLabel licon
protected JLabel ltext
protected JButton bClose
protected NewNoticeWindow.ListenerClick listenerClick
protected JPanel panel
protected String formName
protected String managerName
protected boolean markAsReadOnClick
public NewNoticeWindow(Frame f)
public boolean isMarkAsReadOnClick()
public void setMarkAsReadOnClick(boolean markAsReadOnClick)
public static void putLeftBottom(Component c, Component cp)
c - Component to showcp - Application framepublic void configWindow()
public void setVisible(boolean b)
setVisible in class Windowpublic void addMouseListeners()
public NewNoticeWindow.ListenerClick getListenerClick()
public void setListenerClick(NewNoticeWindow.ListenerClick listenerClick)
public void setVisibleWindow(boolean visible,
String text)
setVisibleWindow in interface INoticeWindowpublic void setVisibleWindow(boolean visible,
boolean alwaysVisible,
String text)
INoticeWindowsetVisibleWindow in interface INoticeWindowvisible - If visible is true then the window is shown else is hidedalwaysVisible - If alwaysVisible is true then the window can not be hidedtext - Text to show in the windowpublic void setAlwaysVisible(boolean alwaysVisible)
setAlwaysVisible in interface INoticeWindowpublic boolean isAlwaysVisible()
isAlwaysVisible in interface INoticeWindowpublic boolean isVisibleWindow()
isVisibleWindow in interface INoticeWindowpublic void placeWindow()
INoticeWindowplaceWindow in interface INoticeWindowpublic JLabel getLabelIcon()
public JLabel getLabelText()
public JButton getCloseButton()
public void markAsReadNotices()
Copyright © 2016 Imatia Innovation S.L.. All rights reserved.