Java Doc for SessionUtilities.java in  » Groupware » Data-share » org » datashare » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Groupware » Data share » org.datashare 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.datashare.SessionUtilities

SessionUtilities
public class SessionUtilities (Code)
This is the repository for the methods that represent common activities for Rendezvous. All methods/attributes in that class are static.
author:
   Charles Wood
version:
   1.0


Field Summary
public static  intSocketRcvCmdPriority
    
public static  intSocketRcvDataPriority
    
public static  intSocketXmtRelativePriority
    
public static  StringimageRoot
     default location for HC images, should be prepended to the image name prior to retrieval.
public static  URLmissingPersonURL
     this is where we save a reference to the image to use when we cannot find a user's image.
static  HashtablescrollPaneHashtable
    


Method Summary
protected static  voidaddChannel(DefaultObjectInfo doi, DefaultMutableTreeNode sessionNode, DefaultTreeModel model, String clientClass)
    
protected static  voidaddConsumer(DefaultObjectInfo consumer, DefaultMutableTreeNode sessionNode, DefaultTreeModel model, String myClientClass)
    
protected static  voidaddSession(DefaultObjectInfo doi, DefaultMutableTreeNode sessionNode, DefaultTreeModel model, String myClientClass)
    
protected static  voidaddSpecialClient(DefaultObjectInfo doi, DefaultMutableTreeNode clientNode, DefaultTreeModel model, String myClientClass)
    
public static  byte[]convertObjectToByteArray(Object object)
     Serializes an object on the client side, avoids the problem we had of trying to send a true object through the server if the server did not have a classpath to the object. This way, the server only has to know that it is a byte[].
public static  voiddelay(int milliseconds)
    
public static  StringfindClientName(String clientKey, DefaultMutableTreeNode clientNode)
    
public static  DefaultMutableTreeNode[]getAllChannelsInSession(String sessionKeyValue, DefaultMutableTreeNode sessionNode)
     finds all Channels in the parentSession.
public static  StringgetAllSessionsHelpString()
    
public static  AppletgetApplet()
    
public static  DataShareConnectiongetCommandStatusConnection()
    
public static  intgetEnterpriseID()
    
public static  intgetHeight()
    
public static  ImageIcongetImageIcon(Container container, String name)
     returns an imageIcon (from the jar file if called from an applet) Note that the image name should be an absolute filename, for example: /com/ball/ads/hc/images/my.gif, and that the FILE NAMES ARE CASE SENSITIVE.
public static  ImageIcongetImageIcon(Frame frame, String name)
     returns an imageIcon (from the jar file if called from an applet) Note that the image name should be an absolute filename, for example: /com/ball/ads/hc/images/my.gif, and that the FILE NAMES ARE CASE SENSITIVE.
public static  booleangetIsApplication()
    
public static  LoggingInterfacegetLoggingInterface()
     returns the logging interface that we will use instead of doing System.out calls.
public static  ImagegetMyImage(Container container, String imageName)
     this method will load an image from jar files (and possibly other resources that the classloader knows about).
public static  FramegetParentFrame(Container container)
     finds the first Frame going back through a Container's ancestry, returns null if no Frame is found.
public static  StringgetServerIP()
    
public static  StringgetServername()
    
public static  StringgetShortTimeString(Date date)
    
public static  intgetTCPSocketReadTimeout()
    
public static  StringgetTimeString(Date date)
     returns a string for time that looks good! Symbol Meaning Presentation Example ------ ------- ------------ ------- G era designator (Text) AD y year (Number) 1996 M month in year (Text & Number) July & 07 d day in month (Number) 10 h hour in am/pm (1~12) (Number) 12 H hour in day (0~23) (Number) 0 m minute in hour (Number) 30 s second in minute (Number) 55 S millisecond (Number) 978 E day in week (Text) Tuesday D day in year (Number) 189 F day of week in month (Number) 2 (2nd Wed in July) w week in year (Number) 27 W week in month (Number) 2 a am/pm marker (Text) PM k hour in day (1~24) (Number) 24 K hour in am/pm (0~11) (Number) 0 z time zone (Text) Pacific Standard Time ' escape for text (Delimiter) '' single quote (Literal) ' The count of pattern letters determine the format. (Text): 4 or more pattern letters--use full form, < 4--use short or abbreviated form if one exists. (Number): the minimum number of digits.
