org.lyra.Interface
Class HostCreateDialog

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 org.lyra.Interface.HostCreateDialog
All Implemented Interfaces:
java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, java.lang.Runnable, javax.accessibility.Accessible, javax.swing.RootPaneContainer, javax.swing.WindowConstants

public class HostCreateDialog
extends javax.swing.JDialog
implements java.lang.Runnable

The ability to create and designate a host for connection. Since Lyra can support multiple hosts, this screen is separate from the the general settings screen.

Version:
1.0.5, %Revision, 174%, %LastChangedDate, 27/10/12 3:33PM%
Author:
Martin Foster
See Also:
Serialized Form

Nested Class Summary
private  class HostCreateDialog.Interact
          A class dedicated to the action handling for the org.lyra.Host.Create' class.
 
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, java.awt.Dialog.ModalExclusionType, java.awt.Dialog.ModalityType
 
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.BaselineResizeBehavior, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
 
Field Summary
private  javax.swing.JButton buttonCancel
           
private  javax.swing.JButton buttonPathname
           
private  javax.swing.JButton buttonSave
           
private  javax.swing.JButton buttonTest
           
private  javax.swing.JCheckBox checkEnable
           
private  javax.swing.JCheckBox checkExecutable
           
private  javax.swing.JTextField fieldArguments
           
private  javax.swing.JTextField fieldHost
           
private  javax.swing.JTextField fieldIdentifier
           
private  javax.swing.JPasswordField fieldPassword
           
private  javax.swing.JTextField fieldPathname
           
private  javax.swing.JTextField fieldPort
           
private  java.util.Map<java.lang.String,java.lang.String> Host
           
private  javax.swing.JLabel iconResize
           
private  javax.swing.JPanel jContentPane
           
private  javax.swing.JLabel labelArguments
           
private  javax.swing.JLabel labelEnable
           
private  javax.swing.JLabel labelExecutable
           
private  javax.swing.JLabel labelHost
           
private  javax.swing.JLabel labelIdentifier
           
private  javax.swing.JLabel labelPassword
           
private  javax.swing.JLabel labelPathname
           
private  javax.swing.JLabel labelPort
           
private  java.util.Map<java.lang.String,java.lang.String> Lang
           
private  HostCreateDialog.Interact Listener
           
private  Ledger Logger
           
private  javax.swing.JDialog myFrame
           
private  javax.swing.JPanel panelActions
           
private  javax.swing.JPanel panelDetails
           
private  javax.swing.JPanel panelExecute
           
private  javax.swing.JPanel panelOptional
           
private  javax.swing.JPanel panelPathname
           
private  javax.swing.JPanel panelStatus
           
private  javax.swing.JPanel panelUser
           
private  java.awt.Window Parent
           
private  boolean Process
           
private static long serialVersionUID
           
private  java.lang.Thread Waitor
           
 
Fields inherited from class javax.swing.JDialog
accessibleContext, rootPane, rootPaneCheckingEnabled
 
Fields inherited from class java.awt.Dialog
DEFAULT_MODALITY_TYPE
 
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
private HostCreateDialog(Ledger logger, java.util.Map<java.lang.String,java.lang.String> lang, java.awt.Window parent)
          Default constructor class for visual editors.
 
Method Summary
private  javax.swing.JButton getButtonCancel()
          This method initialises buttonCancel
private  javax.swing.JButton getButtonPathname()
          This method initialises buttonPathname
private  javax.swing.JButton getButtonSave()
          This method initialises buttonSave
private  javax.swing.JButton getButtonTest()
          This method initialises buttonTest
private  javax.swing.JCheckBox getCheckEnable()
          This method initialises checkEnable
private  javax.swing.JCheckBox getCheckExecutable()
          This method initialises checkExecutable
private  javax.swing.JTextField getFieldArguments()
          This method initialises fieldArguments
private  javax.swing.JTextField getFieldHost()
          This method initialises fieldHost
