com.jp.protection.gui.dialogs
Class LicenseErrorDialog

java.lang.Object
  extended by java.awt.Component
      extended by java.awt.Container
          extended by java.awt.Window
              extended by java.awt.Dialog
                  extended by javax.swing.JDialog
                      extended by dev.gui.JCDialog
                          extended by com.jp.protection.gui.dialogs.LicenseErrorDialog
All Implemented Interfaces:
java.awt.event.WindowListener, java.awt.image.ImageObserver, java.awt.MenuContainer, java.beans.beancontext.BeanContextProxy, java.beans.beancontext.BeanContextServiceRevokedListener, java.io.Serializable, java.util.EventListener, javax.accessibility.Accessible, javax.swing.RootPaneContainer, javax.swing.WindowConstants

public class LicenseErrorDialog
extends dev.gui.JCDialog

The dialog intended to show errors occurred during the license reading and validation

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class dev.gui.JCDialog
dev.gui.JCDialog.CloseController, dev.gui.JCDialog.TemporaryComponentHighlighter, dev.gui.JCDialog.WatermarkComponent
 
Nested classes/interfaces inherited from class javax.swing.JDialog
javax.swing.JDialog.AccessibleJDialog
 
Nested classes/interfaces inherited from class java.awt.Dialog
java.awt.Dialog.AccessibleAWTDialog
 
Nested classes/interfaces inherited from class java.awt.Window
java.awt.Window.AccessibleAWTWindow
 
Nested classes/interfaces inherited from class java.awt.Container
java.awt.Container.AccessibleAWTContainer
 
Nested classes/interfaces inherited from class java.awt.Component
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
 
Field Summary
(package private)  javax.swing.JButton btnOK
           
(package private)  java.awt.FlowLayout flowLayout2
           
(package private)  java.awt.FlowLayout flowLayout3
           
(package private)  java.awt.GridBagLayout gridBagLayout1
           
(package private)  javax.swing.JLabel lblContact
           
(package private)  dev.gui.HyperlinkLabel lblContactValue
           
(package private)  javax.swing.JLabel lblErrorText
           
(package private)  javax.swing.JLabel lblImage
           
(package private)  javax.swing.JLabel lblMessage
           
(package private)  javax.swing.JLabel lblSite
           
(package private)  dev.gui.HyperlinkLabel lblSiteValue
           
(package private)  javax.swing.JLabel lblThankYou
           
(package private)  javax.swing.JPanel pnlContact
           
(package private)  javax.swing.JPanel pnlContent
           
(package private)  javax.swing.JPanel pnlSite
           
(package private) static java.util.ResourceBundle res
           
 
Fields inherited from class dev.gui.JCDialog
fBeanContextChild, fCloseOnEscape, fDefaultFocusOwner, fInsetContentPane, fKeyEventDispatcher, fModalResult, fNeedSoftResizable, fSoftResizable, fWaitStateSupport, fWatermarkComponent, RESULT_CANCEL, RESULT_HELP, RESULT_NO, RESULT_NONE, RESULT_OK, RESULT_YES
 
Fields inherited from class javax.swing.JDialog
accessibleContext, rootPane, rootPaneCheckingEnabled
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Fields inherited from interface javax.swing.WindowConstants
DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, EXIT_ON_CLOSE, HIDE_ON_CLOSE
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
LicenseErrorDialog()
          Creates a new instance of the LicenseErrorDialog
LicenseErrorDialog(java.awt.Component anOwner)
          Creates a new instance of the LicenseErrorDialog
 
Method Summary
(package private)  void btnOK_actionPerformed(java.awt.event.ActionEvent e)
           
static void execute(java.awt.Component anOwner, java.lang.String aTitle, java.lang.String anErrorText)
          Creates and shows the dialog
