aspose file tools*
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes How to achieve the ability of future functionality enhancements of user interface? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "How to achieve the ability of future functionality enhancements of user interface?" Watch "How to achieve the ability of future functionality enhancements of user interface?" New topic
Author

How to achieve the ability of future functionality enhancements of user interface?

HiBob Chu
Ranch Hand

Joined: Aug 12, 2002
Posts: 86
Hello friends:
In my assignment instruction:
**********************************************
Creating the user interface
...
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.
**********************************************
Do your instruction has the same?
How to understand it? Who can give me any example
or advice to understand it?
[ November 27, 2002: Message edited by: HiBob Chu ]
Ge Zhang
Greenhorn

Joined: Jul 09, 2002
Posts: 4
Your name is similiar to that of one of my friends. Are you Chu Chang Geng or Hang Tou or Chu Ga Pi?
HiBob Chu
Ranch Hand

Joined: Aug 12, 2002
Posts: 86
Sorry I am not .
Where are you from?
Andrea Gazzarini
Ranch Hand

Joined: Sep 09, 2002
Posts: 125
Hi HiBob,
in my implementation, i have tried to abstract the presentation tier from the specified requiremente of the assignment. This in terms of:
- managed objects: actually there are flight objects with 8 or 9 attributes. The name and the number of these aren't hard-coded on my client: they are retrieved from the database;
- MVC implementation: The view component is completely light, managing all the actions related to view (for example exit from the application). All other actions are installed by the controller component, so if I want another menu item on the menubar, I code it in my controller and it then install it on the view. For Each relevant XXXGUI component I have supplied a related XXXModel interface with a DefaultXXXModel used for the actual implementation.
- Business Delegate: the client interact with a business delegate interface, which in turns hide to the presentation tier the way of retrieving the remote or local service. Actually the remote service uses RMI, but if tomorrow anyone wants to extend the application using EJB, it must supply a delegate interface implementor, changing the way to connect to the service.
I think "future enhancements" means something like this.
Hope it helps.


Regards,<br />Andrea<br /> <br /><a href="http://www.linkedin.com/in/andreagazzarini" target="_blank" rel="nofollow">Andrea Gazzarini</a><br />Skype ID : gazzax72<br />Google Talk ID : a.gazzarini@gmail.com<br /><a href="http://www.andreagazzarini.blogspot.com" target="_blank" rel="nofollow">My Blog</a>
Jawad Kakar
Ranch Hand

Joined: Oct 06, 2002
Posts: 82
Andrea,

Could you please give an example and make this a bit more clear(i.e XXXModel, DefaultXXXModel) and how do you use them?
Moreover in your desing, Managed Object is your Bookable interface or this is something different.
If yes then your Bookable interface does not have any method, it is an interface which is implemented by Flight, Car "for future enhancements"
Thank you
Jawad
Thomas Fly
Ranch Hand

Joined: Sep 09, 2002
Posts: 164
Implement a "Document-Driven Programming" design; i.e., "hard code" as little as possible (preferably nothing). And since you can use j2sdk1.4.1, a key element of your DDP design should be an XML configuration file.
See http://thomasfly.com/SCJD.


Fly by Night Consultants<br /> <blockquote><font size="1" face="Verdana, Arial">quote:</font><hr><i>I climbed on the back of a giant albatross<br />which flew through a crack in the cloud<br />to a place where happiness reigned...<br />all year 'round<br />the music played ever so loudly!</i><p><a href="http://thomasfly.com/songs/Traffic/Hole_in_my_Shoe_qt.htm" target="_blank" rel="nofollow">Hole in My Shoe</a><hr></blockquote>
HiBob Chu
Ranch Hand

Joined: Aug 12, 2002
Posts: 86
Hi above friends:
My design's structure is like this:
MyView is in charge of creating and maintain all GUI components and include their action classes.
MyController provides all action functions which will be called by the action classes in MyView. And MyController's functions can update
the components in MyView by the functions provided
by MyView like : getXXXModel();
MyModel is in charge of generating data which is required by MyController functions.
So in future, if you want to change view you only need to modify MyView or MyClient; If you want to change the source you only need to modify MyModel.
Is it not far from the requirement of the instruction?
But the "hard code" is a problem to me:
For example ,when I get the price value from JTable, I code like this:
view.getTableModel().getValueAt(row, 4);
Is this "hard code". If it is, how should I do?
regards
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to achieve the ability of future functionality enhancements of user interface?
 
Similar Threads
NX: GUI, functionality enhancements, essablish a framework?
FBN: Creating the user interface
What do they mean????
GUI Screenshot - Looking for advice, tips..
Dynamic data class