Initial import.

This commit is contained in:
Erik C. Thauvin 2005-07-08 16:54:56 +00:00
commit 77f1a026c3
28 changed files with 3480 additions and 0 deletions

4
.cvsignore Normal file
View file

@ -0,0 +1,4 @@
DevSuite
deployed
build
cmd.bat

44
YahooME-1.iml Normal file
View file

@ -0,0 +1,44 @@
<?xml version="1.0" encoding="UTF-8"?>
<module version="4" relativePaths="true" type="JAVA_MODULE">
<component name="ModuleRootManager" />
<component name="NewModuleRootManager">
<output url="file://$MODULE_DIR$/build" />
<exclude-output />
<exclude-exploded />
<content url="file://$MODULE_DIR$">
<sourceFolder url="file://$MODULE_DIR$/midp-1" isTestSource="false" />
<sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" />
</content>
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
<orderEntry type="module-library">
<library>
<CLASSES>
<root url="jar://$MODULE_DIR$/lib/cldcapi10.jar!/" />
</CLASSES>
<JAVADOC />
<SOURCES />
</library>
</orderEntry>
<orderEntry type="module-library">
<library>
<CLASSES>
<root url="jar://$MODULE_DIR$/lib/wma.jar!/" />
</CLASSES>
<JAVADOC />
<SOURCES />
</library>
</orderEntry>
<orderEntry type="module-library">
<library>
<CLASSES>
<root url="jar://$MODULE_DIR$/lib/midpapi10.jar!/" />
</CLASSES>
<JAVADOC />
<SOURCES />
</library>
</orderEntry>
<orderEntryProperties />
</component>
</module>

264
YahooME-1.ipr Normal file
View file

@ -0,0 +1,264 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4" relativePaths="false">
<component name="AntConfiguration">
<defaultAnt bundledAnt="true" />
<buildFile url="file://$PROJECT_DIR$/build.xml">
<additionalClassPath />
<antReference name="Local Ant" />
<customJdkName value="" />
<maximumHeapSize value="128" />
<properties />
</buildFile>
</component>
<component name="BSFConsole">
<sendcommandbycontrolenter>false</sendcommandbycontrolenter>
<restoresystemstreams>false</restoresystemstreams>
<outwaitsforerr>false</outwaitsforerr>
<errwaitsforout>false</errwaitsforout>
<storedupsinrecentcommands>false</storedupsinrecentcommands>
<moduleforclasspath />
<includeoutputpath>false</includeoutputpath>
<includetestsoutputpath>false</includetestsoutputpath>
<languages>
<language name="ant" engine="org.kos.bsfconsoleplugin.languages.AntConsoleBSFEngine" />
<language name="beanshell" engine="bsh.util.BeanShellBSFEngine" />
<language name="netrexx" engine="org.apache.bsf.engines.netrexx.NetRexxEngine" />
<language name="xslt" engine="org.apache.bsf.engines.xslt.XSLTEngine" />
<language name="beanbasic" engine="org.apache.bsf.engines.beanbasic.BeanBasicEngine" />
<language name="bml" engine="org.apache.bml.ext.BMLEngine" />
<language name="groovy" engine="org.codehaus.groovy.bsf.GroovyEngine" />
<language name="jacl" engine="org.apache.bsf.engines.jacl.JaclEngine" />
<language name="java" engine="org.apache.bsf.engines.java.JavaEngine" />
<language name="javaclass" engine="org.apache.bsf.engines.javaclass.JavaClassEngine" />
<language name="javascript" engine="org.apache.bsf.engines.javascript.JavaScriptEngine" />
<language name="jpython" engine="org.apache.bsf.engines.jpython.JPythonEngine" />
<language name="jscript" engine="org.apache.bsf.engines.activescript.ActiveScriptEngine" />
<language name="judoscript" engine="com.judoscript.BSFJudoEngine" />
<language name="jython" engine="org.apache.bsf.engines.jython.JythonEngine" />
<language name="lotusscript" engine="org.apache.bsf.engines.lotusscript.LsEngine" />
<language name="perl" engine="org.apache.bsf.engines.perl.PerlEngine" />
<language name="perlscript" engine="org.apache.bsf.engines.activescript.ActiveScriptEngine" />
<language name="pnuts" engine="pnuts.ext.PnutsBSFEngine" />
<language name="ruby" engine="org.jruby.javasupport.bsf.JRubyEngine" />
<language name="vbscript" engine="org.apache.bsf.engines.activescript.ActiveScriptEngine" />
</languages>
<startupscripts />
<preferredrecentcommandsdividerlocations />
<BSFConsoleSearchOptions searchfromcursor="false">
<recentsearches />
</BSFConsoleSearchOptions>
</component>
<component name="CodeStyleSettingsManager">
<option name="PER_PROJECT_SETTINGS" />
<option name="USE_PER_PROJECT_SETTINGS" value="false" />
</component>
<component name="CompilerConfiguration">
<option name="DEFAULT_COMPILER" value="Javac" />
<option name="CLEAR_OUTPUT_DIRECTORY" value="false" />
<option name="DEPLOY_AFTER_MAKE" value="0" />
<resourceExtensions>
<entry name=".+\.(properties|xml|html|dtd|tld)" />
<entry name=".+\.(gif|png|jpeg|jpg)" />
</resourceExtensions>
<wildcardResourcePatterns>
<entry name="?*.properties" />
<entry name="?*.xml" />
<entry name="?*.html" />
<entry name="?*.dtd" />
<entry name="?*.tld" />
<entry name="?*.gif" />
<entry name="?*.png" />
<entry name="?*.jpeg" />
<entry name="?*.jpg" />
</wildcardResourcePatterns>
</component>
<component name="DataSourceManagerImpl" />
<component name="DependencyValidationManager" />
<component name="EntryPointsManager">
<entry_points />
</component>
<component name="ExportToHTMLSettings">
<option name="PRINT_LINE_NUMBERS" value="false" />
<option name="OPEN_IN_BROWSER" value="false" />
<option name="OUTPUT_DIRECTORY" />
</component>
<component name="GUI Designer component loader factory" />
<component name="JavacSettings">
<option name="DEBUGGING_INFO" value="true" />
<option name="GENERATE_NO_WARNINGS" value="false" />
<option name="DEPRECATION" value="true" />
<option name="ADDITIONAL_OPTIONS_STRING" value="" />
<option name="MAXIMUM_HEAP_SIZE" value="128" />
<option name="USE_GENERICS_COMPILER" value="false" />
</component>
<component name="JavadocGenerationManager">
<option name="OUTPUT_DIRECTORY" />
<option name="OPTION_SCOPE" value="protected" />
<option name="OPTION_HIERARCHY" value="true" />
<option name="OPTION_NAVIGATOR" value="true" />
<option name="OPTION_INDEX" value="true" />
<option name="OPTION_SEPARATE_INDEX" value="true" />
<option name="OPTION_DOCUMENT_TAG_USE" value="true" />
<option name="OPTION_DOCUMENT_TAG_AUTHOR" value="true" />
<option name="OPTION_DOCUMENT_TAG_VERSION" value="true" />
<option name="OPTION_DOCUMENT_TAG_DEPRECATED" value="true" />
<option name="OPTION_DEPRECATED_LIST" value="true" />
<option name="OTHER_OPTIONS" />
<option name="HEAP_SIZE" />
<option name="OPEN_IN_BROWSER" value="true" />
</component>
<component name="JikesSettings">
<option name="JIKES_PATH" value="" />
<option name="DEBUGGING_INFO" value="true" />
<option name="DEPRECATION" value="true" />
<option name="GENERATE_NO_WARNINGS" value="false" />
<option name="IS_EMACS_ERRORS_MODE" value="true" />
<option name="ADDITIONAL_OPTIONS_STRING" value="" />
</component>
<component name="PEExternalization">
<option name="IGNORE_METHOD_NAMES" value="" />
<option name="IGNORE_METHOD_NAMES_ENABLED" value="false" />
<option name="IGNORE_CLASS_CONSTRUCTORS">
<value>
<option class="Exception" includeInheritors="true" />
</value>
</option>
<option name="IGNORE_CLASS_CONSTRUCTOR_NAMES_ENABLED" value="true" />
<option name="IGNORE_CLASS_METHODS_ENABLED" value="true" />
<option name="IGNORE_STRINGS_CONTAINS_ONLY_ENABLED" value="true" />
<option name="IGNORE_STRINGS_CONTAINS_ONLY_WHITESPACES" value="true" />
<option name="IGNORE_STRINGS_CONTAINS_ONLY_PUNCTUATIONS" value="true" />
<option name="IGNORE_STRINGS_CONTAINS_ONLY_SPECIFIED_ENABLED" value="true" />
<option name="IGNORE_STRINGS_CONTAINS_ONLY_SPECIFIED" value="" />
<option name="IGNORE_CLASS_METHODS">
<value>
<option class="Exception" includeInheritors="false" />
<option class="java.util.ResourceBundle" includeInheritors="true" />
</value>
</option>
<option name="IGNORE_CONSTANTS_DECLARATIONS" value="true" />
</component>
<component name="Palette2">
<group name="Swing">
<item class="com.intellij.uiDesigner.HSpacer" tooltip-text="Horizontal Spacer" icon="/com/intellij/uiDesigner/icons/hspacer.png" removable="false">
<default-constraints vsize-policy="1" hsize-policy="6" anchor="0" fill="1" />
</item>
<item class="com.intellij.uiDesigner.VSpacer" tooltip-text="Vertical Spacer" icon="/com/intellij/uiDesigner/icons/vspacer.png" removable="false">
<default-constraints vsize-policy="6" hsize-policy="1" anchor="0" fill="2" />
</item>
<item class="javax.swing.JPanel" icon="/com/intellij/uiDesigner/icons/panel.png" removable="false">
<default-constraints vsize-policy="3" hsize-policy="3" anchor="0" fill="3" />
</item>
<item class="javax.swing.JScrollPane" icon="/com/intellij/uiDesigner/icons/scrollPane.png" removable="false">
<default-constraints vsize-policy="7" hsize-policy="7" anchor="0" fill="3" />
</item>
<item class="javax.swing.JButton" icon="/com/intellij/uiDesigner/icons/button.png" removable="false">
<default-constraints vsize-policy="0" hsize-policy="3" anchor="0" fill="1" />
<initial-values>
<property name="text" value="Button" />
</initial-values>
</item>
<item class="javax.swing.JRadioButton" icon="/com/intellij/uiDesigner/icons/radioButton.png" removable="false">
<default-constraints vsize-policy="0" hsize-policy="3" anchor="8" fill="0" />
<initial-values>
<property name="text" value="RadioButton" />
</initial-values>
</item>
<item class="javax.swing.JCheckBox" icon="/com/intellij/uiDesigner/icons/checkBox.png" removable="false">
<default-constraints vsize-policy="0" hsize-policy="3" anchor="8" fill="0" />
<initial-values>
<property name="text" value="CheckBox" />
</initial-values>
</item>
<item class="javax.swing.JLabel" icon="/com/intellij/uiDesigner/icons/label.png" removable="false">
<default-constraints vsize-policy="0" hsize-policy="0" anchor="8" fill="0" />
<initial-values>
<property name="text" value="Label" />
</initial-values>
</item>
<item class="javax.swing.JTextField" icon="/com/intellij/uiDesigner/icons/textField.png" removable="false">
<default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1">
<preferred-size width="150" height="-1" />
</default-constraints>
</item>
<item class="javax.swing.JPasswordField" icon="/com/intellij/uiDesigner/icons/passwordField.png" removable="false">
<default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1">
<preferred-size width="150" height="-1" />
</default-constraints>
</item>
<item class="javax.swing.JFormattedTextField" icon="/com/intellij/uiDesigner/icons/formattedTextField.png" removable="false">
<default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1">
<preferred-size width="150" height="-1" />
</default-constraints>
</item>
<item class="javax.swing.JTextArea" icon="/com/intellij/uiDesigner/icons/textArea.png" removable="false">
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
<preferred-size width="150" height="50" />
</default-constraints>
</item>
<item class="javax.swing.JTextPane" icon="/com/intellij/uiDesigner/icons/textPane.png" removable="false">
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
<preferred-size width="150" height="50" />
</default-constraints>
</item>
<item class="javax.swing.JEditorPane" icon="/com/intellij/uiDesigner/icons/editorPane.png" removable="false">
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
<preferred-size width="150" height="50" />
</default-constraints>
</item>
<item class="javax.swing.JComboBox" icon="/com/intellij/uiDesigner/icons/comboBox.png" removable="false">
<default-constraints vsize-policy="0" hsize-policy="2" anchor="8" fill="1" />
</item>
<item class="javax.swing.JTable" icon="/com/intellij/uiDesigner/icons/table.png" removable="false">
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
<preferred-size width="150" height="50" />
</default-constraints>
</item>
<item class="javax.swing.JList" icon="/com/intellij/uiDesigner/icons/list.png" removable="false">
<default-constraints vsize-policy="6" hsize-policy="2" anchor="0" fill="3">
<preferred-size width="150" height="50" />
</default-constraints>
</item>
<item class="javax.swing.JTree" icon="/com/intellij/uiDesigner/icons/tree.png" removable="false">
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
<preferred-size width="150" height="50" />
</default-constraints>
</item>
<item class="javax.swing.JTabbedPane" icon="/com/intellij/uiDesigner/icons/tabbedPane.png" removable="false">
<default-constraints vsize-policy="3" hsize-policy="3" anchor="0" fill="3">
<preferred-size width="200" height="200" />
</default-constraints>
</item>
<item class="javax.swing.JSplitPane" icon="/com/intellij/uiDesigner/icons/splitPane.png" removable="false">
<default-constraints vsize-policy="3" hsize-policy="3" anchor="0" fill="3">
<preferred-size width="200" height="200" />
</default-constraints>
</item>
<item class="javax.swing.JSpinner" icon="/com/intellij/uiDesigner/icons/spinner.png" removable="false">
<default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1" />
</item>
<item class="javax.swing.JSlider" icon="/com/intellij/uiDesigner/icons/slider.png" removable="false">
<default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1" />
</item>
</group>
</component>
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/YahooME-1.iml" filepath="$PROJECT_DIR$/YahooME-1.iml" />
</modules>
</component>
<component name="ProjectRootManager" version="2" assert-keyword="false" jdk-15="false" project-jdk-name="1.4.x" />
<component name="RmicSettings">
<option name="IS_EANABLED" value="false" />
<option name="DEBUGGING_INFO" value="true" />
<option name="GENERATE_NO_WARNINGS" value="false" />
<option name="GENERATE_IIOP_STUBS" value="false" />
<option name="ADDITIONAL_OPTIONS_STRING" value="" />
</component>
<component name="libraryTable" />
<component name="uidesigner-configuration">
<option name="INSTRUMENT_CLASSES" value="true" />
<option name="COPY_FORMS_RUNTIME_TO_OUTPUT" value="true" />
</component>
</project>

530
YahooME-1.iws Normal file
View file

