...I get by with a little help from my friends...
Implemented the MVC pattern for the overall architecture of FBN
...I get by with a little help from my friends...
The listeners registered with the components in the GUI class are actually declared in the View implementation class, and the references are passed to the GUI to be registered.
When the Search Flights listener (in the View) receives the event, it fires a method in the Controller, passing the String criteria.
Before invoking the method in the Controller, the View invokes methods in the GUI class in order to obtain the values selected by the user from each JComboBox.
(Model is an interface, implemented by Data.)
What happens if the GUI control that holds the value changes (say from combo box to text field? That will mean that both the GUI and the view will have to change, right?
Represents the application data and the business rules that govern access and modifications of this data.
...I get by with a little help from my friends...
I have a question about GUI design,It seems you got all score for this part. Did you use one Frame to show your Searh criteria (combobox),result and booking ? can you give us a hint? thanks.
I would like to have your advise on two things. Did you implement a thread cleaning up locks of dead clients? And also, did you use a rmi code base? Or did you provide de sub and the interface in the client jar?
...I get by with a little help from my friends...
The user should be able to select the origin and destination of flights, and the display should update to show only flights that satisfy those criteria. The user must be able to describe enter the string value "any" for the origin, destination, or both, so as to implement a wildcard-like feature.
"Carrier='SpeedyAir',Origin='SFO'"
...I get by with a little help from my friends...
...I get by with a little help from my friends...
Originally posted by Debra Bellmaine:
With regard to the lock/unlock signatures, I left them unchanged, and I left the lock/unlock methods in Data empty. I implemented the locking via a LockManager class. In local mode, the client invokes methods directly on Data, whose lock/unlock methods remain empty. I didn't want the client to have to be aware of mode, after the initial startup. So, the client does always invoke lock/unlock, but locking only really occurs in networked mode.
SCJP2; SCJD2;
Originally posted by cindy sung:
Hi all:
I've read through most of the previous posts and I find out that most experts advise that there should be a 'ConnectionFactory' object. It seems to me that it is used becuase they want to invoke lock method using like 'lockManager.lock(id, this)', where 'this' refers to the connection object instance. So record is associated to a client when locking.
But my question is why do we need to associate a record with a client for locking? Since a client can modify a record only after calling 'lock' then when 'unlock' is invoked on that record, it should be only the currect client who issues the command, and no one else can invoke 'unlock' before retrieving 'lock'. Am I right? So, in my program, why cann't I just grant the 'unlock' operation without checking the client ID?
Anyone pls kindly help me.
Thanks.
cindy
SCJP2; SCJD2;
Originally posted by cindy sung:
Hi Gosling:
Thank you very much.
Can you kindly please give me one example when a client would invoke 'unlock' before 'lock' is performed?
Thanks.
cindy
...I get by with a little help from my friends...
Your user interface should be designed with the expectation of future functionality enhancements, and it should establish a control scheme that will support this with minimal disruption to the users when this occurs.
...I get by with a little help from my friends...
Debra wrote:
When the Search Flights listener (in the View) receives the event, it fires a method in the Controller, passing the String criteria.
...I get by with a little help from my friends...
When there is a user gesture (user-event), the View loops through all Controllers and notifies them.
...I get by with a little help from my friends...
SCJP, SCWCD, OCA, OCP-DBA 9i, <a href="http://brainbench.com/transcript.jsp?pid=2232802" target="_blank" rel="nofollow">BCIP</a>, MCP, MCAD, MCSD.NET, MCDBA, MCTS (SQL 05), MCITP (DBD, DBA)
...I get by with a little help from my friends...