public static  StringgetUserFullName()
    
public static  intgetUserID()
    
public static  ImagegetUserImage(String clientName)
    
public static  StringgetUserImageURL(String clientName)
    
public static  StringgetUserName()
    
public static  booleangetVerbose()
    
public static  intgetWidth()
    
public static  voidinsertNode(DefaultObjectInfo doi, DefaultMutableTreeNode sessionNode, DefaultMutableTreeNode clientNode, DefaultTreeModel model, String myClientClass)
     determines what type of object is to be inserted, then inserts it at as the last child at the appropriate place.
protected static  voidinsertNodeInto(DefaultMutableTreeNode node, DefaultMutableTreeNode parentNode, int index, DefaultTreeModel model)
    
public static  booleanisConsumerInSession(DefaultMutableTreeNode sessionNode, String consumerKey)
    
protected static  voidremoveChannel(DefaultObjectInfo doi, DefaultMutableTreeNode sessionNode, DefaultTreeModel model)
    
protected static  voidremoveConsumer(DefaultObjectInfo doi, DefaultMutableTreeNode sessionNode, DefaultTreeModel model)
    
public static  voidremoveNode(DefaultObjectInfo doi, DefaultMutableTreeNode sessionNode, DefaultMutableTreeNode clientNode, DefaultTreeModel model, String myClientClass)
    
protected static  voidremoveSession(DefaultObjectInfo doi, DefaultMutableTreeNode sessionNode, DefaultTreeModel model)
     removes a Session from our treeNode.
protected static  voidremoveSpecialClient(DefaultObjectInfo doi, DefaultMutableTreeNode clientNode, DefaultTreeModel model)
     removes a specialClient from our treeNode.
public static  ObjectretrieveObject(byte[] objectBytes)
     Converts a byte[] back to an object.
public static  voidscrollPaneDroppingsFixer(JScrollPane scrollPane)
     This method will allow any JScrollPane to repaint 250 mseconds after scrollBar adjustments made by a user have stopped.
public static  DefaultMutableTreeNodesearchForChannelInTree(String sessionKeyValue, String channelKeyValue, DefaultMutableTreeNode sessionNode)
     finds a Channel with the same keyValue as the one specified by looking in the Session with the same keyValue as the one specified as the parentSession.
protected static  DefaultMutableTreeNodesearchForClientInTree(String clientKeyValue, DefaultMutableTreeNode clientNode)
     finds a Client with the same keyValue as the one specified, returns null otherwise.
public static  DefaultMutableTreeNodesearchForConsumerInTree(String sessionKeyValue, String channelKeyValue, String consumerKeyValue, DefaultMutableTreeNode sessionNode)
     finds a Consumer with the same keyValue as the one specified by looking in the Session with the same keyValue as the one specified by the sessionKeyValue and the Channel with the same keyValue as the one specified by the enteKeyValue.
public static  DefaultMutableTreeNodesearchForSessionInTree(String sessionKeyValue, DefaultMutableTreeNode sessionNode)
     finds a Session with the same keyValue as the one specified, returns null otherwise.
public static  voidsetApplet(Applet applet)
    
public static  voidsetCommandStatusConnection(DataShareConnection thisCommandStatusConnection)
    
public static  voidsetEnterpriseID(int newEnterpriseID)
    
public static  voidsetFrameIcon(Frame frame)
    
public static  voidsetHeight(int newHeight)
    
public static  voidsetIsApplication(boolean newValue)
    
public static  voidsetLoggingInterface(LoggingInterface loggingInterface)
     sets the logging interface that we will use instead of doing System.out calls.
public static  voidsetServerIP(String newServerIP)
     Sets the server IP address; this should be used by the class that reads the command line parameters (for applications) or the applet code to set this value so that all other classes will be able to use getServerIP() when the server name is needed.