@ -0,0 +1,530 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4" relativePaths="false">
<component name="AspectsView" />
<component name="BookmarkManager" />
<component name="CheckinPanelState" />
<component name="Commander">
<leftPanel />
<rightPanel />
<splitter proportion="0.5" />
</component>
<component name="CompilerWorkspaceConfiguration">
<option name="COMPILE_IN_BACKGROUND" value="false" />
<option name="AUTO_SHOW_ERRORS_IN_EDITOR" value="true" />
<option name="CLOSE_MESSAGE_VIEW_IF_SUCCESS" value="true" />
</component>
<component name="Cvs2Configuration">
<option name="ON_FILE_ADDING" value="0" />
<option name="ON_FILE_REMOVING" value="0" />
<option name="PRUNE_EMPTY_DIRECTORIES" value="true" />
<option name="SHOW_UPDATE_OPTIONS" value="true" />
<option name="SHOW_ADD_OPTIONS" value="true" />
<option name="SHOW_REMOVE_OPTIONS" value="true" />
<option name="MERGING_MODE" value="0" />
<option name="MERGE_WITH_BRANCH1_NAME" value="HEAD" />
<option name="MERGE_WITH_BRANCH2_NAME" value="HEAD" />
<option name="RESET_STICKY" value="false" />
<option name="CREATE_NEW_DIRECTORIES" value="true" />
<option name="DEFAULT_TEXT_FILE_SUBSTITUTION" value="kv" />
<option name="PROCESS_UNKNOWN_FILES" value="false" />
<option name="PROCESS_DELETED_FILES" value="false" />
<option name="SHOW_EDIT_DIALOG" value="false" />
<option name="RESERVED_EDIT" value="false" />
<option name="FILE_HISTORY_SPLITTER_PROPORTION" value="0.6" />
<option name="SHOW_CHECKOUT_OPTIONS" value="true" />
<option name="CHECKOUT_DATE_OR_REVISION_SETTINGS">
<value>
<option name="BRANCH" value="" />
<option name="DATE" value="" />
<option name="USE_BRANCH" value="false" />
<option name="USE_DATE" value="false" />
</value>
</option>
<option name="UPDATE_DATE_OR_REVISION_SETTINGS">
<value>
<option name="BRANCH" value="" />
<option name="DATE" value="" />
<option name="USE_BRANCH" value="false" />
<option name="USE_DATE" value="false" />
</value>
</option>
<option name="SHOW_CHANGES_REVISION_SETTINGS">
<value>
<option name="BRANCH" value="" />
<option name="DATE" value="" />
<option name="USE_BRANCH" value="false" />
<option name="USE_DATE" value="false" />
</value>
</option>
<option name="SHOW_OUTPUT" value="false" />
<option name="SHOW_FILE_HISTORY_AS_TREE" value="false" />
<option name="UPDATE_GROUP_BY_PACKAGES" value="false" />
<option name="ADD_WATCH_INDEX" value="0" />
<option name="REMOVE_WATCH_INDEX" value="0" />
<option name="UPDATE_KEYWORD_SUBSTITUTION" />
<option name="MAKE_NEW_FILES_READONLY" value="false" />
<option name="SHOW_CORRUPTED_PROJECT_FILES" value="0" />
<option name="TAG_AFTER_FILE_COMMIT" value="false" />
<option name="TAG_AFTER_FILE_COMMIT_NAME" value="" />
<option name="TAG_AFTER_PROJECT_COMMIT" value="false" />
<option name="TAG_AFTER_PROJECT_COMMIT_NAME" value="" />
<option name="PUT_FOCUS_INTO_COMMENT" value="true" />
<option name="SHOW_CHECKIN_OPTIONS" value="true" />
<option name="FORCE_NON_EMPTY_COMMENT" value="false" />
<option name="LAST_COMMIT_MESSAGE" value="" />
<option name="SAVE_LAST_COMMIT_MESSAGE" value="true" />
<option name="CHECKIN_DIALOG_SPLITTER_PROPORTION" value="0.8" />
<option name="OPTIMIZE_IMPORTS_BEFORE_PROJECT_COMMIT" value="false" />
<option name="OPTIMIZE_IMPORTS_BEFORE_FILE_COMMIT" value="false" />
<option name="REFORMAT_BEFORE_PROJECT_COMMIT" value="false" />
<option name="REFORMAT_BEFORE_FILE_COMMIT" value="false" />
<option name="FILE_HISTORY_DIALOG_COMMENTS_SPLITTER_PROPORTION" value="0.8" />
<option name="FILE_HISTORY_DIALOG_SPLITTER_PROPORTION" value="0.5" />
</component>
<component name="CvsTabbedWindow" />
<component name="DaemonCodeAnalyzer">
<disable_hints />
</component>
<component name="DebuggerManager">
<line_breakpoints />
<exception_breakpoints>
<breakpoint_any>
<option name="NOTIFY_CAUGHT" value="true" />
<option name="NOTIFY_UNCAUGHT" value="true" />
<option name="ENABLED" value="false" />
<option name="SUSPEND_VM" value="true" />
<option name="LOG_ENABLED" value="false" />
<option name="LOG_EXPRESSION_ENABLED" value="false" />
<option name="COUNT_FILTER_ENABLED" value="false" />
<option name="COUNT_FILTER" value="0" />
<option name="CONDITION_ENABLED" value="false" />
<option name="CLASS_FILTERS_ENABLED" value="false" />
<option name="INSTANCE_FILTERS_ENABLED" value="false" />
<option name="myCondition" value="" />
<option name="myLogMessage" value="" />
</breakpoint_any>
</exception_breakpoints>
<field_breakpoints />
<method_breakpoints />
</component>
<component name="ErrorTreeViewConfiguration">
<option name="IS_AUTOSCROLL_TO_SOURCE" value="false" />
<option name="HIDE_WARNINGS" value="false" />
</component>
<component name="FileEditorManager" split-orientation="vertical" split-proportion="0.5">
<first-group selected-file="file://$PROJECT_DIR$/src/net/thauvin/j2me/yahoome/YahooME.java">
<entry file="file://$PROJECT_DIR$/src/net/thauvin/j2me/yahoome/YahooME.java" pinned="false">
<provider selected="true" editor-type-id="text-editor">
<state line="53" column="70" selection-start="2225" selection-end="2225" vertical-scroll-proportion="-0.255">
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/build.xml" pinned="false">
<provider selected="true" editor-type-id="text-editor">
<state line="1" column="22" selection-start="62" selection-end="62" vertical-scroll-proportion="0.027642276">
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/yahoome.wml" pinned="false">
<provider selected="true" editor-type-id="text-editor">
<state line="20" column="28" selection-start="555" selection-end="555" vertical-scroll-proportion="0.55284554">
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/src/net/thauvin/j2me/yahoome/RmsIndex.java" pinned="false">
<provider selected="true" editor-type-id="text-editor">
<state line="32" column="26" selection-start="1398" selection-end="1398" vertical-scroll-proportion="0.15934959">
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/src/net/thauvin/j2me/yahoome/HistoryScreen.java" pinned="false">
<provider selected="true" editor-type-id="text-editor">
<state line="59" column="56" selection-start="2223" selection-end="2223" vertical-scroll-proportion="0.66341466">
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/src/net/thauvin/j2me/yahoome/HelpScreen.java" pinned="false">
<provider selected="true" editor-type-id="text-editor">
<state line="78" column="24" selection-start="3826" selection-end="3831" vertical-scroll-proportion="1.0183333">
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/src/net/thauvin/j2me/yahoome/MainScreen.java" pinned="false">
<provider selected="true" editor-type-id="text-editor">
<state line="44" column="105" selection-start="1957" selection-end="1957" vertical-scroll-proportion="0.028333334">
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/src/net/thauvin/j2me/yahoome/PrefsScreen.java" pinned="false">
<provider selected="true" editor-type-id="text-editor">
<state line="77" column="38" selection-start="2669" selection-end="2669" vertical-scroll-proportion="0.58699185">
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/midp-1/net/thauvin/j2me/yahoome/Util.java" pinned="false">
<provider selected="true" editor-type-id="text-editor">
<state line="33" column="6" selection-start="1617" selection-end="1617" vertical-scroll-proportion="0.91219515">
<folding />
</state>
</provider>
</entry>
</first-group>
<second-group />
</component>
<component name="HierarchyBrowserManager">
<option name="IS_AUTOSCROLL_TO_SOURCE" value="false" />
<option name="SORT_ALPHABETICALLY" value="false" />
<option name="HIDE_CLASSES_WHERE_METHOD_NOT_IMPLEMENTED" value="false" />
</component>
<component name="InspectionManager">
<option name="AUTOSCROLL_TO_SOURCE" value="false" />
<option name="SPLITTER_PROPORTION" value="0.5" />
<profile name="Erik's Inspections" />
</component>
<component name="J2EEProjectPane" />
<component name="NamedScopeManager" />
<component name="PackagesPane">
<expanded_node url="net.thauvin.j2me.yahoome" module="YahooME-1" type="package" />
<expanded_node url="net" module="YahooME-1" type="package" />
<expanded_node url="net.thauvin.j2me" module="YahooME-1" type="package" />
<expanded_node url="" module="YahooME-1" type="module" />
<expanded_node url="net.thauvin" module="YahooME-1" type="package" />
</component>
<component name="ProjectPane">
<expanded_node url="file://$PROJECT_DIR$" module="YahooME-1" type="directory" />
<expanded_node url="file://$PROJECT_DIR$/midp-1/net/thauvin" module="YahooME-1" type="directory" />
<expanded_node url="file://$PROJECT_DIR$/src/net/thauvin/j2me" module="YahooME-1" type="directory" />
<expanded_node url="file://$PROJECT_DIR$/midp-2/net" module="YahooME-1" type="directory" />
<expanded_node url="file://$PROJECT_DIR$/midp-1/net/thauvin/j2me" module="YahooME-1" type="directory" />
<expanded_node url="file://$PROJECT_DIR$/midp-2/net/thauvin/j2me" module="YahooME-1" type="directory" />
<expanded_node url="file://$PROJECT_DIR$/src/net/thauvin" module="YahooME-1" type="directory" />
<expanded_node url="file://$PROJECT_DIR$/midp-2/net/thauvin/j2me/yahoome" module="YahooME-1" type="directory" />
<expanded_node url="file://$PROJECT_DIR$/midp-1/net" module="YahooME-1" type="directory" />
<expanded_node url="file://$PROJECT_DIR$/midp-2" module="YahooME-1" type="directory" />
<expanded_node url="file://$PROJECT_DIR$/midp-2/net/thauvin" module="YahooME-1" type="directory" />
<expanded_node url="file://$PROJECT_DIR$/src" module="YahooME-1" type="directory" />
<expanded_node url="file://$PROJECT_DIR$/src/net/thauvin/j2me/yahoome" module="YahooME-1" type="directory" />
<expanded_node url="file://$PROJECT_DIR$/src/net" module="YahooME-1" type="directory" />
<expanded_node url="file://$PROJECT_DIR$/midp-1" module="YahooME-1" type="directory" />
<expanded_node url="" module="YahooME-1" type="module" />
<expanded_node url="file://$PROJECT_DIR$/midp-1/net/thauvin/j2me/yahoome" module="YahooME-1" type="directory" />
</component>
<component name="ProjectView">
<navigator currentView="ProjectPane" splitterProportion="0.5">
<flattenPackages />
<showMembers />
<showModules />
<showLibraryContents />
<hideEmptyPackages />
<showStructure PackagesPane="false" ProjectPane="false" />
<autoscrollToSource />
<autoscrollFromSource />
</navigator>
</component>
<component name="PropertiesComponent">
<property name="MemberChooser.copyJavadoc" value="false" />
<property name="GoToClass.includeLibraries" value="false" />
<property name="MemberChooser.showClasses" value="true" />
<property name="MemberChooser.sorted" value="false" />
<property name="GoToFile.includeJavaFiles" value="false" />
<property name="GoToClass.toSaveIncludeLibraries" value="false" />
</component>
<component name="Regex">
<option name="pos1" value="218" />
<option name="pos2" value="218" />
<option name="pos3" value="162" />
<option name="pos4" value="444" />
<option name="pos5" value="162" />
<option name="autoUpdate" value="true" />
<option name="referenceOn" value="false" />
<option name="referencePos" value="0" />
</component>
<component name="RunManager">
<activeType name="Application" />
<configuration selected="false" default="true" type="Applet" factoryName="Applet">
<module name="" />
<option name="MAIN_CLASS_NAME" />
<option name="HTML_FILE_NAME" />
<option name="HTML_USED" value="false" />
<option name="WIDTH" value="400" />
<option name="HEIGHT" value="300" />
<option name="POLICY_FILE" value="C:/IntelliJ-IDEA/bin/appletviewer.policy" />
<option name="VM_PARAMETERS" />
</configuration>
<configuration selected="false" default="true" type="JUnit" factoryName="JUnit">
<module name="" />
<option name="PACKAGE_NAME" />
<option name="MAIN_CLASS_NAME" />
<option name="METHOD_NAME" />
<option name="TEST_OBJECT" />
<option name="VM_PARAMETERS" />
<option name="PARAMETERS" />
<option name="WORKING_DIRECTORY" value="$PROJECT_DIR$" />
<option name="ADDITIONAL_CLASS_PATH" />
<option name="TEST_SEARCH_SCOPE">
<value defaultName="wholeProject" />
</option>
</configuration>
<configuration selected="false" default="true" type="Remote" factoryName="Remote">
<option name="USE_SOCKET_TRANSPORT" value="true" />
<option name="SERVER_MODE" value="false" />
<option name="SHMEM_ADDRESS" value="javadebug" />
<option name="HOST" value="localhost" />
<option name="PORT" value="5005" />
</configuration>
<configuration selected="false" default="true" type="Application" factoryName="Application">
<option name="MAIN_CLASS_NAME" />
<option name="VM_PARAMETERS" />
<option name="PROGRAM_PARAMETERS" />
<option name="WORKING_DIRECTORY" value="$PROJECT_DIR$" />
<module name="" />
</configuration>
<configuration selected="false" default="true" type="WebLogic Instance" factoryName="Local">
<option name="WORKING_DIRECTORY" />
<option name="HOST" value="localhost" />
<option name="PORT" value="7001" />
<option name="LOCAL" value="true" />
<option name="OPEN_IN_BROWSER" value="true" />
<option name="OPEN_IN_BROWSER_URL" value="/" />
<option name="COMMON_VM_ARGUMENTS" value="" />
<option name="DOMAIN_PATH" value="" />
<option name="USER" value="weblogic" />
<option name="PASSWORD" value="weblogic" />
<option name="SERVER_NAME" value="myserver" />
<option name="DOMAIN_NAME" value="mydomain" />
</configuration>
</component>
<component name="SelectInManager" />
<component name="StarteamConfiguration">
<option name="SERVER" value="" />
<option name="PORT" value="49201" />
<option name="USER" value="" />
<option name="PASSWORD" value="" />
<option name="PROJECT" value="" />
<option name="VIEW" value="" />
<option name="ALTERNATIVE_WORKING_PATH" value="" />
<option name="PUT_FOCUS_INTO_COMMENT" value="false" />
<option name="SHOW_CHECKIN_OPTIONS" value="true" />
<option name="FORCE_NON_EMPTY_COMMENT" value="false" />
<option name="LAST_COMMIT_MESSAGE" value="" />
<option name="SAVE_LAST_COMMIT_MESSAGE" value="true" />
<option name="CHECKIN_DIALOG_SPLITTER_PROPORTION" value="0.8" />
<option name="OPTIMIZE_IMPORTS_BEFORE_PROJECT_COMMIT" value="false" />
<option name="OPTIMIZE_IMPORTS_BEFORE_FILE_COMMIT" value="false" />
<option name="REFORMAT_BEFORE_PROJECT_COMMIT" value="false" />
<option name="REFORMAT_BEFORE_FILE_COMMIT" value="false" />
<option name="FILE_HISTORY_DIALOG_COMMENTS_SPLITTER_PROPORTION" value="0.8" />
<option name="FILE_HISTORY_DIALOG_SPLITTER_PROPORTION" value="0.5" />
</component>
<component name="StructuralSearchPlugin" />
<component name="StructureViewFactory">
<option name="SORT_MODE" value="0" />
<option name="GROUP_INHERITED" value="true" />
<option name="AUTOSCROLL_MODE" value="true" />
<option name="SHOW_FIELDS" value="true" />
<option name="AUTOSCROLL_FROM_SOURCE" value="false" />
<option name="GROUP_GETTERS_AND_SETTERS" value="true" />
<option name="SHOW_INHERITED" value="false" />
<option name="HIDE_NOT_PUBLIC" value="false" />
</component>
<component name="TodoView" selected-index="0">
<todo-panel id="selected-file">
<are-packages-shown value="false" />
<flatten-packages value="false" />
<is-autoscroll-to-source value="true" />
</todo-panel>
<todo-panel id="all">
<are-packages-shown value="true" />
<flatten-packages value="false" />
<is-autoscroll-to-source value="true" />
</todo-panel>
</component>
<component name="ToolWindowManager">
<frame x="-4" y="-4" width="1288" height="808" extended-state="0" />
<editor active="true" />
<layout>
<window_info id="CVS" active="false" anchor="bottom" auto_hide="false" internal_type="docked" type="docked" visible="false" weight="0.33" order="8" />
<window_info id="Regex" active="false" anchor="bottom" auto_hide="false" internal_type="docked" type="docked" visible="false" weight="0.33" order="8" />
<window_info id="TODO" active="false" anchor="bottom" auto_hide="false" internal_type="docked" type="docked" visible="false" weight="0.33" order="7" />
<window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="docked" type="docked" visible="true" weight="0.18851133" order="0" />
<window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="docked" type="docked" visible="false" weight="0.33088234" order="1" />
<window_info id="Jalopy" active="false" anchor="bottom" auto_hide="false" internal_type="docked" type="docked" visible="false" weight="0.33" order="8" />
<window_info id="Structure" active="false" anchor="left" auto_hide="false" internal_type="docked" type="docked" visible="false" weight="0.2734694" order="1" />
<window_info id="Messages" active="false" anchor="bottom" auto_hide="false" internal_type="docked" type="docked" visible="false" weight="0.33032128" order="8" />
<window_info id="Inspection" active="false" anchor="bottom" auto_hide="false" internal_type="docked" type="docked" visible="false" weight="0.3995984" order="6" />
<window_info id="Profile" active="false" anchor="bottom" auto_hide="false" internal_type="docked" type="docked" visible="false" weight="0.33" order="8" />
<window_info id="Dependency Viewer" active="false" anchor="bottom" auto_hide="false" internal_type="docked" type="docked" visible="false" weight="0.33" order="8" />
<window_info id="Ant Build" active="false" anchor="right" auto_hide="false" internal_type="docked" type="docked" visible="true" weight="0.08656958" order="2" />
<window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="docked" type="docked" visible="false" weight="0.33" order="2" />
<window_info id="Hierarchy" active="false" anchor="right" auto_hide="false" internal_type="docked" type="docked" visible="false" weight="0.25" order="3" />
<window_info id="CVS File View" active="false" anchor="right" auto_hide="false" internal_type="docked" type="docked" visible="false" weight="0.33" order="0" />
<window_info id="Commander" active="false" anchor="right" auto_hide="false" internal_type="sliding" type="sliding" visible="false" weight="0.4" order="1" />
<window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="docked" type="docked" visible="false" weight="0.4" order="4" />
<window_info id="BSFConsole" active="false" anchor="bottom" auto_hide="false" internal_type="docked" type="docked" visible="false" weight="0.33" order="8" />
<window_info id="Properties File Structure" active="false" anchor="right" auto_hide="false" internal_type="docked" type="docked" visible="false" weight="0.33" order="4" />
<window_info id="Web" active="false" anchor="left" auto_hide="false" internal_type="docked" type="docked" visible="false" weight="0.25" order="2" />
<window_info id="Message" active="false" anchor="bottom" auto_hide="false" internal_type="docked" type="docked" visible="false" weight="0.33" order="0" />
<window_info id="EJB" active="false" anchor="bottom" auto_hide="false" internal_type="docked" type="docked" visible="false" weight="0.25" order="3" />
<window_info id="Cvs" active="false" anchor="bottom" auto_hide="false" internal_type="docked" type="docked" visible="false" weight="0.25" order="5" />
</layout>
</component>
<component name="VCS.FileViewConfiguration">
<option name="SELECTED_STATUSES" value="DEFAULT" />
<option name="SELECTED_COLUMNS" value="DEFAULT" />
<option name="SHOW_FILTERS" value="true" />
<option name="CUSTOMIZE_VIEW" value="true" />
<option name="SHOW_FILE_HISTORY_AS_TREE" value="true" />
</component>
<component name="VcsManagerConfiguration">
<option name="ACTIVE_VCS_NAME" value="CVS" />
<option name="STATE" value="0" />
</component>
<component name="VssConfiguration">
<CheckoutOptions>
<option name="COMMENT" value="" />
<option name="DO_NOT_GET_LATEST_VERSION" value="false" />
<option name="REPLACE_WRITABLE" value="false" />
<option name="RECURSIVE" value="false" />
</CheckoutOptions>
<CheckinOptions>
<option name="COMMENT" value="" />
<option name="KEEP_CHECKED_OUT" value="false" />
<option name="RECURSIVE" value="false" />
</CheckinOptions>
<AddOptions>
<option name="COMMENT" value="" />
<option name="STORE_ONLY_LATEST_VERSION" value="false" />
<option name="CHECK_OUT_IMMEDIATELY" value="false" />
<option name="FILE_TYPE" value="0" />
</AddOptions>
<UndocheckoutOptions>
<option name="MAKE_WRITABLE" value="false" />
<option name="REPLACE_LOCAL_COPY" value="0" />
<option name="RECURSIVE" value="false" />
</UndocheckoutOptions>
<GetOptions>
<option name="REPLACE_WRITABLE" value="0" />
<option name="MAKE_WRITABLE" value="false" />
<option name="RECURSIVE" value="false" />
</GetOptions>
<option name="CLIENT_PATH" value="" />
<option name="SRCSAFEINI_PATH" value="" />
<option name="USER_NAME" value="" />
<option name="PWD" value="" />
<option name="SHOW_CHECKOUT_OPTIONS" value="true" />
<option name="SHOW_ADD_OPTIONS" value="true" />
<option name="VSS_IS_INITIALIZED" value="false" />
<option name="SHOW_UNDOCHECKOUT_OPTIONS" value="true" />
<option name="SHOW_DIFF_OPTIONS" value="true" />
<option name="SHOW_GET_OPTIONS" value="true" />
<option name="REUSE_LAST_COMMENT" value="false" />
<option name="PUT_FOCUS_INTO_COMMENT" value="false" />
<option name="SHOW_CHECKIN_OPTIONS" value="true" />
<option name="FORCE_NON_EMPTY_COMMENT" value="false" />
<option name="LAST_COMMIT_MESSAGE" value="" />
<option name="SAVE_LAST_COMMIT_MESSAGE" value="true" />
<option name="CHECKIN_DIALOG_SPLITTER_PROPORTION" value="0.8" />
<option name="OPTIMIZE_IMPORTS_BEFORE_PROJECT_COMMIT" value="false" />
<option name="OPTIMIZE_IMPORTS_BEFORE_FILE_COMMIT" value="false" />
<option name="REFORMAT_BEFORE_PROJECT_COMMIT" value="false" />
<option name="REFORMAT_BEFORE_FILE_COMMIT" value="false" />
<option name="FILE_HISTORY_DIALOG_COMMENTS_SPLITTER_PROPORTION" value="0.8" />
<option name="FILE_HISTORY_DIALOG_SPLITTER_PROPORTION" value="0.5" />
</component>
<component name="antWorkspaceConfiguration">
<option name="IS_AUTOSCROLL_TO_SOURCE" value="false" />
<option name="FILTER_TARGETS" value="false" />
<buildFile url="file://$PROJECT_DIR$/build.xml">
<antCommandLine value="" />
<runInBackground value="false" />
<targetFilters>
<filter targetName="jar" isVisible="false" />
<filter targetName="compile-2" isVisible="false" />
<filter targetName="compile" isVisible="false" />
<filter targetName="init" isVisible="false" />
<filter targetName="build" isVisible="true" />
<filter targetName="run-2" isVisible="false" />
<filter targetName="clean" isVisible="false" />
<filter targetName="run" isVisible="false" />
<filter targetName="jar-2" isVisible="false" />
</targetFilters>
<treeView value="true" />
<verbose value="true" />
<viewClosedWhenNoErrors value="false" />
</buildFile>
</component>
<component name="editorHistoryManager">
<entry file="file://$PROJECT_DIR$/src/net/thauvin/j2me/yahoome/YahooME.java">
<provider selected="true" editor-type-id="text-editor">
<state line="53" column="70" selection-start="2225" selection-end="2225" vertical-scroll-proportion="-0.255">
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/build.xml">
<provider selected="true" editor-type-id="text-editor">
<state line="1" column="22" selection-start="62" selection-end="62" vertical-scroll-proportion="0.027642276">
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/yahoome.wml">
<provider selected="true" editor-type-id="text-editor">
<state line="20" column="28" selection-start="555" selection-end="555" vertical-scroll-proportion="0.55284554">
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/src/net/thauvin/j2me/yahoome/RmsIndex.java">
<provider selected="true" editor-type-id="text-editor">
<state line="32" column="26" selection-start="1398" selection-end="1398" vertical-scroll-proportion="0.15934959">
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/src/net/thauvin/j2me/yahoome/HistoryScreen.java">
<provider selected="true" editor-type-id="text-editor">
<state line="59" column="56" selection-start="2223" selection-end="2223" vertical-scroll-proportion="0.66341466">
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/src/net/thauvin/j2me/yahoome/HelpScreen.java">
<provider selected="true" editor-type-id="text-editor">
<state line="78" column="24" selection-start="3826" selection-end="3831" vertical-scroll-proportion="1.0183333">
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/src/net/thauvin/j2me/yahoome/MainScreen.java">
<provider selected="true" editor-type-id="text-editor">
<state line="44" column="105" selection-start="1957" selection-end="1957" vertical-scroll-proportion="0.028333334">
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/src/net/thauvin/j2me/yahoome/PrefsScreen.java">
<provider selected="true" editor-type-id="text-editor">
<state line="77" column="38" selection-start="2669" selection-end="2669" vertical-scroll-proportion="0.58699185">
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/midp-1/net/thauvin/j2me/yahoome/Util.java">
<provider selected="true" editor-type-id="text-editor">
<state line="33" column="6" selection-start="1617" selection-end="1617" vertical-scroll-proportion="0.91219515">
<folding />
</state>
</provider>
</entry>
</component>
</project>

