Index of /~jad1/comp204/button/
ButtonProxy.java
ButtonServer.java
ButtonFlyweight.java
README
ClassFiles.tar.gz
========================================================================
DATA FOR BUTTON APPLICATION IN JAVA:
ButtonProxy.java
used to model Proxy pattern. Only establishes connection with Server
if need be. left click always goes to server to get coordinate
information while right click only goes if button has not been right
clicked before
ButtonServer.java
server used for sending results of intense computations back to
remote client, in this case, the intense computation consists of the
following:
left click- engages retrieval of coordinate information, along
with which button has been clicked
right click- first time right click does a simple addition on the
coordinates and label of button and returns computed value to
proxy. subsequent right clicks on buttons with the same label will
give the computed result
ButtonFlyweight.java
implements the flyweight factory pattern by creating a grid of
Buttons which listens for right and left mouse clicks. Information is
sent to the button proxy class for information retrieval.
README
contains the above description
========================================================================