|
AdventNet CLI 2.0 API Specification | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--java.awt.Component
|
+--java.awt.Container
|
+--java.awt.Window
|
+--java.awt.Frame
|
+--javax.swing.JFrame
|
+--com.adventnet.telnet.telnetwindow.TelnetFrame
This class can be used to start an application that can be used like an ordinary Telnet Client to communicate with remote devices. Commands that are sent and recieved will be displayed in the Window that is opened. To write an application using the TelnetFrame you may use the following piece of code as an example:
TelnetFrame frame = new TelnetFrame();
frame.setHostName("localhost");
frame.setPortNo(23);
frame.setTitle("Telnet Window");
frame.setFontSize(12);
frame.setVisible(true);
Please note that the setVisible(true) method that opens the Window
for sending and receiving commands is called after other parameters
are set.
| Inner classes inherited from class javax.swing.JFrame |
javax.swing.JFrame.AccessibleJFrame |
| Fields inherited from class javax.swing.JFrame |
accessibleContext,
rootPane,
rootPaneCheckingEnabled |
| Fields inherited from class java.awt.Frame |
CROSSHAIR_CURSOR,
DEFAULT_CURSOR,
E_RESIZE_CURSOR,
HAND_CURSOR,
ICONIFIED,
MOVE_CURSOR,
N_RESIZE_CURSOR,
NE_RESIZE_CURSOR,
NORMAL,
NW_RESIZE_CURSOR,
S_RESIZE_CURSOR,
SE_RESIZE_CURSOR,
SW_RESIZE_CURSOR,
TEXT_CURSOR,
W_RESIZE_CURSOR,
WAIT_CURSOR |
| Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT,
CENTER_ALIGNMENT,
LEFT_ALIGNMENT,
RIGHT_ALIGNMENT,
TOP_ALIGNMENT |
| Constructor Summary | |
TelnetFrame()
Constructs a new Frame that is initially invisible. |
|
TelnetFrame(java.applet.Applet applet)
Constructs a new Frame that is initially invisible by passing an Applet as the argument. |
|
| Method Summary | |
void |
actionPerformed(java.awt.event.ActionEvent evt)
This method is internally used by the API which overrides the method in the Interface ActionListener and should not be invoked by the user. |
java.lang.String |
getEncoding()
Gets the specified character encoding name. |
int |
getFontSize()
Gets the font size of the Telnet Frame. |
java.awt.Image |
getFrameIconImage()
Gets the image to be displayed in the minimized icon for this frame. |
java.lang.String |
getFrameTitle()
Gets the title of the frame. |
java.awt.MenuBar |
getMenuBar()
Gets the MenuBar for this frame. |
int |
getSocketTimeout()
Gets the socket time-out. |
void |
init(javax.swing.JApplet applet)
This is used to initialize the applet. |
void |
keyPressed(java.awt.event.KeyEvent ke)
This method is internally used by the API which overrides the method in the Interface KeyListener and should not be invoked by the user. |
void |
keyReleased(java.awt.event.KeyEvent arg0)
This method is internally used by the API which overrides the method in the Interface KeyListener and should not be invoked by the user. |
void |
keyTyped(java.awt.event.KeyEvent arg0)
This method is internally used by the API which overrides the method in the Interface KeyListener and should not be invoked by the user. |
void |
run()
This method is internally used by the API which overrides the method in the Interface Runnable and should not be invoked by the user. |
void |
setEncoding(java.lang.String encoding)
Sets the specified character Encoding. |
void |
setFontSize(int fontSize)
Sets the font size in the telnet frame. |
void |
setFrameIconImage(java.awt.Image image)
Sets the image to displayed in the minimized icon for this frame. |
void |
setFrameTitle(java.lang.String title)
Sets the title for this frame to the specified string. |
void |
setHostName(java.lang.String hostName)
Sets the Remote Host name or IP address in dotted format. |
void |
setPortNo(int port)
Sets the Remote Port number in which the Telnet Server is running. |
void |
setSocketTimeout(int timeout)
Sets the socket time-out. |
void |
setVisible(boolean bl)
Shows or hides this component depending on the value of parameter bl. |
void |
start()
This should be called when the start method of the applet is called by the browser or applet viewer to inform this applet that it should start its execution. |
void |
stop()
This should be called when the stop method of the applet is called by the browser or applet viewer to inform this applet that it should stop its execution. |
| Methods inherited from class javax.swing.JFrame |
addImpl,
createRootPane,
frameInit,
getAccessibleContext,
getContentPane,
getDefaultCloseOperation,
getGlassPane,
getJMenuBar,
getLayeredPane,
getRootPane,
isRootPaneCheckingEnabled,
paramString,
processKeyEvent,
processWindowEvent,
remove,
setContentPane,
setDefaultCloseOperation,
setGlassPane,
setJMenuBar,
setLayeredPane,
setLayout,
setRootPane,
setRootPaneCheckingEnabled,
update |
| Methods inherited from class java.awt.Frame |
addNotify,
finalize,
getCursorType,
getFrames,
getIconImage,
getState,
getTitle,
isResizable,
remove,
removeNotify,
setCursor,
setIconImage,
setMenuBar,
setResizable,
setState,
setTitle |
| Methods inherited from class java.awt.Window |
addWindowListener,
applyResourceBundle,
applyResourceBundle,
dispose,
getFocusOwner,
getInputContext,
getLocale,
getOwnedWindows,
getOwner,
getToolkit,
getWarningString,
hide,
isShowing,
pack,
postEvent,
processEvent,
removeWindowListener,
setCursor,
show,
toBack,
toFront |
| Methods inherited from class java.awt.Container |
add,
add,
add,
add,
add,
addContainerListener,
countComponents,
deliverEvent,
doLayout,
findComponentAt,
findComponentAt,
getAlignmentX,
getAlignmentY,
getComponent,
getComponentAt,
getComponentAt,
getComponentCount,
getComponents,
getInsets,
getLayout,
getMaximumSize,
getMinimumSize,
getPreferredSize,
insets,
invalidate,
isAncestorOf,
layout,
list,
list,
locate,
minimumSize,
paint,
paintComponents,
preferredSize,
print,
printComponents,
processContainerEvent,
remove,
removeAll,
removeContainerListener,
setFont,
validate,
validateTree |
| Methods inherited from class java.awt.Component |
action,
add,
addComponentListener,
addFocusListener,
addInputMethodListener,
addKeyListener,
addMouseListener,
addMouseMotionListener,
addPropertyChangeListener,
addPropertyChangeListener,
bounds,
checkImage,
checkImage,
coalesceEvents,
contains,
contains,
createImage,
createImage,
disable,
disableEvents,
dispatchEvent,
enable,
enable,
enableEvents,
enableInputMethods,
firePropertyChange,
getBackground,
getBounds,
getBounds,
getColorModel,
getComponentOrientation,
getCursor,
getDropTarget,
getFont,
getFontMetrics,
getForeground,
getGraphics,
getHeight,
getInputMethodRequests,
getLocation,
getLocation,
getLocationOnScreen,
getName,
getParent,
getPeer,
getSize,
getSize,
getTreeLock,
getWidth,
getX,
getY,
gotFocus,
handleEvent,
hasFocus,
imageUpdate,
inside,
isDisplayable,
isDoubleBuffered,
isEnabled,
isFocusTraversable,
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,
processInputMethodEvent,
processMouseEvent,
processMouseMotionEvent,
removeComponentListener,
removeFocusListener,
removeInputMethodListener,
removeKeyListener,
removeMouseListener,
removeMouseMotionListener,
removePropertyChangeListener,
removePropertyChangeListener,
repaint,
repaint,
repaint,
repaint,
requestFocus,
reshape,
resize,
resize,
setBackground,
setBounds,
setBounds,
setComponentOrientation,
setDropTarget,
setEnabled,
setForeground,
setLocale,
setLocation,
setLocation,
setName,
setSize,
setSize,
show,
size,
toString,
transferFocus |
| Methods inherited from class java.lang.Object |
clone,
equals,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
| Constructor Detail |
public TelnetFrame()
public TelnetFrame(java.applet.Applet applet)
applet - the applet parameter.| Method Detail |
public java.awt.MenuBar getMenuBar()
public void setVisible(boolean bl)
bl - If true, shows this component; otherwise, hides this component.public void init(javax.swing.JApplet applet)
applet - the applet parameter.public void stop()
public void start()
public void keyPressed(java.awt.event.KeyEvent ke)
ke - the event that characterizes the action when a key is pressed.public void keyReleased(java.awt.event.KeyEvent arg0)
ke - the event that characterizes the action when a key is released.public void keyTyped(java.awt.event.KeyEvent arg0)
ke - the event that characterizes the action when a key is typed.public void actionPerformed(java.awt.event.ActionEvent evt)
ae - the event that characterizes the action invoked.public void run()
public void setHostName(java.lang.String hostName)
hostName - the remoteHost to connect.public void setPortNo(int port)
remotePort - the Remote Port to connect with.public void setFontSize(int fontSize)
fontSize - the font size to be set in the telnet frame.public int getFontSize()
public void setEncoding(java.lang.String encoding)
encoding - A character encoding name.public java.lang.String getEncoding()
public void setFrameTitle(java.lang.String title)
title - the title to be displayed in the frame's border.public java.lang.String getFrameTitle()
public void setFrameIconImage(java.awt.Image image)
image - the icon image to be displayed.public java.awt.Image getFrameIconImage()
public void setSocketTimeout(int timeout)
timeout - the socket time-out.public int getSocketTimeout()
|
AdventNet CLI 2.0 API Specification | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||