44
YahooME-2.iml Normal file
View file

@ -0,0 +1,44 @@
<?xml version="1.0" encoding="UTF-8"?>
<module version="4" relativePaths="true" type="JAVA_MODULE">
<component name="ModuleRootManager" />
<component name="NewModuleRootManager">
<output url="file://$MODULE_DIR$/build" />
<exclude-output />
<exclude-exploded />
<content url="file://$MODULE_DIR$">
<sourceFolder url="file://$MODULE_DIR$/midp-2" isTestSource="false" />
<sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" />
</content>
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
<orderEntry type="module-library">
<library>
<CLASSES>
<root url="jar://$MODULE_DIR$/lib/cldcapi10.jar!/" />
</CLASSES>
<JAVADOC />
<SOURCES />
</library>
</orderEntry>
<orderEntry type="module-library">
<library>
<CLASSES>
<root url="jar://$MODULE_DIR$/lib/wma.jar!/" />
</CLASSES>
<JAVADOC />
<SOURCES />
</library>
</orderEntry>
<orderEntry type="module-library">
<library>
<CLASSES>
<root url="jar://$MODULE_DIR$/lib/midpapi20.jar!/" />
</CLASSES>
<JAVADOC />
<SOURCES />
</library>
</orderEntry>
<orderEntryProperties />
</component>
</module>

259
YahooME-2.ipr Normal file
View file

