com.lightdev.app.ddnscl.ui
Class DynDnsPanel
java.lang.Object
java.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
com.lightdev.app.ddnscl.ui.DynDnsPanel
- All Implemented Interfaces:
- Accessible, ImageObserver, MenuContainer, Serializable
- public class DynDnsPanel
- extends JPanel
A user interface component to display an IP address stored at DynDns.org
along with related update settings.
- Version:
- 1, July 25, 2004
- Author:
- Ulrich Hilger, Light Development, http://www.lightdev.com, info@lightdev.com, published under the terms and conditions of the
GNU General Public License,
for details see file gpl.txt in the distribution
package of this software as well as any licensing notes
inside this documentation
- See Also:
- Serialized Form
|
Field Summary |
static String |
ACCOUNT_BOX_LABEL
constant that denotes the string to be used as text for the account box label |
static String |
AUTO_MODE_LABEL
constant that denotes the string to be used as text for the automatic IP check checkbox |
static String |
DEFAULT_IP
constant for a default IP address |
static String |
DOMAIN_LABEL
constant that denotes the string to be used as text for the domain label |
static String |
IP_BOX_LABEL
constant that denotes the string to be used as text for the ip box label |
static String |
LOG_BOX_LABEL
constant that denotes the string to be used as text for the log box label |
static String |
MINUTES_LABEL
constant that denotes the string to be used as text for the minutes label |
static String |
PASSWORD_LABEL
constant that denotes the string to be used as text for the password label |
static String |
PUBLIC_IP_BTN_TEXT
constant that denotes the string to be used as text for the button to acquire the public IP |
static String |
PUBLIC_IP_LABEL
constant that denotes the string to be used as a label for the public IP field |
static String |
STORE_IP_BTN_TEXT
constant that denotes the string to be used as text for the button to store the IP |
static String |
STORED_IP_LABEL
constant that denotes the string to be used as a label for the current IP field |
static String |
USER_NAME_LABEL
constant that denotes the string to be used as text for the user name label |
|
Method Summary |
void |
enableControls(boolean enabled)
switch enabled state of controls of this panel on or off |
String |
getDomain()
get the domain name that has been entered in this panel |
long |
getIdleMillis()
get the number of milliseconds to idle between two subsequent
IP checks during auto mode |
String |
getPw()
get the password that has been entered in this panel |
String |
getUserName()
get the user name that has been entered in this panel |
void |
setDomain(String dName)
set the domain name to be shown on this panel |
void |
setPublicIP(String ip)
set the public IP to be shown on this panel |
void |
setPw(String pw)
set the password to be shown on this panel |
void |
setStoredIP(String ip)
set the most recently stored IP to be shown on this panel |
void |
setUserName(String uName)
set the user name to be shown on this panel |
void |
showAutoModeActivationAs(boolean activated)
set related controls of this panel to reflect a given activation state |
| Methods inherited from class javax.swing.JComponent |
addAncestorListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBorder, getBounds, getClientProperty, getComponentGraphics, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getGraphics, getHeight, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPreferredSize, getPropertyChangeListeners, getPropertyChangeListeners, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isPreferredSizeSet, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFont, setForeground, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update |
| Methods inherited from class java.awt.Container |
add, add, add, add, add, addContainerListener, addImpl, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setLayout, 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, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusUpCycle |
PUBLIC_IP_LABEL
public static final String PUBLIC_IP_LABEL
- constant that denotes the string to be used as a label for the public IP field
- See Also:
- Constant Field Values
STORED_IP_LABEL
public static final String STORED_IP_LABEL
- constant that denotes the string to be used as a label for the current IP field
- See Also:
- Constant Field Values
PUBLIC_IP_BTN_TEXT
public static final String PUBLIC_IP_BTN_TEXT
- constant that denotes the string to be used as text for the button to acquire the public IP
- See Also:
- Constant Field Values
STORE_IP_BTN_TEXT
public static final String STORE_IP_BTN_TEXT
- constant that denotes the string to be used as text for the button to store the IP
- See Also:
- Constant Field Values
DOMAIN_LABEL
public static final String DOMAIN_LABEL
- constant that denotes the string to be used as text for the domain label
- See Also:
- Constant Field Values
USER_NAME_LABEL
public static final String USER_NAME_LABEL
- constant that denotes the string to be used as text for the user name label
- See Also:
- Constant Field Values
PASSWORD_LABEL
public static final String PASSWORD_LABEL
- constant that denotes the string to be used as text for the password label
- See Also:
- Constant Field Values
AUTO_MODE_LABEL
public static final String AUTO_MODE_LABEL
- constant that denotes the string to be used as text for the automatic IP check checkbox
- See Also:
- Constant Field Values
MINUTES_LABEL
public static final String MINUTES_LABEL
- constant that denotes the string to be used as text for the minutes label
- See Also:
- Constant Field Values
IP_BOX_LABEL
public static final String IP_BOX_LABEL
- constant that denotes the string to be used as text for the ip box label
- See Also:
- Constant Field Values
ACCOUNT_BOX_LABEL
public static final String ACCOUNT_BOX_LABEL
- constant that denotes the string to be used as text for the account box label
- See Also:
- Constant Field Values
LOG_BOX_LABEL
public static final String LOG_BOX_LABEL
- constant that denotes the string to be used as text for the log box label
- See Also:
- Constant Field Values
DEFAULT_IP
public static final String DEFAULT_IP
- constant for a default IP address
- See Also:
- Constant Field Values
DynDnsPanel
public DynDnsPanel(TextComponentStream logStream,
Preferences prefs)
- constructor
- Parameters:
logStream - TextComponentStream the stream that delivers loggin information to
the user interfaceprefs - Preferences the preferences to read persistent infomrmation from
setUserName
public void setUserName(String uName)
- set the user name to be shown on this panel
- Parameters:
uName - String the user name to show
setDomain
public void setDomain(String dName)
- set the domain name to be shown on this panel
- Parameters:
dName - String the domain name to show
setPw
public void setPw(String pw)
- set the password to be shown on this panel
- Parameters:
pw - String the unencrypted password
setPublicIP
public void setPublicIP(String ip)
- set the public IP to be shown on this panel
- Parameters:
ip - String the public IP to show
setStoredIP
public void setStoredIP(String ip)
- set the most recently stored IP to be shown on this panel
- Parameters:
ip - String the stored IP to show
enableControls
public void enableControls(boolean enabled)
- switch enabled state of controls of this panel on or off
- Parameters:
enabled - boolean true if controls are to be enabled, false if not
showAutoModeActivationAs
public void showAutoModeActivationAs(boolean activated)
- set related controls of this panel to reflect a given activation state
- Parameters:
activated - boolean true, if auto mode is activated, false if not
getPw
public String getPw()
- get the password that has been entered in this panel
- Returns:
- String the unencrypted password
getIdleMillis
public long getIdleMillis()
- get the number of milliseconds to idle between two subsequent
IP checks during auto mode
- Returns:
- long the number of milliseconds to idle
getDomain
public String getDomain()
- get the domain name that has been entered in this panel
- Returns:
- String the domain name
getUserName
public String getUserName()
- get the user name that has been entered in this panel
- Returns:
- String the user name