private  javax.swing.JTextField getFieldIdentifier()
          This method initialises fieldIdentifier
private  javax.swing.JPasswordField getFieldPassword()
          This method initialises fieldPassword
private  javax.swing.JTextField getFieldPathname()
          This method initialises fieldPathname
private  javax.swing.JTextField getFieldPort()
          This method initialises fieldPort
static java.util.Map<java.lang.String,java.lang.String> getHostDetails(Ledger logger, java.util.Map<java.lang.String,java.lang.String> lang, java.awt.Window parent)
          Element which will deal with the creation of the class instance and extracting the information prior to returning it to the calling program.
private  javax.swing.JLabel getIconResize()
          This method initialises iconResize
private  javax.swing.JPanel getJContentPane()
          This method initialises jContentPane
private  javax.swing.JLabel getLabelArguments()
          This method initialises labelArguments
private  javax.swing.JLabel getLabelEnable()
          This method initialises labelEnable
private  javax.swing.JLabel getLabelExecutable()
          This method initialises labelExecutable
private  javax.swing.JLabel getLabelHost()
          This method initialises labelHost
private  javax.swing.JLabel getLabelIdentifier()
          This method initialises labelIdentifier
private  javax.swing.JLabel getLabelPassword()
          This method initialises labelPassword
private  javax.swing.JLabel getLabelPathname()
          This method initialises labelPathname
private  javax.swing.JLabel getLabelPort()
          This method initialises labelPort
private  javax.swing.JPanel getPanelActions()
          This method initialises panelActions
private  javax.swing.JPanel getPanelDetails()
          This method initialises panelDetails
private  javax.swing.JPanel getPanelExecute()
          This method initialises panelExecute
private  javax.swing.JPanel getPanelOptional()
          This method initialises panelOptional
private  javax.swing.JPanel getPanelPathname()
          This method initialises panelPathname
private  javax.swing.JPanel getPanelRow(javax.swing.JLabel label, javax.swing.JComponent widget)
          This method initialises a JPanel component providing row elements.
private  javax.swing.JPanel getPanelStatus()
          This method initialises panelStatus
private  javax.swing.JPanel getPanelUser()
          This method initialises panelUser
private  void initDialog()
          This method initialises this
 void run()
          This method will wait out until the HashMap is defined.
 
Methods inherited from class javax.swing.JDialog
addImpl, createRootPane, dialogInit, getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getGraphics, getJMenuBar, getLayeredPane, getRootPane, getTransferHandler, isDefaultLookAndFeelDecorated, isRootPaneCheckingEnabled, paramString, processWindowEvent, remove, repaint, setContentPane, setDefaultCloseOperation, setDefaultLookAndFeelDecorated, setGlassPane, setJMenuBar, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, setTransferHandler, update
 
Methods inherited from class java.awt.Dialog
addNotify, getModalityType, getTitle, hide, isModal, isResizable, isUndecorated, setModal, setModalityType, setResizable, setTitle, setUndecorated, setVisible, show, toBack
 
Methods inherited from class java.awt.Window
addPropertyChangeListener, addPropertyChangeListener, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, dispose, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getFocusTraversalKeys, getGraphicsConfiguration, getIconImages, getInputContext, getListeners, getLocale, getModalExclusionType, getMostRecentFocusOwner, getOwnedWindows, getOwner, getOwnerlessWindows, getToolkit, getWarningString, getWindowFocusListeners, getWindowListeners, getWindows, getWindowStateListeners, isActive, isAlwaysOnTop, isAlwaysOnTopSupported, isFocusableWindow, isFocusCycleRoot, isFocused, isLocationByPlatform, isShowing, pack, paint, postEvent, processEvent, processWindowFocusEvent, processWindowStateEvent, removeNotify, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, reshape, setAlwaysOnTop, setBounds, setBounds, setCursor, setFocusableWindowState, setFocusCycleRoot, setIconImage, setIconImages, setLocationByPlatform, setLocationRelativeTo, setMinimumSize, setModalExclusionType, setSize, setSize, 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, paintComponents, preferredSize, print, printComponents, processContainerEvent, remove, removeAll, removeContainerListener, 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, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, 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, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resize, resize, setBackground, setComponentOrientation, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setMaximumSize, setName, setPreferredSize, show, size, toString, transferFocus, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