public static  voidsetServername(String newServername)
     Sets the server name; this should be used by the class that reads the command line parameters (for applications) or the applet code to set this value so that all other classes will be able to use getServername() when the server name is needed.
public static  voidsetTCPSocketReadTimeout(int newTimeoutValue)
    
public static  voidsetUserFullName(String newUserFullName)
    
public static  voidsetUserID(int newUserID)
    
public static  voidsetUserImageURL(String clientUniqueName, String clientName, String url)
    
public static  voidsetUserName(String newUserName)
    
public static  voidsetVerbose(boolean newValue)
    
public static  voidsetWidth(int newWidth)
    

Field Detail
SocketRcvCmdPriority
public static int SocketRcvCmdPriority(Code)



SocketRcvDataPriority
public static int SocketRcvDataPriority(Code)



SocketXmtRelativePriority
public static int SocketXmtRelativePriority(Code)



imageRoot
public static String imageRoot(Code)
default location for HC images, should be prepended to the image name prior to retrieval.



missingPersonURL
public static URL missingPersonURL(Code)
this is where we save a reference to the image to use when we cannot find a user's image. A URL was choosen because the image can then be loaded like all the other user images.



scrollPaneHashtable
static Hashtable scrollPaneHashtable(Code)





Method Detail
addChannel
protected static void addChannel(DefaultObjectInfo doi, DefaultMutableTreeNode sessionNode, DefaultTreeModel model, String clientClass)(Code)
adds a Channel to a Session in our treeNode
Parameters:
  doi - the object to be inserted



addConsumer
protected static void addConsumer(DefaultObjectInfo consumer, DefaultMutableTreeNode sessionNode, DefaultTreeModel model, String myClientClass)(Code)
adds a Consumer to a Channel that is in a Session in our treeNode
Parameters:
  doi - the object to be inserted



addSession
protected static void addSession(DefaultObjectInfo doi, DefaultMutableTreeNode sessionNode, DefaultTreeModel model, String myClientClass)(Code)
adds a Session to our treeNode
Parameters:
  doi - the object to be inserted



addSpecialClient
protected static void addSpecialClient(DefaultObjectInfo doi, DefaultMutableTreeNode clientNode, DefaultTreeModel model, String myClientClass)(Code)
adds a SpecialClient to our treeNode
Parameters:
  doi - the client object to be inserted



convertObjectToByteArray
public static byte[] convertObjectToByteArray(Object object) throws IOException(Code)
Serializes an object on the client side, avoids the problem we had of trying to send a true object through the server if the server did not have a classpath to the object. This way, the server only has to know that it is a byte[]. Convert back to an object via the retrieveObject() method.



delay
public static void delay(int milliseconds)(Code)
utility method, allows the calling method to delay the specified number of milliseconds
Parameters:
  milliseconds - number of milliseconds to delay



findClientName
public static String findClientName(String clientKey, DefaultMutableTreeNode clientNode)(Code)
finds clientName from clientKey
Parameters:
  clientKey - the clientKeyValue of a client
Parameters:
  clientNode - the node that contains all SpecialClients the clientName that corresponds to the specified clientKeyValue, or empty string if not found



getAllChannelsInSession
public static DefaultMutableTreeNode[] getAllChannelsInSession(String sessionKeyValue, DefaultMutableTreeNode sessionNode)(Code)
finds all Channels in the parentSession. returns null otherwise.
Parameters:
  sessionKeyValue - key value for the Session
Parameters:
  sessionNode - treeNode that contains all the Sessions the channelKeyValues for all Channels in the Session



getAllSessionsHelpString
public static String getAllSessionsHelpString()(Code)



getApplet
public static Applet getApplet()(Code)
accessor for the main applet instance the main applet instance



getCommandStatusConnection
public static DataShareConnection getCommandStatusConnection()(Code)
Retreives the command status connection for this client