@ -0,0 +1,259 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4" relativePaths="false">
<component name="AntConfiguration">
<defaultAnt bundledAnt="true" />
</component>
<component name="BSFConsole">
<sendcommandbycontrolenter>false</sendcommandbycontrolenter>
<restoresystemstreams>false</restoresystemstreams>
<outwaitsforerr>false</outwaitsforerr>
<errwaitsforout>false</errwaitsforout>
<storedupsinrecentcommands>false</storedupsinrecentcommands>
<moduleforclasspath />
<includeoutputpath>false</includeoutputpath>
<includetestsoutputpath>false</includetestsoutputpath>
<languages>
<language name="ant" engine="org.kos.bsfconsoleplugin.languages.AntConsoleBSFEngine" />
<language name="beanshell" engine="bsh.util.BeanShellBSFEngine" />
<language name="netrexx" engine="org.apache.bsf.engines.netrexx.NetRexxEngine" />
<language name="xslt" engine="org.apache.bsf.engines.xslt.XSLTEngine" />
<language name="beanbasic" engine="org.apache.bsf.engines.beanbasic.BeanBasicEngine" />
<language name="bml" engine="org.apache.bml.ext.BMLEngine" />
<language name="groovy" engine="org.codehaus.groovy.bsf.GroovyEngine" />
<language name="jacl" engine="org.apache.bsf.engines.jacl.JaclEngine" />
<language name="java" engine="org.apache.bsf.engines.java.JavaEngine" />
<language name="javaclass" engine="org.apache.bsf.engines.javaclass.JavaClassEngine" />
<language name="javascript" engine="org.apache.bsf.engines.javascript.JavaScriptEngine" />
<language name="jpython" engine="org.apache.bsf.engines.jpython.JPythonEngine" />
<language name="jscript" engine="org.apache.bsf.engines.activescript.ActiveScriptEngine" />
<language name="judoscript" engine="com.judoscript.BSFJudoEngine" />
<language name="jython" engine="org.apache.bsf.engines.jython.JythonEngine" />
<language name="lotusscript" engine="org.apache.bsf.engines.lotusscript.LsEngine" />
<language name="perl" engine="org.apache.bsf.engines.perl.PerlEngine" />
<language name="perlscript" engine="org.apache.bsf.engines.activescript.ActiveScriptEngine" />
<language name="pnuts" engine="pnuts.ext.PnutsBSFEngine" />
<language name="ruby" engine="org.jruby.javasupport.bsf.JRubyEngine" />
<language name="vbscript" engine="org.apache.bsf.engines.activescript.ActiveScriptEngine" />
</languages>
<startupscripts />
<preferredrecentcommandsdividerlocations>
<dividerlocationd language="beanshell" position="1352" />
</preferredrecentcommandsdividerlocations>
<BSFConsoleSearchOptions searchfromcursor="false">
<recentsearches />
</BSFConsoleSearchOptions>
</component>
<component name="CodeStyleSettingsManager">
<option name="PER_PROJECT_SETTINGS" />
<option name="USE_PER_PROJECT_SETTINGS" value="false" />
</component>
<component name="CompilerConfiguration">
<option name="DEFAULT_COMPILER" value="Javac" />
<option name="CLEAR_OUTPUT_DIRECTORY" value="false" />
<option name="DEPLOY_AFTER_MAKE" value="0" />
<resourceExtensions>
<entry name=".+\.(properties|xml|html|dtd|tld)" />
<entry name=".+\.(gif|png|jpeg|jpg)" />
</resourceExtensions>
<wildcardResourcePatterns>
<entry name="?*.properties" />
<entry name="?*.xml" />
<entry name="?*.html" />
<entry name="?*.dtd" />
<entry name="?*.tld" />
<entry name="?*.gif" />
<entry name="?*.png" />
<entry name="?*.jpeg" />
<entry name="?*.jpg" />
</wildcardResourcePatterns>
</component>
<component name="DataSourceManagerImpl" />
<component name="DependencyValidationManager" />
<component name="EntryPointsManager">
<entry_points />
</component>
<component name="ExportToHTMLSettings">
<option name="PRINT_LINE_NUMBERS" value="false" />
<option name="OPEN_IN_BROWSER" value="false" />
<option name="OUTPUT_DIRECTORY" />
</component>
<component name="GUI Designer component loader factory" />
<component name="JavacSettings">
<option name="DEBUGGING_INFO" value="true" />
<option name="GENERATE_NO_WARNINGS" value="false" />
<option name="DEPRECATION" value="true" />
<option name="ADDITIONAL_OPTIONS_STRING" value="" />
<option name="MAXIMUM_HEAP_SIZE" value="128" />
<option name="USE_GENERICS_COMPILER" value="false" />
</component>
<component name="JavadocGenerationManager">
<option name="OUTPUT_DIRECTORY" />
<option name="OPTION_SCOPE" value="protected" />
<option name="OPTION_HIERARCHY" value="true" />
<option name="OPTION_NAVIGATOR" value="true" />
<option name="OPTION_INDEX" value="true" />
<option name="OPTION_SEPARATE_INDEX" value="true" />
<option name="OPTION_DOCUMENT_TAG_USE" value="true" />
<option name="OPTION_DOCUMENT_TAG_AUTHOR" value="true" />
<option name="OPTION_DOCUMENT_TAG_VERSION" value="true" />
<option name="OPTION_DOCUMENT_TAG_DEPRECATED" value="true" />
<option name="OPTION_DEPRECATED_LIST" value="true" />
<option name="OTHER_OPTIONS" />
<option name="HEAP_SIZE" />
<option name="OPEN_IN_BROWSER" value="true" />
</component>
<component name="JikesSettings">
<option name="JIKES_PATH" value="" />
<option name="DEBUGGING_INFO" value="true" />
<option name="DEPRECATION" value="true" />
<option name="GENERATE_NO_WARNINGS" value="false" />
<option name="IS_EMACS_ERRORS_MODE" value="true" />
<option name="ADDITIONAL_OPTIONS_STRING" value="" />
</component>
<component name="PEExternalization">
<option name="IGNORE_METHOD_NAMES" value="" />
<option name="IGNORE_METHOD_NAMES_ENABLED" value="false" />
<option name="IGNORE_CLASS_CONSTRUCTORS">
<value>
<option class="Exception" includeInheritors="true" />
</value>
</option>
<option name="IGNORE_CLASS_CONSTRUCTOR_NAMES_ENABLED" value="true" />
<option name="IGNORE_CLASS_METHODS_ENABLED" value="true" />
<option name="IGNORE_STRINGS_CONTAINS_ONLY_ENABLED" value="true" />
<option name="IGNORE_STRINGS_CONTAINS_ONLY_WHITESPACES" value="true" />
<option name="IGNORE_STRINGS_CONTAINS_ONLY_PUNCTUATIONS" value="true" />
<option name="IGNORE_STRINGS_CONTAINS_ONLY_SPECIFIED_ENABLED" value="true" />
<option name="IGNORE_STRINGS_CONTAINS_ONLY_SPECIFIED" value="" />
<option name="IGNORE_CLASS_METHODS">
<value>
<option class="Exception" includeInheritors="false" />
<option class="java.util.ResourceBundle" includeInheritors="true" />
</value>
</option>
<option name="IGNORE_CONSTANTS_DECLARATIONS" value="true" />
</component>
<component name="Palette2">
<group name="Swing">
<item class="com.intellij.uiDesigner.HSpacer" tooltip-text="Horizontal Spacer" icon="/com/intellij/uiDesigner/icons/hspacer.png" removable="false">
<default-constraints vsize-policy="1" hsize-policy="6" anchor="0" fill="1" />
</item>
<item class="com.intellij.uiDesigner.VSpacer" tooltip-text="Vertical Spacer" icon="/com/intellij/uiDesigner/icons/vspacer.png" removable="false">
<default-constraints vsize-policy="6" hsize-policy="1" anchor="0" fill="2" />
</item>
<item class="javax.swing.JPanel" icon="/com/intellij/uiDesigner/icons/panel.png" removable="false">
<default-constraints vsize-policy="3" hsize-policy="3" anchor="0" fill="3" />
</item>
<item class="javax.swing.JScrollPane" icon="/com/intellij/uiDesigner/icons/scrollPane.png" removable="false">
<default-constraints vsize-policy="7" hsize-policy="7" anchor="0" fill="3" />
</item>
<item class="javax.swing.JButton" icon="/com/intellij/uiDesigner/icons/button.png" removable="false">
<default-constraints vsize-policy="0" hsize-policy="3" anchor="0" fill="1" />
<initial-values>
<property name="text" value="Button" />
</initial-values>
</item>
<item class="javax.swing.JRadioButton" icon="/com/intellij/uiDesigner/icons/radioButton.png" removable="false">
<default-constraints vsize-policy="0" hsize-policy="3" anchor="8" fill="0" />
<initial-values>
<property name="text" value="RadioButton" />
</initial-values>
</item>
<item class="javax.swing.JCheckBox" icon="/com/intellij/uiDesigner/icons/checkBox.png" removable="false">
<default-constraints vsize-policy="0" hsize-policy="3" anchor="8" fill="0" />
<initial-values>
<property name="text" value="CheckBox" />
</initial-values>
</item>
<item class="javax.swing.JLabel" icon="/com/intellij/uiDesigner/icons/label.png" removable="false">
<default-constraints vsize-policy="0" hsize-policy="0" anchor="8" fill="0" />
<initial-values>
<property name="text" value="Label" />
</initial-values>
</item>
<item class="javax.swing.JTextField" icon="/com/intellij/uiDesigner/icons/textField.png" removable="false">
<default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1">
<preferred-size width="150" height="-1" />
</default-constraints>
</item>
<item class="javax.swing.JPasswordField" icon="/com/intellij/uiDesigner/icons/passwordField.png" removable="false">
<default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1">
<preferred-size width="150" height="-1" />
</default-constraints>
</item>
<item class="javax.swing.JFormattedTextField" icon="/com/intellij/uiDesigner/icons/formattedTextField.png" removable="false">
<default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1">
<preferred-size width="150" height="-1" />
</default-constraints>
</item>
<item class="javax.swing.JTextArea" icon="/com/intellij/uiDesigner/icons/textArea.png" removable="false">
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
<preferred-size width="150" height="50" />
</default-constraints>
</item>
<item class="javax.swing.JTextPane" icon="/com/intellij/uiDesigner/icons/textPane.png" removable="false">
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
<preferred-size width="150" height="50" />
</default-constraints>
</item>
<item class="javax.swing.JEditorPane" icon="/com/intellij/uiDesigner/icons/editorPane.png" removable="false">
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
<preferred-size width="150" height="50" />
</default-constraints>
</item>
<item class="javax.swing.JComboBox" icon="/com/intellij/uiDesigner/icons/comboBox.png" removable="false">
<default-constraints vsize-policy="0" hsize-policy="2" anchor="8" fill="1" />
</item>
<item class="javax.swing.JTable" icon="/com/intellij/uiDesigner/icons/table.png" removable="false">
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
<preferred-size width="150" height="50" />
</default-constraints>
</item>
<item class="javax.swing.JList" icon="/com/intellij/uiDesigner/icons/list.png" removable="false">
<default-constraints vsize-policy="6" hsize-policy="2" anchor="0" fill="3">
<preferred-size width="150" height="50" />
</default-constraints>
</item>
<item class="javax.swing.JTree" icon="/com/intellij/uiDesigner/icons/tree.png" removable="false">
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
<preferred-size width="150" height="50" />
</default-constraints>
</item>
<item class="javax.swing.JTabbedPane" icon="/com/intellij/uiDesigner/icons/tabbedPane.png" removable="false">
<default-constraints vsize-policy="3" hsize-policy="3" anchor="0" fill="3">
<preferred-size width="200" height="200" />
</default-constraints>
</item>
<item class="javax.swing.JSplitPane" icon="/com/intellij/uiDesigner/icons/splitPane.png" removable="false">
<default-constraints vsize-policy="3" hsize-policy="3" anchor="0" fill="3">
<preferred-size width="200" height="200" />
</default-constraints>
</item>
<item class="javax.swing.JSpinner" icon="/com/intellij/uiDesigner/icons/spinner.png" removable="false">
<default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1" />
</item>
<item class="javax.swing.JSlider" icon="/com/intellij/uiDesigner/icons/slider.png" removable="false">
<default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1" />
</item>
</group>
</component>
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/YahooME-2.iml" filepath="$PROJECT_DIR$/YahooME-2.iml" />
</modules>
</component>
<component name="ProjectRootManager" version="2" assert-keyword="false" jdk-15="false" project-jdk-name="1.4.x" />
<component name="RmicSettings">
<option name="IS_EANABLED" value="false" />
<option name="DEBUGGING_INFO" value="true" />
<option name="GENERATE_NO_WARNINGS" value="false" />
<option name="GENERATE_IIOP_STUBS" value="false" />
<option name="ADDITIONAL_OPTIONS_STRING" value="" />
</component>
<component name="libraryTable" />
<component name="uidesigner-configuration">
<option name="INSTRUMENT_CLASSES" value="true" />
<option name="COPY_FORMS_RUNTIME_TO_OUTPUT" value="true" />
</component>
</project>

408
YahooME-2.iws Normal file
View file

