Dive into Oracle ADF

Send me a mail
 Dive into Oracle ADF   Click to see the XML version of this web page.   (Updated: 2/3/2008; 8:11:48 PM.)
Tips and tricks from Steve Muench on Oracle ADF Framework and JDeveloper IDE

Search blog with Google:
 

Search BC4J JavaDoc:
 

February 2003
Sun Mon Tue Wed Thu Fri Sat
            1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28  
Jan   Mar

Get Firefox!

Saturday, February 08, 2003

"Why can't I find the post-state of a View Row? Shouldn't there be a simple API for this?"

We don't expose getPostState() at the VO Row level because in general it's not well-defined.
 
If you have a VO with three entity usages, it is possible for multiple usages to be in multiple post-states. For example, you might have a view object row showing information from an Order, from a Customer who placed the order, and from an Agent assigned to review the order. If you've modified Customer attributes in the row, added for the first time Agent information to the row, and left the Order information untouched, you would have:
  • Order EO instance "behind" the OrderSummaryView row is STATUS_UNMODIFIED
  • Customer EO instance is STATUS_MODIFIED
  • Agent EO instance is STATUS_NEW
It's hard to say in this case what the status of the OrderSummaryView row is. It's kind of STATUS_MIXED.
 
However, by overridding the ViewRowImpl class for this OrderSummary view object, you could expose a custom method on the row level that indicates what makes sense as a ViewRow status for your application. Or, you could subclass the oracle.jbo.server.ViewRowImpl class with a clever overridden implementation of a row state method done in a generic way, and then choose when to expose it on appropriate view object's that require it in your application.

11:26:38 AM    



Don't like our default key bindings for your favorite functionality? Want to know, change, or assign the keyboard key accelerator for any JDeveloper IDE function?

As my older daughter says, "Easy peasy lemon squeezy!" Just visit the Tools | Preferences... | Accelerators preference panel, and go to town. Sometimes just browsing the functions that are available in that panel, you might discover some hidden feature of JDeveloper you never knew existed.

I recently was building some Swing user interfaces where this came in handy. I was changing the GridBagLayout geometry management settings about groups of fields on my panel and I realized that by assigning a keyboard shortcut to operations like Fill Horiztonal and Weight Horizontal I was able to accomplish things more quickly without having to go up to the toolbar.


8:46:27 AM    


© Copyright 2008 Steve Muench.