getEnterpriseID
public static int getEnterpriseID()(Code)
accessor for the enterpriseID value (Client's enterprise ID number) the enterpriseID value



getHeight
public static int getHeight()(Code)
accessor for the height value (a generic attribute) the height value



getImageIcon
public static ImageIcon getImageIcon(Container container, String name)(Code)
returns an imageIcon (from the jar file if called from an applet) Note that the image name should be an absolute filename, for example: /com/ball/ads/hc/images/my.gif, and that the FILE NAMES ARE CASE SENSITIVE.
Parameters:
  container - a container that is loaded so it's class loader can be used toretrieve the image
Parameters:
  name - the filename of the image the specified imageIcon



getImageIcon
public static ImageIcon getImageIcon(Frame frame, String name)(Code)
returns an imageIcon (from the jar file if called from an applet) Note that the image name should be an absolute filename, for example: /com/ball/ads/hc/images/my.gif, and that the FILE NAMES ARE CASE SENSITIVE.
Parameters:
  frame - a frame that is loaded so it's class loader can be used toretrieve the image
Parameters:
  name - the filename of the image the specified imageIcon



getIsApplication
public static boolean getIsApplication()(Code)
accessor for the isApplication flag false if instance started as an applet, true if started as anapplication



getLoggingInterface
public static LoggingInterface getLoggingInterface()(Code)
returns the logging interface that we will use instead of doing System.out calls.



getMyImage
public static Image getMyImage(Container container, String imageName)(Code)
this method will load an image from jar files (and possibly other resources that the classloader knows about). Note that the image name should be an absolute filename, for example: /com/ball/ads/hc/images/my.gif
Parameters:
  container - used to load a resource
Parameters:
  imageName - the file name of the image the specified image



getParentFrame
public static Frame getParentFrame(Container container)(Code)
finds the first Frame going back through a Container's ancestry, returns null if no Frame is found. Useful when we need a modal dialog and have no reference to a parent frame.



getServerIP
public static String getServerIP()(Code)
accessor for the server machine IP address IP address for the server machine



getServername
public static String getServername()(Code)
accessor for the server machine name name for the server machine



getShortTimeString
public static String getShortTimeString(Date date)(Code)



getTCPSocketReadTimeout
public static int getTCPSocketReadTimeout()(Code)
accessor for TCPSocketReadTimeout current timeout value in milliseconds



getTimeString
public static String getTimeString(Date date)(Code)
returns a string for time that looks good! Symbol Meaning Presentation Example ------ ------- ------------ ------- G era designator (Text) AD y year (Number) 1996 M month in year (Text & Number) July & 07 d day in month (Number) 10 h hour in am/pm (1~12) (Number) 12 H hour in day (0~23) (Number) 0 m minute in hour (Number) 30 s second in minute (Number) 55 S millisecond (Number) 978 E day in week (Text) Tuesday D day in year (Number) 189 F day of week in month (Number) 2 (2nd Wed in July) w week in year (Number) 27 W week in month (Number) 2 a am/pm marker (Text) PM k hour in day (1~24) (Number) 24 K hour in am/pm (0~11) (Number) 0 z time zone (Text) Pacific Standard Time ' escape for text (Delimiter) '' single quote (Literal) ' The count of pattern letters determine the format. (Text): 4 or more pattern letters--use full form, < 4--use short or abbreviated form if one exists. (Number): the minimum number of digits. Shorter numbers are zero-padded to this amount. Year is handled specially; that is, if the count of 'y' is 2, the Year will be truncated to 2 digits. (Text & Number): 3 or over, use text, otherwise use number. Any characters in the pattern that are not in the ranges of ['a'..'z'] and ['A'..'Z'] will be treated as quoted text. For instance, characters like ':', '.', ' ', '#' and '@' will appear in the resulting time text even they are not embraced within single quotes.



getUserFullName
public static String getUserFullName()(Code)
accessor for the userFullName parameter value userFullName value



getUserID
public static int getUserID()(Code)
accessor for the userID value (Client's unique ID number) the userID value



getUserImage
public static Image getUserImage(String clientName)(Code)
used to retrieve the Image of a client, we must have had the client in our tree and they must have an imgage loaded on the server;



getUserImageURL
public static String getUserImageURL(String clientName)(Code)
used to retrieve the URL for a client's image, we must have had the client in our tree and they must have an image loaded on the server; URL string for image or empty string if URL not available



getUserName
public static String getUserName()(Code)
accessor for the userName parameter value userName value



getVerbose
public static boolean getVerbose()(Code)
accessor for the verbose flag false if user wants fewer console printouts, true otherwise



getWidth
public static int getWidth()(Code)
accessor for the width value (a generic attribute) the width value



insertNode
public static void insertNode(DefaultObjectInfo doi, DefaultMutableTreeNode sessionNode, DefaultMutableTreeNode clientNode, DefaultTreeModel model, String myClientClass)(Code)
determines what type of object is to be inserted, then inserts it at as the last child at the appropriate place.
Parameters:
  doi - the object to be inserted into the tree



insertNodeInto
protected static void insertNodeInto(DefaultMutableTreeNode node, DefaultMutableTreeNode parentNode, int index, DefaultTreeModel model)(Code)
inserts the specified node into the specified parent node at the specified index
Parameters:
  node - node to be inserted
Parameters:
  parentNode - node which will receive the node
Parameters:
  index - location in parentNode at which to insert the new node



isConsumerInSession
public static boolean isConsumerInSession(DefaultMutableTreeNode sessionNode, String consumerKey)(Code)
returns true if Consumer is found in any Channel in this Session



removeChannel
protected static void removeChannel(DefaultObjectInfo doi, DefaultMutableTreeNode sessionNode, DefaultTreeModel model)(Code)
removes a Channel from our treeNode
Parameters:
  doi - contains info about the Channel to remove



removeConsumer
protected static void removeConsumer(DefaultObjectInfo doi, DefaultMutableTreeNode sessionNode, DefaultTreeModel model)(Code)
removes a Consumer from our treeNode
Parameters:
  doi - contains info about the Consumer to remove



removeNode
public static void removeNode(DefaultObjectInfo doi, DefaultMutableTreeNode sessionNode, DefaultMutableTreeNode clientNode, DefaultTreeModel model, String myClientClass)(Code)
removes the specified node from our tree
Parameters:
  doi - contains info about the node to remove



removeSession
protected static void removeSession(DefaultObjectInfo doi, DefaultMutableTreeNode sessionNode, DefaultTreeModel model)(Code)
removes a Session from our treeNode.
Parameters:
  doi - contains info about the Sesison to remove



removeSpecialClient
protected static void removeSpecialClient(DefaultObjectInfo doi, DefaultMutableTreeNode clientNode, DefaultTreeModel model)(Code)
removes a specialClient from our treeNode.
Parameters:
  doi - contains info about the SpecialClient to remove



retrieveObject
public static Object retrieveObject(byte[] objectBytes) throws IOException, ClassNotFoundException(Code)
Converts a byte[] back to an object. This method should only be used on objects that were previously converted to the byte[] by the convertObjectToByteArray() method.



scrollPaneDroppingsFixer
public static void scrollPaneDroppingsFixer(JScrollPane scrollPane)(Code)
This method will allow any JScrollPane to repaint 250 mseconds after scrollBar adjustments made by a user have stopped. This is done so that the artifacts of scrolling (garbled text/images) gets cleaned up after every scroll pane is moved (adjusted)



searchForChannelInTree
public static DefaultMutableTreeNode searchForChannelInTree(String sessionKeyValue, String channelKeyValue, DefaultMutableTreeNode sessionNode)(Code)
finds a Channel with the same keyValue as the one specified by looking in the Session with the same keyValue as the one specified as the parentSession. returns null otherwise.
Parameters:
  sessionKeyValue - key value for the Session for this Channel
Parameters:
  channelKeyValue - key value for the Channel the node for the requested Channel



searchForClientInTree
protected static DefaultMutableTreeNode searchForClientInTree(String clientKeyValue, DefaultMutableTreeNode clientNode)(Code)
finds a Client with the same keyValue as the one specified, returns null otherwise.
Parameters:
  clientKeyValue - the key value for the Client the node for the requested Client



searchForConsumerInTree
public static DefaultMutableTreeNode searchForConsumerInTree(String sessionKeyValue, String channelKeyValue, String consumerKeyValue, DefaultMutableTreeNode sessionNode)(Code)
finds a Consumer with the same keyValue as the one specified by looking in the Session with the same keyValue as the one specified by the sessionKeyValue and the Channel with the same keyValue as the one specified by the enteKeyValue. returns null otherwise.
Parameters:
  sessionKeyValue - key value for the Session to look in
Parameters:
  channelKeyValue - key value for the Channel to look in
Parameters:
  consumerKeyValue - key value for the Consumer to find the node for the requested Consumer



searchForSessionInTree
public static DefaultMutableTreeNode searchForSessionInTree(String sessionKeyValue, DefaultMutableTreeNode sessionNode)(Code)
finds a Session with the same keyValue as the one specified, returns null otherwise.
Parameters:
  sessionKeyValue - key value for the Session, all Session names must be unique
Parameters:
  sessionNode - the top level of all Sessions, used as the starting point for the search the node that corresponds to the requested Session



setApplet
public static void setApplet(Applet applet)(Code)
sets the main applet instance
Parameters:
  applet - a reference to the main applet instance



setCommandStatusConnection
public static void setCommandStatusConnection(DataShareConnection thisCommandStatusConnection)(Code)
Sets the command status connection for this client (used to communicate with the server)



setEnterpriseID
public static void setEnterpriseID(int newEnterpriseID)(Code)
sets the enterpriseID value
Parameters:
  newEnterpriseID - enterpriseID value



setFrameIcon
public static void setFrameIcon(Frame frame)(Code)
sets the frame's Icon to our standard Icon
Parameters:
  frame -



setHeight
public static void setHeight(int newHeight)(Code)
sets the height value
Parameters:
  newHeight - height value



setIsApplication
public static void setIsApplication(boolean newValue)(Code)
sets the isApplication attribute
Parameters:
  newValue - newValue to be set into the isApplication flag



setLoggingInterface
public static void setLoggingInterface(LoggingInterface loggingInterface)(Code)
sets the logging interface that we will use instead of doing System.out calls. this will provide more control over what actually gets to the console without having to remove all the System.out calls.



setServerIP
public static void setServerIP(String newServerIP)(Code)
Sets the server IP address; this should be used by the class that reads the command line parameters (for applications) or the applet code to set this value so that all other classes will be able to use getServerIP() when the server name is needed.
Parameters:
  newServername - IP address of the server



setServername
public static void setServername(String newServername)(Code)
Sets the server name; this should be used by the class that reads the command line parameters (for applications) or the applet code to set this value so that all other classes will be able to use getServername() when the server name is needed.
Parameters:
  newServername - the name or IP address of the server



setTCPSocketReadTimeout
public static void setTCPSocketReadTimeout(int newTimeoutValue)(Code)
sets the TCPSocketReadTimeout attribute
Parameters:
  newTimeoutValue - set into TCPSocketReadTimeout



setUserFullName
public static void setUserFullName(String newUserFullName)(Code)
sets the userFullName value
Parameters:
  newUserFullName - userFullName value



setUserID
public static void setUserID(int newUserID)(Code)
sets the userID value
Parameters:
  newUserID - userID value



setUserImageURL
public static void setUserImageURL(String clientUniqueName, String clientName, String url)(Code)
used when an image for a user is to be saved



setUserName
public static void setUserName(String newUserName)(Code)
sets the userName value
Parameters:
  newUserName - userName value



setVerbose
public static void setVerbose(boolean newValue)(Code)
sets the verbose attribute
Parameters:
  newValue - set to true to select lots of details on the console, false otherwise



setWidth
public static void setWidth(int newWidth)(Code)
sets the width value
Parameters:
  newWidth - width value



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.