@ -0,0 +1,408 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4" relativePaths="false">
<component name="AspectsView" />
<component name="BookmarkManager" />
<component name="CheckinPanelState" />
<component name="Commander">
<leftPanel />
<rightPanel />
<splitter proportion="0.5" />
</component>
<component name="CompilerWorkspaceConfiguration">
<option name="COMPILE_IN_BACKGROUND" value="false" />
<option name="AUTO_SHOW_ERRORS_IN_EDITOR" value="true" />
<option name="CLOSE_MESSAGE_VIEW_IF_SUCCESS" value="true" />
</component>
<component name="Cvs2Configuration">
<option name="ON_FILE_ADDING" value="0" />
<option name="ON_FILE_REMOVING" value="0" />
<option name="PRUNE_EMPTY_DIRECTORIES" value="true" />
<option name="SHOW_UPDATE_OPTIONS" value="true" />
<option name="SHOW_ADD_OPTIONS" value="true" />
<option name="SHOW_REMOVE_OPTIONS" value="true" />
<option name="MERGING_MODE" value="0" />
<option name="MERGE_WITH_BRANCH1_NAME" value="HEAD" />
<option name="MERGE_WITH_BRANCH2_NAME" value="HEAD" />
<option name="RESET_STICKY" value="false" />
<option name="CREATE_NEW_DIRECTORIES" value="true" />
<option name="DEFAULT_TEXT_FILE_SUBSTITUTION" value="kv" />
<option name="PROCESS_UNKNOWN_FILES" value="false" />
<option name="PROCESS_DELETED_FILES" value="false" />
<option name="SHOW_EDIT_DIALOG" value="false" />
<option name="RESERVED_EDIT" value="false" />
<option name="FILE_HISTORY_SPLITTER_PROPORTION" value="0.6" />
<option name="SHOW_CHECKOUT_OPTIONS" value="true" />
<option name="CHECKOUT_DATE_OR_REVISION_SETTINGS">
<value>
<option name="BRANCH" value="" />
<option name="DATE" value="" />
<option name="USE_BRANCH" value="false" />
<option name="USE_DATE" value="false" />
</value>
</option>
<option name="UPDATE_DATE_OR_REVISION_SETTINGS">
<value>
<option name="BRANCH" value="" />
<option name="DATE" value="" />
<option name="USE_BRANCH" value="false" />
<option name="USE_DATE" value="false" />
</value>
</option>
<option name="SHOW_CHANGES_REVISION_SETTINGS">
<value>
<option name="BRANCH" value="" />
<option name="DATE" value="" />
<option name="USE_BRANCH" value="false" />
<option name="USE_DATE" value="false" />
</value>
</option>
<option name="SHOW_OUTPUT" value="false" />
<option name="SHOW_FILE_HISTORY_AS_TREE" value="false" />
<option name="UPDATE_GROUP_BY_PACKAGES" value="false" />
<option name="ADD_WATCH_INDEX" value="0" />
<option name="REMOVE_WATCH_INDEX" value="0" />
<option name="UPDATE_KEYWORD_SUBSTITUTION" />
<option name="MAKE_NEW_FILES_READONLY" value="false" />
<option name="SHOW_CORRUPTED_PROJECT_FILES" value="0" />
<option name="TAG_AFTER_FILE_COMMIT" value="false" />
<option name="TAG_AFTER_FILE_COMMIT_NAME" value="" />
<option name="TAG_AFTER_PROJECT_COMMIT" value="false" />
<option name="TAG_AFTER_PROJECT_COMMIT_NAME" value="" />
<option name="PUT_FOCUS_INTO_COMMENT" value="true" />
<option name="SHOW_CHECKIN_OPTIONS" value="true" />
<option name="FORCE_NON_EMPTY_COMMENT" value="false" />
<option name="LAST_COMMIT_MESSAGE" value="" />
<option name="SAVE_LAST_COMMIT_MESSAGE" value="true" />
<option name="CHECKIN_DIALOG_SPLITTER_PROPORTION" value="0.8" />
<option name="OPTIMIZE_IMPORTS_BEFORE_PROJECT_COMMIT" value="false" />
<option name="OPTIMIZE_IMPORTS_BEFORE_FILE_COMMIT" value="false" />
<option name="REFORMAT_BEFORE_PROJECT_COMMIT" value="false" />
<option name="REFORMAT_BEFORE_FILE_COMMIT" value="false" />
<option name="FILE_HISTORY_DIALOG_COMMENTS_SPLITTER_PROPORTION" value="0.8" />
<option name="FILE_HISTORY_DIALOG_SPLITTER_PROPORTION" value="0.5" />
</component>
<component name="CvsTabbedWindow" />
<component name="DaemonCodeAnalyzer">
<disable_hints />
</component>
<component name="DebuggerManager">
<line_breakpoints />
<exception_breakpoints>
<breakpoint_any>
<option name="NOTIFY_CAUGHT" value="true" />
<option name="NOTIFY_UNCAUGHT" value="true" />
<option name="ENABLED" value="false" />
<option name="SUSPEND_VM" value="true" />
<option name="LOG_ENABLED" value="false" />
<option name="LOG_EXPRESSION_ENABLED" value="false" />
<option name="COUNT_FILTER_ENABLED" value="false" />
<option name="COUNT_FILTER" value="0" />
<option name="CONDITION_ENABLED" value="false" />
<option name="CLASS_FILTERS_ENABLED" value="false" />
<option name="INSTANCE_FILTERS_ENABLED" value="false" />
<option name="myCondition" value="" />
<option name="myLogMessage" value="" />
</breakpoint_any>
</exception_breakpoints>
<field_breakpoints />
<method_breakpoints />
</component>
<component name="ErrorTreeViewConfiguration">
<option name="IS_AUTOSCROLL_TO_SOURCE" value="false" />
<option name="HIDE_WARNINGS" value="false" />
</component>
<component name="FileEditorManager" split-orientation="vertical" split-proportion="0.5">
<first-group selected-file="file://$PROJECT_DIR$/midp-2/net/thauvin/j2me/yahoome/Util.java">
<entry file="file://$PROJECT_DIR$/build.xml" pinned="false">
<provider selected="true" editor-type-id="text-editor">
<state line="0" column="0" selection-start="0" selection-end="0" vertical-scroll-proportion="0.0">
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/midp-2/net/thauvin/j2me/yahoome/Util.java" pinned="false">
<provider selected="true" editor-type-id="text-editor">
<state line="33" column="6" selection-start="1617" selection-end="1617" vertical-scroll-proportion="0.6034483">
<folding />
</state>
</provider>
</entry>
</first-group>
<second-group />
</component>
<component name="HierarchyBrowserManager">
<option name="IS_AUTOSCROLL_TO_SOURCE" value="false" />
<option name="SORT_ALPHABETICALLY" value="false" />
<option name="HIDE_CLASSES_WHERE_METHOD_NOT_IMPLEMENTED" value="false" />
</component>
<component name="InspectionManager">
<option name="AUTOSCROLL_TO_SOURCE" value="false" />
<option name="SPLITTER_PROPORTION" value="0.5" />
<profile name="Erik's Inspections" />
</component>
<component name="J2EEProjectPane" />
<component name="NamedScopeManager" />
<component name="PackagesPane">
<expanded_node url="net" module="YahooME-2" type="package" />
<expanded_node url="net.thauvin" module="YahooME-2" type="package" />
<expanded_node url="" module="YahooME-2" type="module" />
<expanded_node url="net.thauvin.j2me" module="YahooME-2" type="package" />
</component>
<component name="ProjectPane">
<expanded_node url="file://$PROJECT_DIR$/midp-2/net" module="YahooME-2" type="directory" />
<expanded_node url="file://$PROJECT_DIR$/midp-1/net" module="YahooME-2" type="directory" />
<expanded_node url="file://$PROJECT_DIR$/midp-1/net/thauvin/j2me/yahoome" module="YahooME-2" type="directory" />
<expanded_node url="file://$PROJECT_DIR$" module="YahooME-2" type="directory" />
<expanded_node url="file://$PROJECT_DIR$/midp-1" module="YahooME-2" type="directory" />
<expanded_node url="file://$PROJECT_DIR$/midp-2/net/thauvin/j2me/yahoome" module="YahooME-2" type="directory" />
<expanded_node url="" module="YahooME-2" type="module" />
<expanded_node url="file://$PROJECT_DIR$/midp-2" module="YahooME-2" type="directory" />
<expanded_node url="file://$PROJECT_DIR$/midp-1/net/thauvin" module="YahooME-2" type="directory" />
<expanded_node url="file://$PROJECT_DIR$/midp-1/net/thauvin/j2me" module="YahooME-2" type="directory" />
<expanded_node url="file://$PROJECT_DIR$/midp-2/net/thauvin/j2me" module="YahooME-2" type="directory" />
<expanded_node url="file://$PROJECT_DIR$/midp-2/net/thauvin" module="YahooME-2" type="directory" />
</component>
<component name="ProjectView">
<navigator currentView="ProjectPane" splitterProportion="0.5">
<flattenPackages />
<showMembers />
<showModules />
<showLibraryContents />
<hideEmptyPackages />
<showStructure PackagesPane="false" ProjectPane="false" />
<autoscrollToSource />
<autoscrollFromSource />
</navigator>
</component>
<component name="PropertiesComponent">
<property name="MemberChooser.copyJavadoc" value="false" />
<property name="GoToClass.includeLibraries" value="false" />
<property name="MemberChooser.showClasses" value="true" />
<property name="MemberChooser.sorted" value="false" />
<property name="GoToFile.includeJavaFiles" value="false" />
<property name="GoToClass.toSaveIncludeLibraries" value="false" />
</component>
<component name="Regex">
<option name="pos1" value="218" />
<option name="pos2" value="218" />
<option name="pos3" value="162" />
<option name="pos4" value="444" />
<option name="pos5" value="162" />
<option name="autoUpdate" value="true" />
<option name="referenceOn" value="false" />
<option name="referencePos" value="0" />
</component>
<component name="RunManager">
<activeType name="Application" />
<configuration selected="false" default="true" type="Application" factoryName="Application">
<option name="MAIN_CLASS_NAME" />
<option name="VM_PARAMETERS" />
<option name="PROGRAM_PARAMETERS" />
<option name="WORKING_DIRECTORY" value="$PROJECT_DIR$" />
<module name="" />
</configuration>
<configuration selected="false" default="true" type="Remote" factoryName="Remote">
<option name="USE_SOCKET_TRANSPORT" value="true" />
<option name="SERVER_MODE" value="false" />
<option name="SHMEM_ADDRESS" value="javadebug" />
<option name="HOST" value="localhost" />
<option name="PORT" value="5005" />
</configuration>
<configuration selected="false" default="true" type="JUnit" factoryName="JUnit">
<module name="" />
<option name="PACKAGE_NAME" />
<option name="MAIN_CLASS_NAME" />
<option name="METHOD_NAME" />
<option name="TEST_OBJECT" />
<option name="VM_PARAMETERS" />
<option name="PARAMETERS" />
<option name="WORKING_DIRECTORY" value="$PROJECT_DIR$" />
<option name="ADDITIONAL_CLASS_PATH" />
<option name="TEST_SEARCH_SCOPE">
<value defaultName="wholeProject" />
</option>
</configuration>
<configuration selected="false" default="true" type="WebLogic Instance" factoryName="Local">
<option name="WORKING_DIRECTORY" />
<option name="HOST" value="localhost" />
<option name="PORT" value="7001" />
<option name="LOCAL" value="true" />
<option name="OPEN_IN_BROWSER" value="true" />
<option name="OPEN_IN_BROWSER_URL" value="/" />
<option name="COMMON_VM_ARGUMENTS" value="" />
<option name="DOMAIN_PATH" value="" />
<option name="USER" value="weblogic" />
<option name="PASSWORD" value="weblogic" />
<option name="SERVER_NAME" value="myserver" />
<option name="DOMAIN_NAME" value="mydomain" />
</configuration>
<configuration selected="false" default="true" type="Applet" factoryName="Applet">
<module name="" />
<option name="MAIN_CLASS_NAME" />
<option name="HTML_FILE_NAME" />
<option name="HTML_USED" value="false" />
<option name="WIDTH" value="400" />
<option name="HEIGHT" value="300" />
<option name="POLICY_FILE" value="C:/IntelliJ-IDEA/bin/appletviewer.policy" />
<option name="VM_PARAMETERS" />
</configuration>
</component>
<component name="SelectInManager" />
<component name="StarteamConfiguration">
<option name="SERVER" value="" />
<option name="PORT" value="49201" />
<option name="USER" value="" />
<option name="PASSWORD" value="" />
<option name="PROJECT" value="" />
<option name="VIEW" value="" />
<option name="ALTERNATIVE_WORKING_PATH" value="" />
<option name="PUT_FOCUS_INTO_COMMENT" value="false" />
<option name="SHOW_CHECKIN_OPTIONS" value="true" />
<option name="FORCE_NON_EMPTY_COMMENT" value="false" />
<option name="LAST_COMMIT_MESSAGE" value="" />
<option name="SAVE_LAST_COMMIT_MESSAGE" value="true" />
<option name="CHECKIN_DIALOG_SPLITTER_PROPORTION" value="0.8" />
<option name="OPTIMIZE_IMPORTS_BEFORE_PROJECT_COMMIT" value="false" />
<option name="OPTIMIZE_IMPORTS_BEFORE_FILE_COMMIT" value="false" />
<option name="REFORMAT_BEFORE_PROJECT_COMMIT" value="false" />
<option name="REFORMAT_BEFORE_FILE_COMMIT" value="false" />
<option name="FILE_HISTORY_DIALOG_COMMENTS_SPLITTER_PROPORTION" value="0.8" />
<option name="FILE_HISTORY_DIALOG_SPLITTER_PROPORTION" value="0.5" />
</component>
<component name="StructuralSearchPlugin" />
<component name="StructureViewFactory">
<option name="SORT_MODE" value="0" />
<option name="GROUP_INHERITED" value="true" />
<option name="AUTOSCROLL_MODE" value="true" />
<option name="SHOW_FIELDS" value="true" />
<option name="AUTOSCROLL_FROM_SOURCE" value="false" />
<option name="GROUP_GETTERS_AND_SETTERS" value="true" />
<option name="SHOW_INHERITED" value="false" />
<option name="HIDE_NOT_PUBLIC" value="false" />
</component>
<component name="TodoView" selected-index="0">
<todo-panel id="selected-file">
<are-packages-shown value="false" />
<flatten-packages value="false" />
<is-autoscroll-to-source value="true" />
</todo-panel>
<todo-panel id="all">
<are-packages-shown value="true" />
<flatten-packages value="false" />
<is-autoscroll-to-source value="true" />
</todo-panel>
</component>
<component name="ToolWindowManager">
<frame x="-4" y="-4" width="1288" height="808" extended-state="0" />
<editor active="false" />
<layout>
<window_info id="CVS" active="false" anchor="bottom" auto_hide="false" internal_type="docked" type="docked" visible="false" weight="0.33032128" order="8" />
<window_info id="Regex" active="false" anchor="bottom" auto_hide="false" internal_type="docked" type="docked" visible="false" weight="0.33" order="8" />
<window_info id="TODO" active="false" anchor="bottom" auto_hide="false" internal_type="docked" type="docked" visible="false" weight="0.33" order="7" />
<window_info id="Project" active="true" anchor="left" auto_hide="false" internal_type="docked" type="docked" visible="true" weight="0.23300971" order="0" />
<window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="docked" type="docked" visible="false" weight="0.33088234" order="1" />
<window_info id="Jalopy" active="false" anchor="bottom" auto_hide="false" internal_type="docked" type="docked" visible="false" weight="0.33" order="8" />
<window_info id="Structure" active="false" anchor="left" auto_hide="false" internal_type="docked" type="docked" visible="false" weight="0.25" order="1" />
<window_info id="Messages" active="false" anchor="bottom" auto_hide="false" internal_type="docked" type="docked" visible="false" weight="0.33" order="8" />
<window_info id="Inspection" active="false" anchor="bottom" auto_hide="false" internal_type="docked" type="docked" visible="false" weight="0.3995984" order="6" />
<window_info id="Profile" active="false" anchor="bottom" auto_hide="false" internal_type="docked" type="docked" visible="false" weight="0.33" order="8" />
<window_info id="Dependency Viewer" active="false" anchor="bottom" auto_hide="false" internal_type="docked" type="docked" visible="false" weight="0.33" order="8" />
<window_info id="Ant Build" active="false" anchor="right" auto_hide="false" internal_type="docked" type="docked" visible="false" weight="0.25" order="2" />
<window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="docked" type="docked" visible="false" weight="0.33" order="2" />
<window_info id="Hierarchy" active="false" anchor="right" auto_hide="false" internal_type="docked" type="docked" visible="false" weight="0.25" order="3" />
<window_info id="CVS File View" active="false" anchor="right" auto_hide="false" internal_type="docked" type="docked" visible="false" weight="0.33" order="0" />
<window_info id="Commander" active="false" anchor="right" auto_hide="false" internal_type="sliding" type="sliding" visible="false" weight="0.4" order="1" />
<window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="docked" type="docked" visible="false" weight="0.4" order="4" />
<window_info id="BSFConsole" active="false" anchor="bottom" auto_hide="false" internal_type="docked" type="docked" visible="false" weight="0.33032128" order="8" />
<window_info id="Properties File Structure" active="false" anchor="right" auto_hide="false" internal_type="docked" type="docked" visible="false" weight="0.33" order="4" />
<window_info id="Web" active="false" anchor="left" auto_hide="false" internal_type="docked" type="docked" visible="false" weight="0.25" order="2" />
<window_info id="Message" active="false" anchor="bottom" auto_hide="false" internal_type="docked" type="docked" visible="false" weight="0.33" order="0" />
<window_info id="EJB" active="false" anchor="bottom" auto_hide="false" internal_type="docked" type="docked" visible="false" weight="0.25" order="3" />
<window_info id="Cvs" active="false" anchor="bottom" auto_hide="false" internal_type="docked" type="docked" visible="false" weight="0.25" order="5" />
</layout>
</component>
<component name="VCS.FileViewConfiguration">
<option name="SELECTED_STATUSES" value="DEFAULT" />
<option name="SELECTED_COLUMNS" value="DEFAULT" />
<option name="SHOW_FILTERS" value="true" />
<option name="CUSTOMIZE_VIEW" value="true" />
<option name="SHOW_FILE_HISTORY_AS_TREE" value="true" />
</component>
<component name="VcsManagerConfiguration">
<option name="ACTIVE_VCS_NAME" value="CVS" />
<option name="STATE" value="0" />
</component>
<component name="VssConfiguration">
<CheckoutOptions>
<option name="COMMENT" value="" />
<option name="DO_NOT_GET_LATEST_VERSION" value="false" />
<option name="REPLACE_WRITABLE" value="false" />
<option name="RECURSIVE" value="false" />
</CheckoutOptions>
<CheckinOptions>
<option name="COMMENT" value="" />
<option name="KEEP_CHECKED_OUT" value="false" />
<option name="RECURSIVE" value="false" />
</CheckinOptions>
<AddOptions>
<option name="COMMENT" value="" />
<option name="STORE_ONLY_LATEST_VERSION" value="false" />
<option name="CHECK_OUT_IMMEDIATELY" value="false" />
<option name="FILE_TYPE" value="0" />
</AddOptions>
<UndocheckoutOptions>
<option name="MAKE_WRITABLE" value="false" />
<option name="REPLACE_LOCAL_COPY" value="0" />
<option name="RECURSIVE" value="false" />
</UndocheckoutOptions>
<GetOptions>
<option name="REPLACE_WRITABLE" value="0" />
<option name="MAKE_WRITABLE" value="false" />
<option name="RECURSIVE" value="false" />
</GetOptions>
<option name="CLIENT_PATH" value="" />
<option name="SRCSAFEINI_PATH" value="" />
<option name="USER_NAME" value="" />
<option name="PWD" value="" />
<option name="SHOW_CHECKOUT_OPTIONS" value="true" />
<option name="SHOW_ADD_OPTIONS" value="true" />
<option name="VSS_IS_INITIALIZED" value="false" />
<option name="SHOW_UNDOCHECKOUT_OPTIONS" value="true" />
<option name="SHOW_DIFF_OPTIONS" value="true" />
<option name="SHOW_GET_OPTIONS" value="true" />
<option name="REUSE_LAST_COMMENT" value="false" />
<option name="PUT_FOCUS_INTO_COMMENT" value="false" />
<option name="SHOW_CHECKIN_OPTIONS" value="true" />
<option name="FORCE_NON_EMPTY_COMMENT" value="false" />
<option name="LAST_COMMIT_MESSAGE" value="" />
<option name="SAVE_LAST_COMMIT_MESSAGE" value="true" />
<option name="CHECKIN_DIALOG_SPLITTER_PROPORTION" value="0.8" />
<option name="OPTIMIZE_IMPORTS_BEFORE_PROJECT_COMMIT" value="false" />
<option name="OPTIMIZE_IMPORTS_BEFORE_FILE_COMMIT" value="false" />
<option name="REFORMAT_BEFORE_PROJECT_COMMIT" value="false" />
<option name="REFORMAT_BEFORE_FILE_COMMIT" value="false" />
<option name="FILE_HISTORY_DIALOG_COMMENTS_SPLITTER_PROPORTION" value="0.8" />
<option name="FILE_HISTORY_DIALOG_SPLITTER_PROPORTION" value="0.5" />
</component>
<component name="antWorkspaceConfiguration">
<option name="IS_AUTOSCROLL_TO_SOURCE" value="false" />
<option name="FILTER_TARGETS" value="false" />
</component>
<component name="editorHistoryManager">
<entry file="file://$PROJECT_DIR$/build.xml">
<provider selected="true" editor-type-id="text-editor">
<state line="0" column="0" selection-start="0" selection-end="0" vertical-scroll-proportion="0.0">
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/midp-2/net/thauvin/j2me/yahoome/Util.java">
<provider selected="true" editor-type-id="text-editor">
<state line="33" column="6" selection-start="1617" selection-end="1617" vertical-scroll-proportion="0.6034483">
<folding />
</state>
</provider>
</entry>
</component>
</project>

10
YahooME-2.jad Normal file
View file

@ -0,0 +1,10 @@
MIDlet-1: YahooME,/yahoome.png,net.thauvin.j2me.yahoome.YahooME
MIDlet-Jar-URL: YahooME-2.jar
MIDlet-Icon: /yahoome.png
MIDlet-Version: 0.1
MIDlet-Description: YahooME
MIDlet-Name: YahooME
MIDlet-Vendor: Erik C. Thauvin
MIDlet-Info-URL: http://mobile.thauvin.net/j2me/
MicroEdition-Profile: MIDP-2.0
MIDlet-Permissions: javax.microedition.io.Connector.sms,javax.wireless.messaging.sms.send

8
YahooME.jad Normal file
View file

@ -0,0 +1,8 @@
MIDlet-1: YahooME,/yahoome.png,net.thauvin.j2me.yahoome.YahooME
MIDlet-Jar-URL: YahooME.jar
MIDlet-Icon: /yahoome.png
MIDlet-Version: 0.1
MIDlet-Description: YahooME
MIDlet-Name: YahooME
MIDlet-Vendor: Erik C. Thauvin
MIDlet-Info-URL: http://mobile.thauvin.net/j2me/

97
build.xml Normal file
View file