Lang

private java.util.Map<java.lang.String,java.lang.String> Lang

Host

private java.util.Map<java.lang.String,java.lang.String> Host

Listener

private HostCreateDialog.Interact Listener

Waitor

private java.lang.Thread Waitor

Process

private boolean Process

Logger

private Ledger Logger

Parent

private java.awt.Window Parent

myFrame

private javax.swing.JDialog myFrame

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

jContentPane

private javax.swing.JPanel jContentPane

panelUser

private javax.swing.JPanel panelUser

panelDetails

private javax.swing.JPanel panelDetails

labelIdentifier

private javax.swing.JLabel labelIdentifier

fieldIdentifier

private javax.swing.JTextField fieldIdentifier

labelHost

private javax.swing.JLabel labelHost

fieldHost

private javax.swing.JTextField fieldHost

labelPort

private javax.swing.JLabel labelPort

fieldPort

private javax.swing.JTextField fieldPort

panelOptional

private javax.swing.JPanel panelOptional

labelEnable

private javax.swing.JLabel labelEnable

checkEnable

private javax.swing.JCheckBox checkEnable

labelPassword

private javax.swing.JLabel labelPassword

fieldPassword

private javax.swing.JPasswordField fieldPassword

panelExecute

private javax.swing.JPanel panelExecute

labelExecutable

private javax.swing.JLabel labelExecutable

checkExecutable

private javax.swing.JCheckBox checkExecutable

labelPathname

private javax.swing.JLabel labelPathname

panelPathname

private javax.swing.JPanel panelPathname

fieldPathname

private javax.swing.JTextField fieldPathname

buttonPathname

private javax.swing.JButton buttonPathname

labelArguments

private javax.swing.JLabel labelArguments

fieldArguments

private javax.swing.JTextField fieldArguments

panelActions

private javax.swing.JPanel panelActions

buttonTest

private javax.swing.JButton buttonTest

buttonSave

private javax.swing.JButton buttonSave

buttonCancel

private javax.swing.JButton buttonCancel

panelStatus

private javax.swing.JPanel panelStatus

iconResize

private javax.swing.JLabel iconResize
Constructor Detail

HostCreateDialog

private HostCreateDialog(Ledger logger,
                         java.util.Map<java.lang.String,java.lang.String> lang,
                         java.awt.Window parent)
Default constructor class for visual editors. Not used by the normal application changeover.

Parameters:
logger - Ledger instance for logging actions.
lang - Map containing language elements.
parent - Frame to block.
Method Detail

getHostDetails

public static java.util.Map<java.lang.String,java.lang.String> getHostDetails(Ledger logger,
                                                                              java.util.Map<java.lang.String,java.lang.String> lang,
                                                                              java.awt.Window parent)
Element which will deal with the creation of the class instance and extracting the information prior to returning it to the calling program.

Parameters:
logger - Ledger instance for logging actions.
lang - Map containing language elements.
parent - Frame to block.
Returns:
Map containing host connection details.

run

public void run()
This method will wait out until the HashMap is defined. If not it will sleep until interrupted.

Specified by:
run in interface java.lang.Runnable

initDialog

private void initDialog()
This method initialises this


getJContentPane

private javax.swing.JPanel getJContentPane()
This method initialises jContentPane

Returns:
javax.swing.JPanel

getPanelDetails

private javax.swing.JPanel getPanelDetails()
This method initialises panelDetails

Returns:
javax.swing.JPanel

getFieldIdentifier

private javax.swing.JTextField getFieldIdentifier()
This method initialises fieldIdentifier

Returns:
javax.swing.JTextField

