aspose file tools*
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes Paging for search results & other clarifications Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "Paging for search results & other clarifications" Watch "Paging for search results & other clarifications" New topic
Author

Paging for search results & other clarifications

Sathya Sankar
Ranch Hand

Joined: Sep 16, 2000
Posts: 67
Hi,
I need a few clarifications:
1. Should paging for search results be provided or is it ok to display all the results of the search in ascroll pane?
2. Can class hierarchy of Data class be changed? I'd like to draw out all the public methods of the Data class into an interface and make Data implement that interface. This way, I could have a RemoteData that also implements the interface providing all the public methods of the Data class. The RemoteData class is the data abstraction for remote clients.
3. The instructions for JCD states that "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".
What is meant by this?
Thanks.


SCJP, SCJD, SCWCD 1.3, SCWCD 1.4, SCBCD
Andrew Monkhouse
author and jackaroo
Marshal Commander

Joined: Mar 28, 2003
Posts: 11509
    
  95

Hi gsatsan,
Welcome to JavaRanch. We don't have many rules, but one we do have is that you must have both a first name and a last name in your displayed name. This is specified in the JavaRanch naming policy. Please change your displayed name so that you have both a first and last name. You may change your displayed name here.
1. Should paging for search results be provided or is it ok to display all the results of the search in ascroll pane?

A scroll pane should be fine. I used one and got 100% for my GUI.
2. Can class hierarchy of Data class be changed? I'd like to draw out all the public methods of the Data class into an interface and make Data implement that interface. This way, I could have a RemoteData that also implements the interface providing all the public methods of the Data class. The RemoteData class is the data abstraction for remote clients.

I assume you are talking about FBNS since this doesnt apply to the other assignments.
I think that any changes to the Data class which might break an existing client would be wrong.
However since Data class does not currently extend or implement any explicit classes, adding your own interface will not break anything. So I think that this is OK.
The caveat is the statement that the provided classes are complete (with the exception of specific changes we have to make). Given that the classes are complete, I think we really should try to avoid any changes to them. You may have a valid reason for making your modification, so as long as it is well documented, you should be OK.
Note that adding new exceptions to the methods provided in Data class would, in my opinion, be very wrong, as this could break existing clients.
3. The instructions for JCD states that "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".
What is meant by this?

Take a look at this recent topic: FBN: Creating the user interface
Regards, Andrew
[ September 08, 2003: Message edited by: Andrew Monkhouse ]

The Sun Certified Java Developer Exam with J2SE 5: paper version from Amazon, PDF from Apress, Online reference: Books 24x7 Personal blog
Sathya Sankar
Ranch Hand

Joined: Sep 16, 2000
Posts: 67
Andrew - Thanks for the clarification. And I've changed my display name too
Andrew Monkhouse
author and jackaroo
Marshal Commander

Joined: Mar 28, 2003
Posts: 11509
    
  95

Excellent, thankyou.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Paging for search results & other clarifications