Getting a specified ViewEntry for an OTObject

1 view
Skip to first unread message

Aaron Unger

unread,
Apr 8, 2009, 4:04:23 PM4/8/09
to otrun...@googlegroups.com
Here's the setup:

In my otml, I have an OTOverlayWrapper object, with an OTOverlayWrapperView. It points to an OTMultiUser object which has a viewid specified.
  <OTOverlayWrapper resultsObject="${multiUser}" />
  <OTMultiUser local_id="multiUser" viewid="${some-view-entry}" />

In the OTOverlayWrapperView, I'd like to pop up a JFrame that displays the OTMultiUser object. If I get the subviewComponent like this:
  JComponent resultsSubview = createSubViewComponent(resultsObject);
I end up with the object rendered with a different view class (the one that comes in the first entry for that object class in the view entries list).

Is it possible to get the specified view entry ("some-view-entry") from the resultsObject so that I can pass it in to createSubViewComponent()?

-- Aaron

Sam Fentress

unread,
Apr 8, 2009, 4:09:08 PM4/8/09
to otrun...@googlegroups.com
In AbstractOTJComponentContainerView there is the method

createSubViewComponent(OTObject otObject, boolean useScrollPane, OTViewEntry viewEntry)

Does that not work for you?

Sam
Reply all
Reply to author
Forward
0 new messages