Skip to main content

Some general probs

1 reply [Last post]
harsha973
Offline
Joined: 2010-05-05
Points: 0

Hi,

I'm having some probs regarding the OCAP Applications

# 1) I downloaded some applications from the path:
https://community.cablelabs.com/svn/OCAPRI/tags/RI_I1_1_4_REL_A/ri/ODLSr...

The Application is using some Class files which are in OCAP RI installation folder
C:\ocap\ocap-ri\ocap\bin\CableLabs\simulator\Win32\debug\env\qa\xlet\org\cablelabs[my path]
Some of the class files are ArgParser ,Logger etc.I'm not getting the functionality of those class files.Can anyone give me the java doc for those class files.

# 2)I'm using OCAP profile 1.1.1.According to my knowledge user can generate events as input.Is there any possibility for the user to give Character input or we can add a textField like Components to the screen.If there is possiblity just guide me how to do that..

Thanks,
Sree Harsha.P

Message was edited by: harsha973

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
ckuo
Offline
Joined: 2008-12-17
Points: 0

Hi,
Unfortunately there is no javadoc available for the utility classes referenced by the applications you found under $OCAPROOT/apps/qa/org/cablelabs/xlet/.
However, you can find the source code for all these utility classes under either
$OCAPROOT/apps/qa/org/cablelabs/lib/utils/
or
$OCAPROOT/apps/qa/AutoXlet/org/cablelabs/test/autoxlet/

I am not sure I understand your second question. If you are trying to figure out how to pass inputs to the xlets, you can do this by using the ArgParser utility class which gets the xlet properties (defined in XletContext via the hostapp.properties).
However, I am not aware of anyway to have user enter text inputs to interact with the application while the xlet is running.
As far as I know, all of our xlets that requires user interaction listens for KeyEvents (implments KeyListener interface). Even TunTest where it lets user directly tune to a particular channel by entering the channel's source ID, the xlet does this by taking each sourceID character as a keyEvent and compile them together once the user clicks on the "ENTER" key indicating they've completed entering the sourceID.

Hope this helps.

Cherie