static void execute(LicenseErrorDialog aDialog)
          Shows the dialog specified by parameter
 java.lang.String getContactPrompt()
          Returns contact prompt displayed by the dialog
 java.lang.String getContactText()
          Returns contact text displayed by the dialog
 java.lang.String getContactTooltipText()
          Returns contact tooltip text displayed by the dialog
 java.lang.String getContactURL()
          Returns contact URL displayed by the dialog
 java.lang.String getErrorText()
          Returns error text displayed by the dialog
 java.lang.String getMessage()
          Returns message displayed by the dialog
 java.lang.String getSiteText()
          Returns site text displayed by the dialog
 java.lang.String getSiteTooltipText()
          Returns site tooltip text displayed by the dialog
 java.lang.String getSiteURL()
          Returns site URL displayed by the dialog
 void setContactPrompt(java.lang.String aContactPrompt)
          Specifies contact prompt (e.g To obtain a valid license please contact...) to be displayed by the dialog
 void setContactText(java.lang.String aContactText)
          Specifies contact text to be displayed by the dialog
 void setContactTooltipText(java.lang.String aContactTooltipText)
          Specifies contact tooltip text to be displayed by the dialog
 void setContactURL(java.lang.String aContactURL)
          Specifies contact URL to be displayed by the dialog
 void setErrorText(java.lang.String anErrorText)
          Specifies error text to be displayed by the dialog
 void setMessage(java.lang.String aMessage)
          Specifies message to be displayed by the dialog
 void setSiteText(java.lang.String aSiteText)
          Specifies site text to be displayed by the dialog
 void setSiteTooltipText(java.lang.String aSiteTooltipText)
          Specifies site tooltip text to be displayed by the dialog
 void setSiteURL(java.lang.String aSiteURL)
          Specifies site URL to be displayed by the dialog
 void updateUI()
          Calls the updateUI() method of a dialog's content pane
 
Methods inherited from class dev.gui.JCDialog
canCancel, canClose, canUse, centerOnOwner, centerOnScreen, componentResized, dispose, doCancel, error, executeModal, executeModal, executeModal, getAdjustedSize, getBeanContext, getBeanContextProxy, getDefaultFocusOwner, getDialogMaximumSize, getDialogMinimumSize, getMessageTitle, getModalResult, getParentDialog, getParentFrame, getService, getService, getWatermarkComponent, hasVisiblePopups, initBeanContext, isCloseOnEscape, isCloseOnEscape, isInsetContentPane, isInUse, isSoftResizable, isWaitState, main, message, onAnyComponentKeyPressed, pack, prompt, prompt, releaseService, serviceRevoked, setBeanContext, setCloseOnEscape, setDefaultButton, setDefaultFocusOwner, setDialogMaximumSize, setDialogMinimumSize, setInsetContentPane, setModalResult, setResizable, setVisible, setWaitState, setWatermarkComponent, updateSizeToFitRange, useBegin, useEnd, warning, windowActivated, windowClosed, windowClosing, windowDeactivated, windowDeiconified, windowIconified, windowOpened
 
Methods inherited from class javax.swing.JDialog
addImpl, createRootPane, dialogInit, getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getJMenuBar, getLayeredPane, getRootPane, isDefaultLookAndFeelDecorated, isRootPaneCheckingEnabled, paramString, processWindowEvent, remove, setContentPane, setDefaultCloseOperation, setDefaultLookAndFeelDecorated, setGlassPane, setJMenuBar, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, update
 
Methods inherited from class java.awt.Dialog
addNotify, getTitle, hide, isModal, isResizable, isUndecorated, setModal, setTitle, setUndecorated, show
 
Methods inherited from class java.awt.Window
addPropertyChangeListener, addPropertyChangeListener, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, finalize, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getFocusTraversalKeys, getGraphicsConfiguration, getInputContext, getListeners, getLocale, getMostRecentFocusOwner, getOwnedWindows, getOwner, getToolkit, getWarningString, getWindowFocusListeners, getWindowListeners, getWindowStateListeners, isActive, isAlwaysOnTop, isFocusableWindow, isFocusCycleRoot, isFocused, isLocationByPlatform, isShowing, postEvent, processEvent, processWindowFocusEvent, processWindowStateEvent, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, setAlwaysOnTop, setBounds, setCursor, setFocusableWindowState, setFocusCycleRoot, setLocationByPlatform, setLocationRelativeTo, 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, getComponentZOrder, getContainerListeners, getFocusTraversalPolicy, getInsets, getLayout, getMaximumSize, getMinimumSize, getMousePosition, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paint, paintComponents, preferredSize, print, printComponents, processContainerEvent, remove, removeAll, removeContainerListener, removeNotify, setComponentZOrder, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, 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, firePropertyChange, firePropertyChange, firePropertyChange, 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, 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, isOpaque, 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, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, resize, resize, setBackground, setBounds, setComponentOrientation, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setMaximumSize, setMinimumSize, setName, setPreferredSize, 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

res

static java.util.ResourceBundle res

pnlContent

javax.swing.JPanel pnlContent

gridBagLayout1

java.awt.GridBagLayout gridBagLayout1

lblImage

javax.swing.JLabel lblImage

lblContact

javax.swing.JLabel lblContact

lblContactValue

dev.gui.HyperlinkLabel lblContactValue