@ -0,0 +1,97 @@
<?xml version="1.0" encoding="UTF-8"?>
<project name="YahooME" default="build" basedir=".">
<taskdef resource="antenna.properties"/>
<property environment="env"/>
<property name="wtk.home" value="${env.WTK_HOME}"/>
<property name="path.build" value="build"/>
<property name="path.classes" value="${path.build}/classes"/>
<property name="path.src" value="src"/>
<property name="path.res" value="res"/>
<property name="path.deploy" value="deployed"/>
<property name="path.lib" value="lib"/>
<path id="path.class">
<fileset dir="${path.lib}">
<include name="**/*.jar"/>
<exclude name="midpapi20.jar"/>
</fileset>
</path>
<path id="path-2.class">
<fileset dir="${path.lib}">
<include name="**/*.jar"/>
<exclude name="midpapi10.jar"/>
</fileset>
</path>
<target name="init">
<tstamp/>
<mkdir dir="${path.build}"/>
<mkdir dir="${path.deploy}"/>
</target>
<target name="compile" depends="init" description="Compiles MIDP 1.x sources">
<mkdir dir="${path.classes}"/>
<touch>
<fileset dir="midp-1"/>
</touch>
<wtkbuild destdir="${path.classes}" bootclasspathref="path.class" preverify="false">
<src path="${path.src}"/>
<src path="midp-1"/>
</wtkbuild>
</target>
<target name="compile-2" depends="init" description="Compiles MIDP 2.x sources">
<mkdir dir="${path.classes}"/>
<touch>
<fileset dir="midp-2"/>
</touch>
<wtkbuild destdir="${path.classes}" bootclasspathref="path-2.class" preverify="false">
<src path="${path.src}"/>
<src path="midp-2"/>
</wtkbuild>
</target>
<target name="jar" depends="compile" description="Builds the MIDP 1.x jar">
<property name="wtk.midp.version" value="1.0"/>
<copy todir="${path.deploy}" file="${ant.project.name}.jad"/>
<wtkpackage jarfile="${path.deploy}/${ant.project.name}.jar"
jadfile="${path.deploy}/${ant.project.name}.jad"
obfuscate="true"
preverify="true"
bootclasspathref="path.class">
<fileset dir="${path.classes}"/>
<fileset dir="${path.res}" includes="*.png"/>
</wtkpackage>
</target>
<target name="jar-2" depends="compile-2" description="Builds the MIDP 2.x jar">
<property name="wtk.midp.version" value="2.0"/>
<copy todir="${path.deploy}" file="${ant.project.name}-2.jad"/>
<wtkpackage jarfile="${path.deploy}/${ant.project.name}-2.jar"
jadfile="${path.deploy}/${ant.project.name}-2.jad"
obfuscate="true"
preverify="true"
bootclasspathref="path-2.class">
<fileset dir="${path.classes}"/>
<fileset dir="${path.res}" includes="*.png"/>
</wtkpackage>
</target>
<target name="run" description="Execute the MIDP 1.x midlet">
<wtkrun jadfile="${path.deploy}/${ant.project.name}.jad" device="DefaultColorPhone" wait="true"/>
</target>
<target name="run-2" description="Execute the MIDP 2.x midlet">
<wtkrun jadfile="${path.deploy}/${ant.project.name}-2.jad" device="DefaultColorPhone" wait="true"/>
</target>
<target name="build" depends="jar,clean,jar-2" description="Rebuilds project">
</target>
<target name="clean" depends="init" description="Removes classses">
<delete quiet="true" includeEmptyDirs="true">
<fileset dir="${path.build}" includes="*,*/**"/>
</delete>
</target>
</project>

BIN
lib/cldcapi10.jar Normal file

Binary file not shown.

BIN
lib/midpapi10.jar Normal file

Binary file not shown.

BIN
lib/midpapi20.jar Normal file

Binary file not shown.

BIN
lib/wma.jar Normal file

Binary file not shown.

View file

