File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes OO, Patterns, UML and Refactoring and the fly likes What design pattern i should apply ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » OO, Patterns, UML and Refactoring
Bookmark "What design pattern i should apply ?" Watch "What design pattern i should apply ?" New topic

What design pattern i should apply ?

Nakataa Kokuyo
Ranch Hand

Joined: Jul 24, 2011
Posts: 184
Good day,

I have objects Team, Tab and Tab fields.

Work Description
- To create a form which have multiple tabs and each tab will have fields tied with it based on user configuration by disable/enable it.

Object Description
Team - group of person working on same dept , ie: Inside Sales, Outside Sales
Tab - few tab name which suppose appear in a form , ie : Contact, Function, Agreement
Tab fields - fields that attached to Tab Contact/function or agreement , the field can configure by user to enable/disable and also whether it is required field, ie :firstname, lastname

- administrator create a team - Inside sales, and assign fields by enable/disable that belong to which tab(tab do not created by admin, it have only 3 tabs as above mentioned)

How can i used design pattern to make the solution in better OOP sense ?

Thanks in advance !
Jan Cumps

Joined: Dec 20, 2006
Posts: 2491

Welcome to the Ranch, Nakataa!

OCUP UML fundamental and ITIL foundation
youtube channel
Madhan Sundararajan Devaki
Ranch Hand

Joined: Mar 18, 2011
Posts: 312

I believe, you need to first design the solution and then use Design Patterns to make the solution better/best.

Not many get the right opportunity !
Nakataa Kokuyo
Ranch Hand

Joined: Jul 24, 2011
Posts: 184
Thanks All, I really hope can learn from your how to do the design, appreciated your guidance how's way you start to design the solution !
Jimmy Clark
Ranch Hand

Joined: Apr 16, 2008
Posts: 2187
In order to effectively apply established object-oriented design patterns when designing a software application, you first need to understand the concept of "OO design patterns." Once you understand the concept, you can then start to learn specific patterns including their variations and details. After you learn "what" and "how" the patterns are beneficial, then you can start to consider them when working on a design.

Keep in mind that design patterns are typically best applied to designing large systems which will have many developers working together.

Nakataa, your assignment is to create a form. This is not a large system and it may be difficult to learn design patterns this way.

Good luck!
Nakataa Kokuyo
Ranch Hand

Joined: Jul 24, 2011
Posts: 184
Hi Jimmy Clark,

OO design pattern you mentioning is it like Singleton, Facade and so on ? the tiny work like create a form just required those common practice like inheritance or polymorphism will do ?

Any recommended book or website i should start off ?
Jimmy Clark
Ranch Hand

Joined: Apr 16, 2008
Posts: 2187
Design Patterns: Elements of Reusable Object-Oriented Software
Hardcover: 416 pages
Publisher: Addison-Wesley Professional
Language: English
ISBN-10: 0201633612
Don't get me started about those stupid light bulbs.
subject: What design pattern i should apply ?
Similar Threads
tabs in JSP and passing values between tabs
session issue with multi tabs in a browser
RichFaces TabPanle problem
onblur, onchange, button clicked
Disabling form controls from a specific tab