lblSite

javax.swing.JLabel lblSite

lblSiteValue

dev.gui.HyperlinkLabel lblSiteValue

lblThankYou

javax.swing.JLabel lblThankYou

btnOK

javax.swing.JButton btnOK

pnlContact

javax.swing.JPanel pnlContact

pnlSite

javax.swing.JPanel pnlSite

flowLayout2

java.awt.FlowLayout flowLayout2

flowLayout3

java.awt.FlowLayout flowLayout3

lblErrorText

javax.swing.JLabel lblErrorText

lblMessage

javax.swing.JLabel lblMessage
Constructor Detail

LicenseErrorDialog

public LicenseErrorDialog(java.awt.Component anOwner)
Creates a new instance of the LicenseErrorDialog

Parameters:
anOwner - owner for the dialog

LicenseErrorDialog

public LicenseErrorDialog()
Creates a new instance of the LicenseErrorDialog

Method Detail

updateUI

public void updateUI()
Calls the updateUI() method of a dialog's content pane


btnOK_actionPerformed

void btnOK_actionPerformed(java.awt.event.ActionEvent e)

getMessage

public java.lang.String getMessage()
Returns message displayed by the dialog

Returns:
message displayed by the dialog

setMessage

public void setMessage(java.lang.String aMessage)
Specifies message to be displayed by the dialog

Parameters:
aMessage - message to be displayed by the dialog

getErrorText

public java.lang.String getErrorText()
Returns error text displayed by the dialog

Returns:
error text displayed by the dialog

setErrorText

public void setErrorText(java.lang.String anErrorText)
Specifies error text to be displayed by the dialog

Parameters:
anErrorText - error text to be displayed by the dialog

getContactPrompt

public java.lang.String getContactPrompt()
Returns contact prompt displayed by the dialog

Returns:
contact text displayed by the dialog

setContactPrompt

public void setContactPrompt(java.lang.String aContactPrompt)
Specifies contact prompt (e.g To obtain a valid license please contact...) to be displayed by the dialog

Parameters:
aContactPrompt - contact text to be displayed by the dialog

getContactText

public java.lang.String getContactText()
Returns contact text displayed by the dialog

Returns:
contact text displayed by the dialog

setContactText

public void setContactText(java.lang.String aContactText)
Specifies contact text to be displayed by the dialog

Parameters:
aContactText - contact text to be displayed by the dialog

getContactTooltipText

public java.lang.String getContactTooltipText()
Returns contact tooltip text displayed by the dialog

Returns:
contact tooltip text displayed by the dialog

setContactTooltipText

public void setContactTooltipText(java.lang.String aContactTooltipText)
Specifies contact tooltip text to be displayed by the dialog

Parameters:
aContactTooltipText - contact tooltip text to be displayed by the dialog

getContactURL

public java.lang.String getContactURL()
Returns contact URL displayed by the dialog

Returns:
contact URL displayed by the dialog

setContactURL

public void setContactURL(java.lang.String aContactURL)
Specifies contact URL to be displayed by the dialog

Parameters:
aContactURL - contact URL to be displayed by the dialog

getSiteText

public java.lang.String getSiteText()
Returns site text displayed by the dialog

Returns:
site text displayed by the dialog

setSiteText

public void setSiteText(java.lang.String aSiteText)
Specifies site text to be displayed by the dialog

Parameters:
aSiteText - site text to be displayed by the dialog

getSiteTooltipText

public java.lang.String getSiteTooltipText()
Returns site tooltip text displayed by the dialog

Returns:
site tooltip text displayed by the dialog

setSiteTooltipText

public void setSiteTooltipText(java.lang.String aSiteTooltipText)
Specifies site tooltip text to be displayed by the dialog

Parameters:
aSiteTooltipText - site tooltip text to be displayed by the dialog

getSiteURL

public java.lang.String getSiteURL()
Returns site URL displayed by the dialog

Returns:
site URL displayed by the dialog

setSiteURL

public void setSiteURL(java.lang.String aSiteURL)
Specifies site URL to be displayed by the dialog

Parameters:
aSiteURL - site URL to be displayed by the dialog

execute

public static void execute(LicenseErrorDialog aDialog)
Shows the dialog specified by parameter

Parameters:
aDialog - dialog to show

execute

public static void execute(java.awt.Component anOwner,
                           java.lang.String aTitle,
                           java.lang.String anErrorText)
Creates and shows the dialog

Parameters:
anOwner - owner for the dialog
aTitle - title for the dialog
anErrorText - error text to show