@ -0,0 +1,178 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title></title>
</head>
<body lang="en-US">
<div align="center"><big> Sun Microsystems, Inc. <br>
</big></div>
<div align="center"> <big>Binary Code License Agreement </big><br>
<br>
</div>
READ THE TERMS OF THIS AGREEMENT AND ANY PROVIDED SUPPLEMENTAL LICENSE
TERMS (COLLECTIVELY "AGREEMENT") CAREFULLY BEFORE OPENING THE SOFTWARE MEDIA
PACKAGE.&nbsp; BY OPENING THE SOFTWARE MEDIA PACKAGE, YOU AGREE TO THE TERMS
OF THIS AGREEMENT.&nbsp; IF YOU ARE ACCESSING THE SOFTWARE ELECTRONICALLY,
INDICATE YOUR ACCEPTANCE OF THESE TERMS BY SELECTING THE "ACCEPT" BUTTON
AT THE END OF THIS AGREEMENT.&nbsp; IF YOU DO NOT AGREE TO ALL THESE TERMS,
PROMPTLY RETURN THE UNUSED SOFTWARE TO YOUR PLACE OF PURCHASE FOR A REFUND
OR, IF THE SOFTWARE IS ACCESSED ELECTRONICALLY, SELECT THE "DECLINE" BUTTON
AT THE END OF THIS AGREEMENT.<br>
<br>
<b>1. LICENSE TO USE.</b>&nbsp; Sun grants you a non-exclusive and non-transferable
license for the internal use only of the accompanying software and documentation
and any error corrections provided by Sun (collectively "Software"), by
the number of users and the class of computer hardware for which the corresponding
fee has been paid. <br>
<br>
<b>2. RESTRICTIONS.</b>&nbsp; Software is confidential and copyrighted.
Title to Software and all associated intellectual property rights is retained
by Sun and/or its licensors.&nbsp; Except as specifically authorized in any
Supplemental License Terms, you may not make copies of Software, other than
a single copy of Software for archival purposes.&nbsp; Unless enforcement
is prohibited by applicable law, you may not modify, decompile, or reverse
engineer Software.&nbsp; You acknowledge that Software is not designed,
licensed or intended for use in the design, construction, operation or maintenance
of any nuclear facility.&nbsp; Sun disclaims any express or implied warranty
of fitness for such uses.&nbsp; No right, title or interest in or to any
trademark, service mark, logo or trade name of Sun or its licensors is granted
under this Agreement. <br>
<br>
<b>3. LIMITED WARRANTY.</b>&nbsp; Sun warrants to you that for a period
of ninety (90) days from the date of purchase, as evidenced by a copy of the
receipt, the media on which Software is furnished (if any) will be free of
defects in materials and workmanship under normal use.&nbsp; Except for the
foregoing, Software is provided "AS IS".&nbsp; Your exclusive remedy and
Sun's entire liability under this limited warranty will be at Sun's option
to replace Software media or refund the fee paid for Software.<br>
<br>
&nbsp;<b>4. DISCLAIMER OF WARRANTY.</b>&nbsp; UNLESS SPECIFIED IN THIS
AGREEMENT, ALL EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND WARRANTIES,
INCLUDING ANY IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
PURPOSE OR NON-INFRINGEMENT ARE DISCLAIMED, EXCEPT TO THE EXTENT THAT THESE
DISCLAIMERS ARE HELD TO BE LEGALLY INVALID. <br>
<br>
<b>5. LIMITATION OF LIABILITY.&nbsp;</b> TO THE EXTENT NOT PROHIBITED BY
LAW, IN NO EVENT WILL SUN OR ITS LICENSORS BE LIABLE FOR ANY LOST REVENUE,
PROFIT OR DATA, OR FOR SPECIAL, INDIRECT, CONSEQUENTIAL, INCIDENTAL OR PUNITIVE
DAMAGES, HOWEVER CAUSED REGARDLESS OF THE THEORY OF LIABILITY, ARISING OUT
OF OR RELATED TO THE USE OF OR INABILITY TO USE SOFTWARE, EVEN IF SUN HAS
BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.&nbsp; In no event will
Sun's liability to you, whether in contract, tort (including negligence),
or otherwise, exceed the amount paid by you for Software under this Agreement.&nbsp;
The foregoing limitations will apply even if the above stated warranty fails
of its essential purpose. <br>
<br>
<b>6. Termination.</b>&nbsp; This Agreement is effective until terminated.&nbsp;
You may terminate this Agreement at any time by destroying all copies of
Software.&nbsp; This Agreement will terminate immediately without notice
from Sun if you fail to comply with any provision of this Agreement.&nbsp;
Upon Termination, you must destroy all copies of Software.<br>
<br>
<b>7. Export Regulations.</b> All Software and technical data delivered
under this Agreement are subject to US export control laws and may be subject
to export or import regulations in other countries.&nbsp; You agree to comply
strictly with all such laws and regulations and acknowledge that you have
the responsibility to obtain such licenses to export, re-export, or import
as may be required after delivery to you. <br>
<br>
<b>8. U.S. Government Restricted Rights.</b>&nbsp; If Software is being
acquired by or on behalf of the U.S. Government or by a U.S. Government prime
contractor or subcontractor (at any tier), then the Government's rights in
Software and accompanying documentation will be only as set forth in this
Agreement; this is in accordance with 48 CFR 227.7201 through 227.7202-4 (for
Department of Defense (DOD) acquisitions) and with 48 CFR 2.101 and 12.212
(for non-DOD acquisitions). <br>
<br>
<b>9. Governing Law.</b>&nbsp; Any action related to this Agreement will
be governed by California law and controlling U.S. federal law.&nbsp; No
choice of law rules of any jurisdiction will apply. <br>
<br>
<b>10. Severability.</b> If any provision of this Agreement is held to
be unenforceable, this Agreement will remain in effect with the provision
omitted, unless omission would frustrate the intent of the parties, in which
case this Agreement will immediately terminate. <br>
<br>
<b>11. Integration.</b>&nbsp; This Agreement is the entire agreement between
you and Sun relating to its subject matter.&nbsp; It supersedes all prior
or contemporaneous oral or written communications, proposals, representations
and warranties and prevails over any conflicting or additional terms of
any quote, order, acknowledgment, or other communication between the parties
relating to its subject matter during the term of this Agreement.&nbsp; No
modification of this Agreement will be binding, unless in writing and signed
by an authorized representative of each party. <br>
<br>
<div align="center"><big>JAVA(TM) DEVELOPMENT TOOLS <br>
<br>
J2ME(TM) WIRELESS TOOLKIT (J2ME WTK), VERSION 2.1.x <br>
SUPPLEMENTAL LICENSE TERMS</big><b><br>
</b> <br>
</div>
&nbsp;These supplemental license terms ("Supplemental Terms") add to or
modify the terms of the Binary Code License Agreement (collectively, the "Agreement").
Capitalized terms not defined in these Supplemental Terms shall have the
same meanings ascribed to them in the Agreement. These Supplemental Terms
shall supersede any inconsistent or conflicting terms in the Agreement, or
in any license contained within the Software. <br>
<br>
<br>
<b>1. Software Internal Use and Development License Grant</b>. Subject
to the terms and conditions of this Agreement, including, but not limited
to Section 2 (Java Technology Restrictions) of these Supplemental Terms,
Sun grants you a non-exclusive, non-transferable, limited license to reproduce
internally and use internally the binary form of the Software complete and
unmodified for the sole purpose of designing, developing and testing your
Java applets and applications intended to run on the Java platform ("Programs")
provided that any executable output generated by a compiler that is contained
in the Software must (a) only be compiled from source code that conforms
to the corresponding version of the OEM Java Language Specification; (b)
be in the class file format defined by the corresponding version of the OEM
Java Virtual Machine Specification; and (c) execute properly on a reference
runtime, as specified by Sun, associated with such version of the Java platform.
<br>
<br>
<b>2. Java Technology Restrictions.</b> You may not modify the Java Platform
Interface ("JPI", identified as classes contained within the "java" package
or any subpackages of the "java" package), by creating additional classes
within the JPI or otherwise causing the addition to or modification of the
classes in the JPI.&nbsp; In the event that you create an additional class
and associated API(s) which (i) extends the functionality of the Java platform,
and (ii) is exposed to third party software developers for the purpose of
developing additional software which invokes such additional API, you must
promptly publish broadly an accurate specification for such API for free
use by all developers. You may not create, or authorize your licensees to
create, additional classes, interfaces, or subpackages that are in any way
identified as "java", "javax", "sun" or similar convention as specified by
Sun in any naming convention designation. <br>
<br>
<b>3. Java Runtime Availability.</b>&nbsp; Refer to the appropriate version
of the Java Runtime Environment binary code license (currently located at
http://www.java.sun.com/jdk/index.html) for the availability of runtime
code which may be distributed with Java applets and applications. <br>
<br>
<b>4. Trademarks and Logos.</b> You acknowledge and agree as between you
and Sun that Sun owns the SUN, SOLARIS, JAVA, JINI, FORTE, and iPLANET trademarks
and all SUN, SOLARIS, JAVA, JINI, FORTE, and iPLANET-related trademarks,
service marks, logos and other brand designations ("Sun Marks"), and you
agree to comply with the Sun Trademark and Logo Usage Requirements currently
located at http://www.sun.com/policies/trademarks. Any use you make of the
Sun Marks inures to Sun's benefit. <br>
<br>
<b>5. Source Code.</b> Software may contain source code that is provided
solely for reference purposes pursuant to the terms of this Agreement.&nbsp;
Source code may not be redistributed unless expressly provided for in this
Agreement. 6. Termination for Infringement.&nbsp; Either party may terminate
this Agreement immediately should any Software become, or in either party's
opinion be likely to become, the subject of a claim of infringement of any
intellectual property right.<br>
<br>
&nbsp;For inquiries please contact: Sun Microsystems, Inc.&nbsp; 4150 Network
Circle, Santa Clara, California 95054, U.S.A. <br>
(Form ID#011801) <br>
</body>
</html>

View file

@ -0,0 +1,20 @@
/* Copyright (c) 2002,2003, Stefan Haustein, Oberhausen, Rhld., Germany
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or
* sell copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
* IN THE SOFTWARE.
*/

View file

@ -0,0 +1,100 @@
/*
* @(#)Util.java
*
* Copyright (c) 2004-2005, Erik C. Thauvin (http://www.thauvin.net/erik/)
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
*
* Redistributions in binary form must reproduce the above copyright notice,
* this list of conditions and the following disclaimer in the documentation
* and/or other materials provided with the distribution.
*
* Neither the name of the authors nor the names of its contributors may be
* used to endorse or promote products derived from this software without
* specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
* IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
* THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* $Id$
*
*/
package net.thauvin.j2me.yahoome;
import javax.microedition.lcdui.Choice;
import javax.microedition.lcdui.ChoiceGroup;
import javax.microedition.lcdui.Display;
import javax.microedition.lcdui.Item;
import javax.microedition.lcdui.TextField;
/**
* The <code>Util</code> class implements methods specific to MIDP 1.x.
*
* @author <a href="http://www.thauvin.net/erik/">Erik C. Thauvin</a>
* @version $Revision$, $Date$
* @created October 8, 2004
* @since 1.0
*/
public class Util
{
/**
* Disables the default constructor.
*
* @throws UnsupportedOperationException if the constructor is called.
*/
private Util()
{
;
}
/**
* Returns a new exclusive choice group.
*
* @param title The title.
* @param choices The choices.
*
* @return The choice group.
*/
public static ChoiceGroup getChoiceGroup(String title, String[] choices)
{
return new ChoiceGroup(title, Choice.EXCLUSIVE, choices, null);
}
/**
* Sets the current item.
*
* @param screen The screen.
* @param item The item.
*/
public static void setCurrentItem(Display screen, Item item)
{
; // Do nothing
}
/**
* Sets the initial input mode of the given text field.
*
* @param field The text field.
* @param inputMode The input mode.
*/
public static void setInitialInputMode(TextField field, String inputMode)
{
; // Do nothing
}
}

View file

@ -0,0 +1,97 @@
/*
* @(#)Util.java
*
* Copyright (c) 2004-2005, Erik C. Thauvin (http://www.thauvin.net/erik/)
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
*
* Redistributions in binary form must reproduce the above copyright notice,
* this list of conditions and the following disclaimer in the documentation
* and/or other materials provided with the distribution.
*
* Neither the name of the authors nor the names of its contributors may be
* used to endorse or promote products derived from this software without
* specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
* IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
* THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* $Id$
*
*/
package net.thauvin.j2me.yahoome;
import javax.microedition.lcdui.ChoiceGroup;
import javax.microedition.lcdui.Display;
import javax.microedition.lcdui.Item;
import javax.microedition.lcdui.TextField;
/**
* The <code>Util</code> class implements methods specific to MIDP 2.x.
*
* @author <a href="http://www.thauvin.net/erik/">Erik C. Thauvin</a>
* @version $Revision$, $Date$
* @created October 8, 2004
* @since 1.0
*/
public class Util
{
/**
* Disables the default constructor.
*/
private Util()
{
;
}
/**
* Returns a new exclusive choice group.
*
* @param title The title.
* @param choices The choices.
*
* @return The choice group.
*/
public static ChoiceGroup getChoiceGroup(String title, String[] choices)
{
return new ChoiceGroup(title, ChoiceGroup.POPUP, choices, null);
}
/**
* Sets the current item.
*
* @param screen The screen.
* @param item The item.
*/
public static void setCurrentItem(Display screen, Item item)
{
screen.setCurrentItem(item);
}
/**
* Sets the initial input mode of the given text field.
*
* @param field The text field.
* @param inputMode The input mode.
*/
public static void setInitialInputMode(TextField field, String inputMode)
{
field.setInitialInputMode(inputMode);
}
}

1
res/.cvsignore Normal file
View file

@ -0,0 +1 @@
*.db

BIN
res/yahoome.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 924 B

View file

@ -0,0 +1,83 @@
/*
* @(#)HelpScreen.java
*
* Copyright (c) 2004-2005, Erik C. Thauvin (http://www.thauvin.net/erik/)
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
*
* Redistributions in binary form must reproduce the above copyright notice,
* this list of conditions and the following disclaimer in the documentation
* and/or other materials provided with the distribution.
*
* Neither the name of the authors nor the names of its contributors may be
* used to endorse or promote products derived from this software without
* specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
* IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
* THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* $Id$
*
*/
package net.thauvin.j2me.yahoome;
import javax.microedition.lcdui.Form;
import javax.microedition.lcdui.StringItem;
/**
* The <code>HelpScreen</code> class implements a form used to display some help.
*
* @author <a href="http://www.thauvin.net/erik/">Erik C. Thauvin</a>
* @version $Revision$, $Date$
* @created October 8, 2004
* @since 1.0
*/
public class HelpScreen extends Form
{
/**
* Creates a new HelpScreen instance.
*
* @param midlet The MIDlet instance.
*/
public HelpScreen(YahooME midlet)
{
super(YahooME.APP_NAME + " Help");
append(new StringItem(YahooME.CHOICE_YAHOO_SMS + ": ",
"Instantly find any local business, from pizza parlors to florists. Type: [type of business] [city] [state] or [type of business] [zip code] or [name of business] [city] [state] or [name of business] [zip code]\n\n"));
append(new StringItem(YahooME.CHOICE_YAHOO_LOCAL + ": ",
"Instantly find any local business, from pizza parlors to florists. Type: [type of business] or [name of business]. The permanent location setting is automatically added to your query.\n\n"));
append(new StringItem(YahooME.CHOICE_STOCK + ": ", "Get the price of any stock with links to quotes, charts, news, and more. Type: [ticker symbol]\n\n"));
append(new StringItem(YahooME.CHOICE_HOROSCOPE + ": ",
"Are the stars aligned for you today? Type: [sign]\n\n"));
append(new StringItem(YahooME.CHOICE_WIFI + ": ",
"Find the closest WIFI hotspot. Type [zip code] or [city] [state]\n\n"));
append(new StringItem(YahooME.CHOICE_AREA_CODE + ": ",
"Find out where your call's coming from. Type: [3-digit area code]\n\n"));
append(new StringItem(YahooME.CHOICE_DEFINITION + ": ", "Get the definition of any English word. Type: [word]\n\n"));
append(new StringItem(YahooME.CHOICE_ZIP + ": ", "Find the zip codes for any city. Type: [city]\n\n"));
append(new StringItem(YahooME.CHOICE_WEATHER + ": ",
"Get current conditions and a 3-day forecast for over 50,000 cities worldwide. Type: weather [zip code] or weather [city] [state].\n\n"));
addCommand(YahooME.COMMAND_BACK);
setCommandListener(midlet);
}
}

View file

@ -0,0 +1,65 @@
/*
* @(#)HistoryScreen.java
*
* Copyright (c) 2004-2005, Erik C. Thauvin (http://www.thauvin.net/erik/)
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
*
* Redistributions in binary form must reproduce the above copyright notice,
* this list of conditions and the following disclaimer in the documentation
* and/or other materials provided with the distribution.
*
* Neither the name of the authors nor the names of its contributors may be
* used to endorse or promote products derived from this software without
* specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
* IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
* THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* $Id$
*
*/
package net.thauvin.j2me.yahoome;
import javax.microedition.lcdui.List;
/**
* The <code>HistoryScreen</code> class implements a form used to display the history.
*
* @author Erik C. Thauvin
* @version $Revision$, $Date$
* @created Oct 12, 2004
* @since 1.0
*/
public class HistoryScreen extends List
{
/**
* Creates a new HistoryScreen object.
*
* @param midlet The MIDlet instance.
*/
public HistoryScreen(YahooME midlet)
{
super(YahooME.APP_NAME + " History", List.IMPLICIT);
addCommand(YahooME.COMMAND_BACK);
setCommandListener(midlet);
}
}

View file

@ -0,0 +1,90 @@
/*
* @(#)MainScreen.java
*
* Copyright (c) 2004-2005, Erik C. Thauvin (http://www.thauvin.net/erik/)
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
*
* Redistributions in binary form must reproduce the above copyright notice,
* this list of conditions and the following disclaimer in the documentation
* and/or other materials provided with the distribution.
*
* Neither the name of the authors nor the names of its contributors may be
* used to endorse or promote products derived from this software without
* specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
* IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
* THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* $Id$
*
*/
package net.thauvin.j2me.yahoome;
import javax.microedition.lcdui.ChoiceGroup;
import javax.microedition.lcdui.Form;
import javax.microedition.lcdui.TextField;
/**
* The <code>MainScreen</code> class implements a form used to gather the data needed to perform a Yahoo! SMS query.
*
* @author <a href="http://www.thauvin.net/erik/">Erik C. Thauvin</a>
* @version $Revision$, $Date$
* @created October 8, 2004
* @since 1.0
*/
public class MainScreen extends Form
{
/**
* The query action popup.
*/
protected /* final */ ChoiceGroup actionPopup;
/**
* The query field.
*/
protected /* final */ TextField queryFld;
/**
* Creates a new MainScreen object.
*
* @param midlet The MIDlet instance.
*/
public MainScreen(YahooME midlet)
{
super(YahooME.APP_NAME);
queryFld = new TextField("Query: ", "", 25, TextField.ANY);
Util.setInitialInputMode(queryFld, "MIDP_LOWERCASE_LATIN");
actionPopup = Util.getChoiceGroup("Type: ", YahooME.CHOICES);
actionPopup.setSelectedIndex(0, true);
append(queryFld);
append(actionPopup);
addCommand(YahooME.COMMAND_SEND);
addCommand(YahooME.COMMAND_CLEAR);
addCommand(YahooME.COMMAND_HISTORY);
addCommand(YahooME.COMMAND_SETTINGS);
addCommand(YahooME.COMMAND_HELP);
addCommand(YahooME.COMMAND_ABOUT);
addCommand(YahooME.COMMAND_EXIT);
setCommandListener(midlet);
}
}

View file

@ -0,0 +1,88 @@
/*
* @(#)PrefsScreen.java
*
* Copyright (c) 2004-2005, Erik C. Thauvin (http://www.thauvin.net/erik/)
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
*
* Redistributions in binary form must reproduce the above copyright notice,
* this list of conditions and the following disclaimer in the documentation
* and/or other materials provided with the distribution.
*
* Neither the name of the authors nor the names of its contributors may be
* used to endorse or promote products derived from this software without
* specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
* IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
* THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* $Id$
*
*/
package net.thauvin.j2me.yahoome;
import javax.microedition.lcdui.Form;
import javax.microedition.lcdui.StringItem;
import javax.microedition.lcdui.TextField;
/**
* The <code>PrefsScreen</code> class implements a form used to set the preferences.
*
* @author Erik C. Thauvin
* @version $Revision$, $Date$
* @created Oct 12, 2004
* @since 1.0
*/
public class PrefsScreen extends Form
{
/**
* The query field.
*/
protected /* final */ TextField locationFld;
/**
* The SMS number field.
*/
protected /* final */ TextField smsFld;
/**
* Creates a new PrefsScreen object.
*
* @param midlet The MIDlet instance.
*/
public PrefsScreen(YahooME midlet)
{
super(YahooME.APP_NAME + " Settings");
locationFld = new TextField("Location: ", "", 25, TextField.ANY);
append(locationFld);
append(new StringItem("", "Your current city and state or zip. (e.g.: san francisco ca or 94123)"));
smsFld = new TextField("Yahoo! SMS: ", "", 25, TextField.PHONENUMBER);
append(smsFld);
append(new StringItem("", "The short code or number of the Yahoo! SMS service. (e.g.: 92466)"));
addCommand(YahooME.COMMAND_BACK);
addCommand(YahooME.COMMAND_SAVE);
setCommandListener(midlet);
}
}

View file

@ -0,0 +1,269 @@
/* Copyright (c) 2002,2003, Stefan Haustein, Oberhausen, Rhld., Germany
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or
* sell copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
* IN THE SOFTWARE.
*/
package net.thauvin.j2me.yahoome;
import javax.microedition.rms.*;
import java.io.*;
/**
* An Rms based BTree index. Currently, the functionality is similar to a
* persistent hashtable.
*/
public class RmsIndex {
static byte[] DUMMY = new byte[0];
RecordStore store;
Node root;
int n = 32;
String cachedKey;
Node cachedNode;
int cachedIndex;
/** Node helper class */
class Node {
int index;
int size;
String[] keys = new String[n + n + 1];
String[] values = new String[n + n + 1];
int[] children = new int[n + n + 2];
/** Create a new Node */
Node() throws RecordStoreException {
index = store.addRecord(DUMMY, 0, 0);
}
Node(Node split) throws RecordStoreException {
this();
System.arraycopy(split.keys, n + 1, keys, 0, n);
System.arraycopy(split.values, n + 1, values, 0, n);
System.arraycopy(split.children, n + 1, children, 0, n + 1);
size = n;
split.size = n;
split.store();
store();
}
/** Load the node at the given index position */
Node(int index) throws RecordStoreException {
this.index = index;
byte[] data = store.getRecord(index);
if (data == null || data.length == 0)
return;
try {
DataInputStream dis = new DataInputStream(
new ByteArrayInputStream(data));
size = dis.readInt();
for (int i = 0; i < size; i++) {
children[i] = dis.readInt();
keys[i] = dis.readUTF();
values[i] = dis.readUTF();
}
children[size] = dis.readInt();
} catch (IOException e) {
throw new RuntimeException(e.toString());
}
}
public void put(String key, String value) throws RecordStoreException {
int i;
for (i = 0; i < size; i++) {
int cmp = key.compareTo(keys[i]);
if (cmp == 0) {
values[i] = value;
store();
return;
} else if (cmp < 0)
break;
}
int newIndex = 0;
if (children[i] != 0) {
Node child = new Node(children[i]);
child.put(key, value);
if (child.size < n + n + 1)
return;
Node split = new Node(child);
newIndex = split.index;
key = child.keys[n];
value = child.values[n];
}
System.arraycopy(keys, i, keys, i + 1, size - i);
System.arraycopy(values, i, values, i + 1, size - i);
System.arraycopy(children, i + 1, children, i + 2, size - i);
keys[i] = key;
values[i] = value;
children[i + 1] = newIndex;
size++;
if (size < n + n + 1)
// otherwise, store will be performed by uplink
store();
}
public void store() throws RecordStoreException {
try {
ByteArrayOutputStream bos = new ByteArrayOutputStream();
DataOutputStream dos = new DataOutputStream(bos);
dos.writeInt(size);
for (int i = 0; i < size; i++) {
dos.writeInt(children[i]);
dos.writeUTF(keys[i]);
dos.writeUTF(values[i]);
}
dos.writeInt(children[size]);
byte[] data = bos.toByteArray();
store.setRecord(index, data, 0, data.length);
} catch (IOException e) {
throw new RuntimeException(e.toString());
}
}
}
/**
* Creates a new index with the given Name
*/
public RmsIndex(String name) throws RecordStoreException {
store = RecordStore.openRecordStore(name, true);
root = store.getNumRecords() == 0 ? new Node() : new Node(1);
}
/**
* Returns the value for the given key
*
* @param key: The key
* @return String: The value associated with the key, or null if none.
* @throws RecordStoreException
*/
public String get(String key) throws RecordStoreException {
Node current = root;
while (true) {
int i;
for (i = 0; i < current.size; i++) {
int cmp = key.compareTo(current.keys[i]);
if (cmp == 0)
return current.values[i];
else if (cmp < 0)
break;
}
if (current.children[i] == 0)
return null;
current = new Node(current.children[i]);
}
}
/**
* Assigns the given value to the given key persistently
*
* @param key: The key
* @param value: The value
* @throws RecordStoreException
*/
public void put(String key, String value) throws RecordStoreException {
root.put(key, value);
if (root.size < n + n + 1)
return;
// split root....
Node left = root;
root = new Node();
left.index = root.index;
root.index = 1;
Node right = new Node(left);
root.keys[0] = left.keys[n];
root.values[0] = left.values[n];
root.children[0] = left.index;
root.children[1] = right.index;
root.size = 1;
root.store();
}
public void close() throws RecordStoreException {
store.closeRecordStore();
}
public int size() throws RecordStoreException {
Node current = root;
return current.size;
}
public String get(int recordNum) throws RecordStoreException {
Node current = root;
return current.values[recordNum];
}
public String getKey(int recordNum) throws RecordStoreException {
Node current = root;
return current.keys[recordNum];
}
public void deleteAll(String name) throws RecordStoreException {
store.closeRecordStore();
RecordStore.deleteRecordStore(name);
store = RecordStore.openRecordStore(name, true);
root = store.getNumRecords() == 0 ? new Node() : new Node(1);
}
}

View file

@ -0,0 +1,797 @@
/*
* @(#)YahooME.java
*
* Copyright (c) 2004-2005, Erik C. Thauvin (http://www.thauvin.net/erik/)
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
*
* Redistributions in binary form must reproduce the above copyright notice,
* this list of conditions and the following disclaimer in the documentation
* and/or other materials provided with the distribution.
*
* Neither the name of the authors nor the names of its contributors may be
* used to endorse or promote products derived from this software without
* specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
* IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
* THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* $Id$
*
*/
package net.thauvin.j2me.yahoome;
import java.util.Vector;
import javax.microedition.io.Connector;
import javax.microedition.lcdui.*;
import javax.microedition.midlet.MIDlet;
import javax.microedition.midlet.MIDletStateChangeException;
import javax.microedition.rms.RecordStoreException;
import javax.wireless.messaging.MessageConnection;
import javax.wireless.messaging.TextMessage;
/**
* The <code>YahooME</code> class implements a simple front-end for Yahoo! SMS.
*
* @author <a href="http://www.thauvin.net/erik/">Erik C. Thauvin</a>
* @version $Revision$, $Date$
* @created October 8, 2004
* @since 1.0
*/
public class YahooME extends MIDlet implements CommandListener, Runnable
{
/**
* Definition choice.
*/
protected static final String CHOICE_DEFINITION = "Definitions";
/**
* Stock Quote choice.
*/
protected static final String CHOICE_STOCK = "Stock Quotes";
/**
* Local choice.
*/
protected static final String CHOICE_YAHOO_LOCAL = "Local Listings";
/**
* Horoscope choice.
*/
protected static final String CHOICE_HOROSCOPE = "Daily Horoscope";
/**
* Yahoo! SMS choice.
*/
protected static final String CHOICE_YAHOO_SMS = "Yahoo! SMS";
/**
* Weather choice.
*/
protected static final String CHOICE_WEATHER = "Weather";
/**
* Area Codes choice.
*/
protected static final String CHOICE_AREA_CODE = "Area Codes";
/**
* WIFI Hotspots choice.
*/
protected static final String CHOICE_WIFI = "WIFI Hotspots";
/**
* Zip Code choice.
*/
protected static final String CHOICE_ZIP = "Zip Codes";
/**
* The <code>About</code> command.
*/
protected static final Command COMMAND_ABOUT = new Command("About", Command.SCREEN, 2);
/**
* The application name.
*/
protected static final String APP_NAME = "YahooME";
/**
* The application version.
*/
protected static final String APP_VERSION = "0.1";
/**
* The <code>Back</code> command.
*/
protected static final Command COMMAND_BACK = new Command("Back", Command.BACK, 2);
/**
* The action choices.
*/
protected static final String[] CHOICES = new String[]
{
CHOICE_YAHOO_SMS, CHOICE_YAHOO_LOCAL, CHOICE_WEATHER, CHOICE_STOCK,
CHOICE_DEFINITION, CHOICE_HOROSCOPE, CHOICE_WIFI, CHOICE_AREA_CODE,
CHOICE_ZIP
};
/**
* The <code>Clear</code> command.
*/
protected static final Command COMMAND_CLEAR = new Command("Clear", Command.SCREEN, 2);
/**
* The <code>Exit</code> command.
*/
protected static final Command COMMAND_EXIT = new Command("Exit", Command.EXIT, 2);
/**
* The <code>Help</code> command.
*/
protected static final Command COMMAND_HELP = new Command("Help", Command.HELP, 2);
/**
* The <code>History</code> command.
*/
protected static final Command COMMAND_HISTORY = new Command("History", Command.SCREEN, 2);
/**
* The <code>Settings</code> command.
*/
protected static final Command COMMAND_SETTINGS = new Command("Settings", Command.SCREEN, 2);
/**
* The <code>Save</code> command.
*/
protected static final Command COMMAND_SAVE = new Command("Save", Command.OK, 1);
/**
* The <code>Send</code> command.
*/
protected static final Command COMMAND_SEND = new Command("Send", Command.OK, 1);
/**
* The history maximum size.
*/
private static final int MAX_HISTORY = 8;
/**
* The description query prefix.
*/
private static final String PREFIX_DEFINITION = "D ";
/**
* The Weather query prefix.
*/
private static final String PREFIX_WEATHER = "W ";
/**
* The Horoscope query prefix.
*/
private static final String PREFIX_HOROSCOPE = "Horo ";
/**
* The Stock Quote query prefix.
*/
private static final String PREFIX_STOCK = "Q ";
/**
* The WiFi Hotspots query prefix.
*/
private static final String PREFIX_WIFI = "Wifi ";
/**
* The Area Code query prefix.
*/
private static final String PREFIX_AREA_CODE = "Area Code ";
/**
* The Zip Code query prefix.
*/
private static final String PREFIX_ZIP = "Zip Code ";
/**
* The history preferences key.
*/
private static final String PREFS_HISTORY_KEY = "h";
/**
* The location preferences key.
*/
private static final String PREFS_LOCATION_KEY = "l";
/**
* The address preferences key.
*/
private static final String PREFS_ADDRESS_KEY = "a";
// The current action.
private String _action = CHOICE_YAHOO_SMS;
// The Yahoo! SMS address.
private String _address = "92466";
// The default error/message alert dialog.
private Alert _defaultAlert;
// The display instance.
private Display _display;
// The first time flag.
private boolean _firstTime;
// The help screen.
private HelpScreen _helpScreen;
// The history.
private /* final */ Vector _history = new Vector(8);
// The history screen.
private HistoryScreen _historyScreen;
// The location.
private String _location = "";
// The main screen.
private /* final */ MainScreen _mainScreen;
// The preferences store.
private RmsIndex _prefs;
// The preferences screen.
private PrefsScreen _prefsScreen;
// The current query.
private String _query = "";
// The sending message alert dialog.
private Alert _sendingAlert;
/**
* Creates a new YahooME instance.
*/
public YahooME()
{
super();
_mainScreen = new MainScreen(this);
_firstTime = true;
}
/**
* Performs a command.
*
* @param c The command action.
* @param d The diplayable screen.
*/
public /* final */ void commandAction(Command c, Displayable d)
{
if (c == COMMAND_EXIT)
{
exit();
}
else if (c == COMMAND_ABOUT)
{
alert("About " + APP_NAME,
APP_NAME + ' ' + APP_VERSION + "\nCopyright 2005\nErik C. Thauvin\nerik@thauvin.net", d, false);
}
else if (c == COMMAND_CLEAR)
{
_mainScreen.queryFld.setString("");
Util.setCurrentItem(_display, (Item) _mainScreen.queryFld);
}
else if (c == COMMAND_SEND)
{
if (isValidString(_address))
{
/* final */ String q = _mainScreen.queryFld.getString();
_action = CHOICES[_mainScreen.actionPopup.getSelectedIndex()];
if (isValidString(q))
{
if ((_action.equals(CHOICE_YAHOO_LOCAL) && !isValidString(_location)))
{
alert("No Location", "Please set a location first.", d, true);
}
else
{
if (_sendingAlert == null)
{
_sendingAlert = new Alert("");
}
_query = buildQuery(q);
addHistory(_query);
saveHistory();
alert(_sendingAlert, "Sending SMS", "Sending message to " + _address + "...", d, 2500, false);
new Thread(this).start();
}
}
else
{
Util.setCurrentItem(_display, (Item) _mainScreen.queryFld);
alert("Invalid Input", "Please specify a query.", d, true);
}
}
else
{
alert("No SMS Address", "Please set the Yahoo! SMS number.", d, true);
}
}
else if (c == COMMAND_SETTINGS)
{
if (_prefsScreen == null)
{
_prefsScreen = new PrefsScreen(this);
}
_prefsScreen.smsFld.setString(_address);
_prefsScreen.locationFld.setString(_location);
_display.setCurrent(_prefsScreen);
}
else if (c == COMMAND_SAVE)
{
_location = _prefsScreen.locationFld.getString();
_address = _prefsScreen.smsFld.getString();
_display.setCurrent(_mainScreen);
saveSettings();
}
else if (c == COMMAND_HISTORY)
{
if (_historyScreen == null)
{
_historyScreen = new HistoryScreen(this);
}
int size = _historyScreen.size();
if (size > 0)
{
for (int i = 0; i < size; i++)
{
_historyScreen.delete(0);
}
}
size = _history.size();
if (size > 0)
{
for (int i = 0; i < size; i++)
{
_historyScreen.append((String) _history.elementAt(i), null);
}
_display.setCurrent(_historyScreen);
}
else
{
alert("No History", "There is no history to display.", d, true);
}
}
else if (c == List.SELECT_COMMAND)
{
/* final */ String query = _historyScreen.getString(_historyScreen.getSelectedIndex());
// Definition
if (query.startsWith(PREFIX_DEFINITION))
{
_mainScreen.queryFld.setString(query.substring(query.indexOf(' ') + 1));
_mainScreen.actionPopup.setSelectedIndex(choiceIndex(CHOICE_DEFINITION), true);
}
// Horoscope
else if (query.startsWith(PREFIX_HOROSCOPE))
{
_mainScreen.queryFld.setString(query.substring(query.indexOf(' ') + 1));
_mainScreen.actionPopup.setSelectedIndex(choiceIndex(CHOICE_HOROSCOPE), true);
}
// Stock Quote
else if (query.startsWith(PREFIX_STOCK))
{
_mainScreen.queryFld.setString(query.substring(query.indexOf(' ') + 1));
_mainScreen.actionPopup.setSelectedIndex(choiceIndex(CHOICE_STOCK), true);
}
// Weather
else if (query.startsWith(PREFIX_WEATHER))
{
_mainScreen.queryFld.setString(query.substring(PREFIX_WEATHER.length()));
_mainScreen.actionPopup.setSelectedIndex(choiceIndex(CHOICE_WEATHER), true);
}
// Area Code
else if (query.startsWith(PREFIX_AREA_CODE))
{
_mainScreen.queryFld.setString(query.substring(PREFIX_AREA_CODE.length()));
_mainScreen.actionPopup.setSelectedIndex(choiceIndex(CHOICE_AREA_CODE), true);
}
// Zip Code
else if (query.startsWith(PREFIX_ZIP))
{
_mainScreen.queryFld.setString(query.substring(PREFIX_ZIP.length()));
_mainScreen.actionPopup.setSelectedIndex(choiceIndex(CHOICE_ZIP), true);
}
// WiFi Hotspots
else if (query.startsWith(PREFIX_WIFI))
{
_mainScreen.queryFld.setString(query.substring(PREFIX_WIFI.length()));
_mainScreen.actionPopup.setSelectedIndex(choiceIndex(CHOICE_WIFI), true);
}
// Local
else if (isValidString(_location) && query.endsWith(' ' + _location))
{
_mainScreen.queryFld.setString(query.substring(0, query.lastIndexOf(' ')));
_mainScreen.actionPopup.setSelectedIndex(choiceIndex(CHOICE_YAHOO_LOCAL), true);
}
else
{
_mainScreen.queryFld.setString(query);
_mainScreen.actionPopup.setSelectedIndex(choiceIndex(CHOICE_YAHOO_SMS), true);
}
_display.setCurrent(_mainScreen);
}
else if (c == COMMAND_HELP)
{
if (_helpScreen == null)
{
_helpScreen = new HelpScreen(this);
}
_display.setCurrent(_helpScreen);
}
else if (c == COMMAND_BACK)
{
_display.setCurrent(_mainScreen);
}
}
/**
* Executes the thread.
*/
public /* final */ void run()
{
sendSMS();
}
/**
* @see javax.microedition.midlet.MIDlet#destroyApp(boolean)
*/
protected void destroyApp(boolean b)
throws MIDletStateChangeException
{
try
{
if (_prefs != null)
{
_prefs.close();
}
}
catch (RecordStoreException e)
{
alert("Close Error", "Could not close the preferences store: " + e.getMessage(), _mainScreen, true);
}
notifyDestroyed();
}
/**
* @see javax.microedition.midlet.MIDlet#pauseApp()
*/
protected /* final */ void pauseApp()
{
;
}
/**
* @see javax.microedition.midlet.MIDlet#startApp()
*/
protected /* final */ void startApp()
throws MIDletStateChangeException
{
if (_firstTime)
{
try
{
_prefs = new RmsIndex("YahooME");
String item;
// Load the history.
for (int i = 0; i < MAX_HISTORY; i++)
{
item = _prefs.get(PREFS_HISTORY_KEY + i);
if (item != null)
{
_history.addElement(item);
}
else
{
break;
}
}
// Load the location.
item = _prefs.get(PREFS_LOCATION_KEY);
if (item != null)
{
_location = item;
}
// Load the address.
item = _prefs.get(PREFS_ADDRESS_KEY);
if (item != null)
{
_address = item;
}
}
catch (RecordStoreException e)
{
alert("Load Error", "Could not load the preferences: " + e.getMessage(), _mainScreen, true);
}
_firstTime = false;
}
_display = Display.getDisplay(this);
_display.setCurrent(_mainScreen);
}
// Return the index of the given choice.
private static int choiceIndex(String choice)
{
for (int i = 0; i < CHOICES.length; i++)
{
if (CHOICES[i].equals(choice))
{
return i;
}
}
return 0;
}
// Validates a string.
private static boolean isValidString(String s)
{
return ((s != null) && (s.length() > 0));
}
// Adds to the history.
private void addHistory(String query)
{
if (_history.size() == MAX_HISTORY)
{
_history.removeElementAt(MAX_HISTORY - 1);
}
_history.insertElementAt(query, 0);
}
// Displays a modal message/error alert dialog.
private void alert(String title, String msg, Displayable d, boolean isError)
{
if (_defaultAlert == null)
{
_defaultAlert = new Alert("");
}
alert(_defaultAlert, title, msg, d, Alert.FOREVER, isError);
}
// Displays a message/error alert dialog.
private void alert(Alert alert, String title, String msg, Displayable d, int timeout, boolean isError)
{
if (title != null)
{
alert.setTitle(title);
}
alert.setString(msg);
alert.setType(isError ? AlertType.ERROR : AlertType.INFO);
alert.setTimeout(timeout);
_display.setCurrent(alert, d);
}
// Builds the full query .
private String buildQuery(String query)
{
/* final */ String text;
if (_action.equals(CHOICE_YAHOO_LOCAL))
{
if (isValidString(_location))
{
text = query + ' ' + _location;
}
else
{
text = query;
}
}
// Stock
else if (_action.equals(CHOICE_STOCK))
{
text = PREFIX_STOCK + query;
}
// Horoscope
else if (_action.equals(CHOICE_HOROSCOPE))
{
text = PREFIX_HOROSCOPE + query;
}
// Definition
else if (_action.equals(CHOICE_DEFINITION))
{
text = PREFIX_DEFINITION + query;
}
// WIFI
else if (_action.equals(CHOICE_WIFI))
{
text = PREFIX_WIFI + query;
}
// Area Code
else if (_action.equals(CHOICE_AREA_CODE))
{
text = PREFIX_AREA_CODE + query;
}
// Weather
else if (_action.equals(CHOICE_WEATHER))
{
text = PREFIX_WEATHER + query;
}
// Zip Code
else if (_action.equals(CHOICE_ZIP))
{
text = PREFIX_ZIP + query;
}
// Default
else
{
text = query;
}
return text;
}
// Exits the application.
private void exit()
{
try
{
destroyApp(false);
}
catch (MIDletStateChangeException ignore)
{
; // Do nothing
}
}
// Saves the history.
private void saveHistory()
{
try
{
if (_prefs != null)
{
/* final */ int size = _history.size();
// Save the history.
for (int i = 0; i < size; i++)
{
_prefs.put(PREFS_HISTORY_KEY + i, (String) _history.elementAt(i));
}
}
}
catch (RecordStoreException e)
{
alert("Save Error", "Could not save the history: " + e.getMessage(), _mainScreen, true);
}
}
// Saves the settings.
private void saveSettings()
{
try
{
if (_prefs != null)
{
// Save the location.
_prefs.put(PREFS_LOCATION_KEY, _location);
// Save the address.
_prefs.put(PREFS_ADDRESS_KEY, _address);
}
}
catch (RecordStoreException e)
{
alert("Save Error", "Could not save the settings: " + e.getMessage(), _mainScreen, true);
}
}
// Sends the SMS.
private void sendSMS()
{
/* final */ String address = "sms://" + _address;
MessageConnection conn = null;
try
{
conn = (MessageConnection) Connector.open(address);
/* final */ TextMessage msg = (TextMessage) conn.newMessage(MessageConnection.TEXT_MESSAGE);
msg.setAddress(address);
msg.setPayloadText(_query);
conn.send(msg);
//alert("SMS Sent", "The text message was sent.", _mainScreen, false);
}
catch (SecurityException e)
{
alert("SMS Error", "Access to SMS was refused: " + e.getMessage(), _mainScreen, true);
}
catch (Exception e)
{
alert("SMS Error", "The text message could not be sent: " + e.getMessage(), _mainScreen, true);
}
finally
{
try
{
if (conn != null)
{
conn.close();
}
}
catch (Exception ignore)
{
; // Do nothing;
}
}
}
}

BIN
yahoome.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 32 KiB

24
yahoome.wml Normal file
View file

@ -0,0 +1,24 @@
<?xml version="1.0"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">
<wml>
<template>
<do type="prev" label="Back">
<prev/>
</do>
</template>
<card id="card1" title="YahooME" newcontext="true">
<p align="center">
YahooME 0.1 (~13Kb)<br/>
</p>
<p align="center">
MIDP 2.0<br/>
<a href="YahooME-2.jad">Download Jad</a><br/>
<a href="YahooME-2.jar">Download Jar</a><br/>
</p>
<p align="center">
MIDP 1.0<br/>
<a href="YahooME.jad">Download Jad</a><br/>
<a href="YahooME.jar">Download Jar</a><br/>
</p>
</card>
</wml>