<commit_before># webOS 2.0 Feature Examples
Examples from the content covered in the webOS 2.0 feature summary at the NYC webOS Developer Day 2010.

## Just Type
This example demonstrates the Just Type API as well as an example delegation system for routing the 
just type launches to the proper scene in the current scene stack.

### Key Components
 * appinfo.json : universalSearch entry
    Registers the app with the launcher indicating that it supports just type and what messages the app expects to
    receive when a just type action occurs for the app

 * AppAssistant.handleLaunch
    App entry point. Creates the main stage if one does not exists and routes the just type message if this is a just
    type event.

 * AppAssistant.delegateToSupportingScene
    Delegation logic. This is similar to the StageController.delegateToSceneAssistant logic except that it will delegate
    to any supporting scene on the stack, not just the first scene.

 * MainAssistant.populateStatus
    "Routing only" delegate. Example of a delegate that just pushes the status scene after ensuring the proper stage state.

 * StatusAssistant.populateStatus
    Example delegate that displays the just type message after ensuring the proper scene state. Note that in more complex
    applications this logic will also want to cleanup open controls as well as handle any other conditions that may cause
    an unexpected UI for the user.

### Notes
 * When developing a just type application it is much easier to not remove the application after each code change. If the application is removed it will have to be re-registered with the Just Type infrastructure after each install.

## Exhibition
This example demonstrates the new Exhibition API and some of the possible CSS3 animations that can be run while in exhibition mode.

### Key Components
 * appinfo.json : dockMode entry
    Registers that app as supporting exhibition mode.

 * AppAssistant.handleLaunch
    App entry point. Creates the dock mode stage when requested, using the dockMode flag to determine when this occurs.

 * FlyinAnimation
    Utility class that handles the javascript portion of the flyin and flyout animations that are used in this example.
 * flyin.css
    CSS side of the flyin and flyout animations.

 * SlideshowTimer
    Utility class that handles the refresh interval for the slideshow.

 * DockAssistant
    Primary dock scene implementation

### Notes
 * The APIs used in this example are subject to change. The finalized SDK docs should be consulted when released to confirm that there have not been changes to these APIs.
 * Enable/disable commands (novaterm)
  * Start Dock Mode
    $ luna-send -n 1 palm://com.palm.display/control/setState "{'state': 'dock'}"
  * Stop Dock Mode
    $ luna-send -n 1 palm://com.palm.display/control/setState "{'state': 'undock'}"<commit_msg>Proper styles for the exhibition enter/exit commands<commit_after># webOS 2.0 Feature Examples
Examples from the content covered in the webOS 2.0 feature summary at the NYC webOS Developer Day 2010.

## Just Type
This example demonstrates the Just Type API as well as an example delegation system for routing the 
just type launches to the proper scene in the current scene stack.

### Key Components
 * appinfo.json : universalSearch entry
    Registers the app with the launcher indicating that it supports just type and what messages the app expects to
    receive when a just type action occurs for the app

 * AppAssistant.handleLaunch
    App entry point. Creates the main stage if one does not exists and routes the just type message if this is a just
    type event.

 * AppAssistant.delegateToSupportingScene
    Delegation logic. This is similar to the StageController.delegateToSceneAssistant logic except that it will delegate
    to any supporting scene on the stack, not just the first scene.

 * MainAssistant.populateStatus
    "Routing only" delegate. Example of a delegate that just pushes the status scene after ensuring the proper stage state.

 * StatusAssistant.populateStatus
    Example delegate that displays the just type message after ensuring the proper scene state. Note that in more complex
    applications this logic will also want to cleanup open controls as well as handle any other conditions that may cause
    an unexpected UI for the user.

### Notes
 * When developing a just type application it is much easier to not remove the application after each code change. If the application is removed it will have to be re-registered with the Just Type infrastructure after each install.

## Exhibition
This example demonstrates the new Exhibition API and some of the possible CSS3 animations that can be run while in exhibition mode.

### Key Components
 * appinfo.json : dockMode entry
    Registers that app as supporting exhibition mode.

 * AppAssistant.handleLaunch
    App entry point. Creates the dock mode stage when requested, using the dockMode flag to determine when this occurs.

 * FlyinAnimation
    Utility class that handles the javascript portion of the flyin and flyout animations that are used in this example.
 * flyin.css
    CSS side of the flyin and flyout animations.

 * SlideshowTimer
    Utility class that handles the refresh interval for the slideshow.

 * DockAssistant
    Primary dock scene implementation

### Notes
 * The APIs used in this example are subject to change. The finalized SDK docs should be consulted when released to confirm that there have not been changes to these APIs.
 * Enable/disable commands (novaterm)
  * Start Dock Mode
    > $ luna-send -n 1 palm://com.palm.display/control/setState "{'state': 'dock'}"

  * Stop Dock Mode
    > $ luna-send -n 1 palm://com.palm.display/control/setState "{'state': 'undock'}"
{'fraction_non_alphanumeric': 0.04079861111111111, 'fraction_numerical': 0.0038194444444444443, 'mean_word_length': 3.9365895458440447, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4274168', 'n_tokens_mistral': 1413, 'n_tokens_neox': 1337, 'n_words': 801}