getFieldHost

private javax.swing.JTextField getFieldHost()
This method initialises fieldHost

Returns:
javax.swing.JTextField

getFieldPathname

private javax.swing.JTextField getFieldPathname()
This method initialises fieldPathname

Returns:
javax.swing.JTextField

getFieldArguments

private javax.swing.JTextField getFieldArguments()
This method initialises fieldArguments

Returns:
javax.swing.JTextField

getFieldPort

private javax.swing.JTextField getFieldPort()
This method initialises fieldPort

Returns:
javax.swing.JTextField

getFieldPassword

private javax.swing.JPasswordField getFieldPassword()
This method initialises fieldPassword

Returns:
javax.swing.JPasswordField

getPanelActions

private javax.swing.JPanel getPanelActions()
This method initialises panelActions

Returns:
javax.swing.JPanel

getButtonTest

private javax.swing.JButton getButtonTest()
This method initialises buttonTest

Returns:
javax.swing.JButton

getButtonSave

private javax.swing.JButton getButtonSave()
This method initialises buttonSave

Returns:
javax.swing.JButton

getButtonCancel

private javax.swing.JButton getButtonCancel()
This method initialises buttonCancel

Returns:
javax.swing.JButton

getButtonPathname

private javax.swing.JButton getButtonPathname()
This method initialises buttonPathname

Returns:
javax.swing.JButton

getPanelUser

private javax.swing.JPanel getPanelUser()
This method initialises panelUser

Returns:
javax.swing.JPanel

getPanelPathname

private javax.swing.JPanel getPanelPathname()
This method initialises panelPathname

Returns:
javax.swing.JPanel

getPanelOptional

private javax.swing.JPanel getPanelOptional()
This method initialises panelOptional

Returns:
javax.swing.JPanel

getPanelExecute

private javax.swing.JPanel getPanelExecute()
This method initialises panelExecute

Returns:
javax.swing.JPanel

getCheckEnable

private javax.swing.JCheckBox getCheckEnable()
This method initialises checkEnable

Returns:
javax.swing.JCheckBox

getCheckExecutable

private javax.swing.JCheckBox getCheckExecutable()
This method initialises checkExecutable

Returns:
javax.swing.JCheckBox

getIconResize

private javax.swing.JLabel getIconResize()
This method initialises iconResize

Returns:
javax.swing.JLabel

getLabelEnable

private javax.swing.JLabel getLabelEnable()
This method initialises labelEnable

Returns:
javax.swing.JLabel

getLabelHost

private javax.swing.JLabel getLabelHost()
This method initialises labelHost

Returns:
javax.swing.JLabel

getLabelIdentifier

private javax.swing.JLabel getLabelIdentifier()
This method initialises labelIdentifier

Returns:
javax.swing.JLabel

getLabelPassword

private javax.swing.JLabel getLabelPassword()
This method initialises labelPassword

Returns:
javax.swing.JLabel

getLabelPort

private javax.swing.JLabel getLabelPort()
This method initialises labelPort

Returns:
javax.swing.JLabel

getLabelPathname

private javax.swing.JLabel getLabelPathname()
This method initialises labelPathname

Returns:
javax.swing.JLabel

getLabelArguments

private javax.swing.JLabel getLabelArguments()
This method initialises labelArguments

Returns:
javax.swing.JLabel

getLabelExecutable

private javax.swing.JLabel getLabelExecutable()
This method initialises labelExecutable

Returns:
javax.swing.JLabel

getPanelRow

private javax.swing.JPanel getPanelRow(javax.swing.JLabel label,
                                       javax.swing.JComponent widget)
This method initialises a JPanel component providing row elements.

Parameters:
label - JLabel instance which will be resized.
widget - JComponent instance which will be added as-is.
Returns:
JPanel containing the elements properly established.

getPanelStatus

private javax.swing.JPanel getPanelStatus()
This method initialises panelStatus

Returns:
javax.swing.JPanel