Skip to content

Update from origin #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 517 commits into from
Feb 2, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
517 commits
Select commit Hold shift + click to select a range
2b6dfe3
Fixed issue with background location monitoring on iOS 9
shannah Dec 9, 2015
45adde3
Merge branch 'master' of https://github.com/codenameone/CodenameOne
shannah Dec 9, 2015
a4f44db
Fixed J2ME regression
shai-almog Dec 9, 2015
b4d58b2
Update README.md
shai-almog Dec 9, 2015
596a7a8
Added value of to boolean
shai-almog Dec 9, 2015
682af61
Update README.md
shai-almog Dec 9, 2015
3f1378a
fixed a couple of methods to be static
chen-fishbein Dec 10, 2015
4f64065
fixed getPrimaryPhoneNumber to return a number if exists
chen-fishbein Dec 10, 2015
cb60544
added a paintBorderBackground
chen-fishbein Dec 10, 2015
5873b52
Merge branch 'master' of https://github.com/codenameone/CodenameOne
chen-fishbein Dec 10, 2015
7e721d0
Fixed regression in ios keyboard that caused it to not respect the io…
shannah Dec 12, 2015
31f15e7
Merge branch 'master' of https://github.com/codenameone/CodenameOne
shannah Dec 12, 2015
d53efb2
Fixed contacts commit to not break binary compatibility with cloud bu…
shai-almog Dec 12, 2015
fffc59f
added getTitleComponent to the Toolbar
chen-fishbein Dec 12, 2015
fcb57e5
Merge branch 'master' of https://github.com/codenameone/CodenameOne
chen-fishbein Dec 12, 2015
4bae974
New methods for character
shai-almog Dec 13, 2015
df10d12
New methods for Integer
shai-almog Dec 13, 2015
2004b95
New animation framework that accepts all animation requests globally …
shai-almog Dec 13, 2015
85a7af9
Fixed the animations and add/remove operations so they won't collide.…
shai-almog Dec 13, 2015
e070e4a
Merge branch 'master' into New-Animation-Framework
shai-almog Dec 13, 2015
d88ce8e
Merge pull request #1615 from codenameone/New-Animation-Framework
shai-almog Dec 13, 2015
dc52e1e
Compilation issue in my last commit
shai-almog Dec 13, 2015
0c385ea
Fix for potential exception if an animation is running while changing…
shai-almog Dec 15, 2015
1a50fbd
Initial (incomplete) work on title animations and style animations
shai-almog Dec 15, 2015
ca0091b
Better error handling in the JavaSEPort
shai-almog Dec 16, 2015
08f0bb0
Fixed regression with ComponentGroup due to changing method signature
shai-almog Dec 16, 2015
a04dd5e
Added ability to detect an empty border
shai-almog Dec 16, 2015
01a7cbd
Fixed the animation manager scrolling behavior so it won't misbehave …
shai-almog Dec 16, 2015
a206b47
Minor build tunes for NetBeans 8.1
shai-almog Dec 16, 2015
a0d3347
Fixed remove to remove the component from the layout as well synchron…
shai-almog Dec 16, 2015
480c79b
fixed a NPE in Contact.java
chen-fishbein Dec 16, 2015
4721106
Merge branch 'master' of https://github.com/codenameone/CodenameOne
chen-fishbein Dec 16, 2015
0ad25a1
Removed a rectangle allocation that caused a GC in the EDT paint cycl…
shannah Dec 16, 2015
62e6f53
Fixed so that contact getDisplayName() will never return null.
shannah Dec 16, 2015
fc3e8d0
Added method required for previous commit to work. Allows getting in…
shannah Dec 16, 2015
230d76e
Removed redundant opengl calls to try to make painting more efficient.
shannah Dec 16, 2015
efba6dd
Added a binary search for the 'viewable' children of a container that…
shannah Dec 16, 2015
53fb9c5
Merge branch 'master' of https://github.com/codenameone/CodenameOne
shannah Dec 16, 2015
a8ceff0
Added debugging logic (commented out) and changed friction values to …
shai-almog Dec 17, 2015
cece46f
fixed the calculateLastPaintableOffset
chen-fishbein Dec 17, 2015
5e198b9
Optimization for stringWidth that should avoid calls to that relative…
shai-almog Dec 17, 2015
4324abd
Removed excessive pointer events from event dispatch to prevent slown…
shai-almog Dec 17, 2015
1ff76a6
Changed default scroll motion to use exponential decay instead of fri…
shannah Dec 17, 2015
1193661
Performance optimization for scrolling a large set of elements when w…
shai-almog Dec 17, 2015
71d116c
Added additional checks for peer components before firing the onParen…
shannah Dec 17, 2015
138322e
Adjusted the decay scroll parameters based on comparisons with native…
shannah Dec 17, 2015
d826940
Fixed regression in getComponentAt() caused by recent changes to use …
shannah Dec 18, 2015
683e599
Another fix for regression in last commit related to getComponentAt(x…
shannah Dec 18, 2015
f03f0ca
Improved efficiency of Container.contains() for containers with many …
shannah Dec 18, 2015
d37767f
Fixed some bugs with Container.calculateFirstPaintableOffset(), and a…
shannah Dec 18, 2015
e080821
Added support for Android async editing.
shannah Dec 19, 2015
98d102f
changed contact getDisplayName
chen-fishbein Dec 20, 2015
0f189de
Merge branch 'master' of https://github.com/codenameone/CodenameOne
chen-fishbein Dec 20, 2015
a2fd576
Major refactoring of the UI with the goal of improving on device perf…
shai-almog Dec 20, 2015
0782c2e
Merge branch 'master' into LookAndFeelRefactoring
shai-almog Dec 20, 2015
e00f00e
Fixed issue with not painting last child of container. Regression fr…
shannah Dec 21, 2015
2f5dfeb
Merge branch 'master' of https://github.com/codenameone/CodenameOne
shannah Dec 21, 2015
1a86f78
Merge branch 'master' into LookAndFeelRefactoring
shai-almog Dec 21, 2015
7ff2aae
Fixed regression in DrawLine. Accidentally left a short-circuit retu…
shannah Dec 21, 2015
675f3e1
Merge branch 'master' into LookAndFeelRefactoring
shai-almog Dec 21, 2015
d41c6c3
Native implementation of label and background drawing to squeeze ever…
shai-almog Dec 21, 2015
dddd2a4
Fixed a couple of bugs and clarified code
shai-almog Dec 21, 2015
4717d00
Implemented component drawing for labels and buttons in the native as…
shai-almog Dec 21, 2015
2e39a2e
Minor changes to the BCT
shai-almog Dec 21, 2015
9c989a1
added a picture to some of the Simulator contacts
chen-fishbein Dec 22, 2015
166055a
fix the android get contacts to ignore case upon returning contacts
chen-fishbein Dec 22, 2015
8d5e86b
Merge branch 'master' of https://github.com/codenameone/CodenameOne
chen-fishbein Dec 22, 2015
8562b2d
Fixed masked icons to render correctly in the new pipeline
shai-almog Dec 22, 2015
b05d78c
Additional byte code translator changes from the IDE
shai-almog Dec 22, 2015
0db73c9
Performance tuning based on profiling results for Android pipeline
shai-almog Dec 22, 2015
22652de
Fixed issue with Timeline Images
shai-almog Dec 22, 2015
7db445e
Fixed issue with async editing changes causing text field to close an…
shannah Dec 23, 2015
47ca968
Merge branch 'master' into LookAndFeelRefactoring
shai-almog Dec 23, 2015
858e1fe
Another fix for the timeline issue
shai-almog Dec 23, 2015
1abfad7
Minor performance tuning changes
shai-almog Dec 23, 2015
09a75bb
Caching derived font instances which can significantly boost performa…
shai-almog Dec 23, 2015
df253ac
Fixed problem with rendering FontImage, IndexedImage & RGBImage
shai-almog Dec 23, 2015
b28f721
Fixed special case that caused scroll to 0,0 when first field of form…
shannah Dec 23, 2015
8f506f8
Flipped the default for ends with 3 points
shai-almog Dec 24, 2015
9716364
New ability to force popup dialog in a specific direction
shai-almog Dec 24, 2015
5013a17
Deprecated the com.codename1.codescan package. Going forward develop…
shannah Dec 24, 2015
b8f951b
Merge remote-tracking branch 'origin/master'
shai-almog Dec 25, 2015
884abc3
Fixed URL and removed deprecated annotation
shai-almog Dec 25, 2015
609aea2
Fixed URL and removed deprecated annotation
shai-almog Dec 25, 2015
88d434c
Fixed URL and removed deprecated annotation
shai-almog Dec 25, 2015
5fd6264
Fixed URL and removed deprecated annotation
shai-almog Dec 25, 2015
08e7736
Added slightly unrelated dialog feature that allows poping towards a …
shai-almog Dec 25, 2015
22a8b48
Improved the font caching to be even more aggressive
shai-almog Dec 25, 2015
6b81290
Fixed weird Android regression with font caching that caused characte…
shai-almog Dec 25, 2015
546c513
Merge branch 'master' into LookAndFeelRefactoring
shai-almog Dec 25, 2015
b76adf8
Fix for flickering in some cases
shai-almog Dec 26, 2015
85dc613
Fixed potential exception in animation layout transition that might c…
shai-almog Dec 26, 2015
d8cfa93
Merge branch 'master' into LookAndFeelRefactoring
shai-almog Dec 26, 2015
591fab3
Fixed regression in gradients
shai-almog Dec 27, 2015
61a3aca
fixed the decay motion to stop if last 4 returned animation values ar…
chen-fishbein Dec 27, 2015
34c9cc8
Merge branch 'master' of https://github.com/codenameone/CodenameOne
chen-fishbein Dec 27, 2015
18df06f
Merge branch 'master' into LookAndFeelRefactoring
shai-almog Dec 27, 2015
3d2f840
added the missing overflow icon
chen-fishbein Dec 28, 2015
3c1ae7f
Fixed issue with android async keyboard still showing on form change.
shannah Dec 28, 2015
72f6f8d
Merge branch 'master' of https://github.com/codenameone/CodenameOne
shannah Dec 28, 2015
e5d0aa4
Fix typos in README.md
ericleong Dec 29, 2015
2d7cafe
Merge branch 'master' into LookAndFeelRefactoring
shai-almog Dec 29, 2015
b8faed8
Merge pull request #1622 from ericleong/patch-1
shai-almog Dec 29, 2015
284546f
Fixed major NPE in icon
shai-almog Dec 29, 2015
00a9c17
Fixed another NPE regression
shai-almog Dec 29, 2015
46e5e56
Disabled potentially problematic optimization.
shai-almog Dec 29, 2015
f554843
Fixed minor regression in side menu bar
shai-almog Dec 29, 2015
2d1bc0a
Fix for some edge cases of component animation: https://groups.google…
shai-almog Dec 29, 2015
0513d20
Improved the performance monitor to show UIID's
shai-almog Dec 29, 2015
58cd35b
Merge branch 'master' into LookAndFeelRefactoring
shai-almog Dec 29, 2015
8ace3f7
Refactored custom Invoke and Jump optimizations into separate Instruc…
shannah Dec 30, 2015
65f24a1
Merge branch 'master' of https://github.com/codenameone/CodenameOne
shannah Dec 30, 2015
42f0f76
Fix for #1623 tickering should cycle
shai-almog Dec 30, 2015
2c006a4
Fix 2 problems with Sockets; data corruption and infinite error loop …
ddyer0 Dec 28, 2015
85c70f2
Merge branch 'master' into LookAndFeelRefactoring
shai-almog Dec 30, 2015
40693cc
a fix for launching the android sms activity
chen-fishbein Dec 30, 2015
9906b03
Merge branch 'master' of https://github.com/codenameone/CodenameOne
chen-fishbein Dec 30, 2015
f5bafff
Changed primitive local variables to use C locals instead of storing …
shannah Dec 30, 2015
785ebc6
Merge branch 'master' of https://github.com/codenameone/CodenameOne
shannah Dec 30, 2015
848d804
Fixed small potential issue with multiple local variables of the same…
shannah Dec 30, 2015
8a6a037
Included information about the GC
shai-almog Dec 31, 2015
1b310c6
added a couple of missing densities
chen-fishbein Dec 31, 2015
c8fabc6
Merge branch 'master' of https://github.com/codenameone/CodenameOne
chen-fishbein Dec 31, 2015
c12c44b
Merge branch 'master' into LookAndFeelRefactoring
shai-almog Dec 31, 2015
45b8a41
Merge pull request #1624 from codenameone/LookAndFeelRefactoring
shai-almog Dec 31, 2015
85b7bcd
Added AssignableExpression interface that allows the translator to wo…
shannah Dec 31, 2015
e673ea2
New class to simplify the process of adding a label that will scale c…
shai-almog Jan 3, 2016
f1e1b80
Fixed license headers
shai-almog Jan 3, 2016
bbc6f30
fixed remove command from title
chen-fishbein Jan 3, 2016
f068341
Merge branch 'master' of https://github.com/codenameone/CodenameOne
chen-fishbein Jan 3, 2016
1a1c850
Fixed regression in left aligned labels http://stackoverflow.com/ques…
shai-almog Jan 5, 2016
aee5d84
Fixed regression in left aligned labels http://stackoverflow.com/ques…
shai-almog Jan 5, 2016
3d012d7
Fixed regression in left aligned labels http://stackoverflow.com/ques…
shai-almog Jan 5, 2016
1eb414b
Fixed cancelLocalNotification to only delete the notification that wa…
shannah Jan 5, 2016
2fe293e
Merge branch 'master' of https://github.com/codenameone/CodenameOne
shannah Jan 5, 2016
55952fc
Fixed gradient opacity
shai-almog Jan 6, 2016
3a94136
Added ability to center the title in the toolbar
shai-almog Jan 6, 2016
7749def
added addComponentToSideMenu() to Toolbar
chen-fishbein Jan 6, 2016
ec3b6a3
Merge branch 'master' of https://github.com/codenameone/CodenameOne
chen-fishbein Jan 6, 2016
d0cbffd
Merge remote-tracking branch 'origin/master'
shai-almog Jan 6, 2016
9b61e6d
Workaround for asyncPaint=false issues
shai-almog Jan 7, 2016
54f5391
Fixed async editing support on Android when TextureView is used.
shannah Jan 7, 2016
fc32f61
Added support for drawing shapes on mutable images in iOS. https://g…
shannah Jan 7, 2016
28de9e6
Fixed issue with transforms on mutable images in JavaSE port that wou…
shannah Jan 7, 2016
4323733
Add event type information to ActionEvent
ddyer0 Jan 8, 2016
2186add
Minor patch as part of regression investigation
shai-almog Jan 8, 2016
39e9d59
Small performance improvements. Replaced array.length calls inside f…
shannah Jan 8, 2016
8980c80
Add event type information to ActionEvent
ddyer0 Jan 8, 2016
7b0c5ec
Added new UITimer constructor for further simplicity
shai-almog Jan 8, 2016
4428875
Added 2D transform support for mutable images on iOS. This effective…
shannah Jan 9, 2016
d13aa6c
Merge branch 'master' of https://github.com/codenameone/CodenameOne
shannah Jan 9, 2016
21888c0
Stack overflow error in title animation
shai-almog Jan 9, 2016
c9d6820
Fixed text flickering bug
shai-almog Jan 10, 2016
5c4b276
Fixed annoying alpha issue with background painting.
shai-almog Jan 10, 2016
246e9d3
Removed mistake from the code
shai-almog Jan 10, 2016
70e9951
Removed vestigal keyboard support sections as they can't effectively …
shannah Jan 11, 2016
0d0f6bf
fix fencepost error in flow layout
ddyer0 Jan 8, 2016
58ed05b
Revert "Add event type information to ActionEvent"
ddyer0 Jan 12, 2016
4d7e808
Merge remote-tracking branch 'refs/remotes/codenameone/master'
ddyer0 Jan 12, 2016
b75145f
fix a fencepost error in flowlayout
ddyer0 Jan 12, 2016
ba46733
fix an error loop when stream has been closed
ddyer0 Jan 12, 2016
8c3f2d5
Merge pull request #1633 from ddyer0/master
shai-almog Jan 12, 2016
8246c05
Fixed paint bug in Android
shai-almog Jan 12, 2016
daff1a1
Added images for developer guide and clarified some javadocs
shai-almog Jan 12, 2016
a7d26f7
Removed docs
shai-almog Jan 12, 2016
d42c1d9
Merge branch 'master' of https://github.com/codenameone/CodenameOne
shannah Jan 12, 2016
bad1b93
Fix for tile regression in Android
shai-almog Jan 12, 2016
e05e992
Merge remote-tracking branch 'refs/remotes/origin/exported' into working
ddyer0 Jan 12, 2016
0997912
Merge remote-tracking branch 'refs/remotes/codenameone/master'
ddyer0 Jan 13, 2016
bb06328
Merge remote-tracking branch 'refs/remotes/origin/exported'
ddyer0 Jan 13, 2016
47d3887
Merge remote-tracking branch 'refs/remotes/origin/working'
ddyer0 Jan 13, 2016
238044c
Added support for Picker preferredPopupWidth and preferredPopupHeight…
shannah Jan 13, 2016
81046fe
Merge branch 'master' of https://github.com/codenameone/CodenameOne
shannah Jan 13, 2016
7083db0
Merge remote-tracking branch 'refs/remotes/origin/exported' into working
ddyer0 Jan 12, 2016
ab376fd
Fix for URLImage to throw exceptions sooner: http://stackoverflow.com…
shai-almog Jan 13, 2016
a29c035
Workaround for dumb usage of gradients...
shai-almog Jan 14, 2016
525fae1
Minor performance improvement for async paint
shai-almog Jan 14, 2016
200360d
Merge pull request #1636 from ddyer0/split
shai-almog Jan 14, 2016
4b79d26
Fix for mistake in the validator API
shai-almog Jan 14, 2016
84c4285
How in hell did that even work!
shai-almog Jan 14, 2016
4d8c8c5
fixed morph transition
chen-fishbein Jan 14, 2016
a50fa22
Merge branch 'master' of https://github.com/codenameone/CodenameOne
chen-fishbein Jan 14, 2016
3cd79d1
remember the requested size for derived fonts
ddyer0 Jan 14, 2016
45c9746
Fixed issue with text fields intermittently showing the text from the…
shannah Jan 14, 2016
a1b9040
Rethinking JavaDocs with gists embedded into place for samples
shai-almog Jan 15, 2016
0decbe6
Minor fix to the javadoc build script
shai-almog Jan 15, 2016
0ffac2a
Merge pull request #1637 from ddyer0/fontsize
shai-almog Jan 15, 2016
e9dc87f
Fixed recent pull request conventions/types
shai-almog Jan 15, 2016
6e5dc06
Fix for #1638
shai-almog Jan 15, 2016
3b6c954
JavaDoc updates for working with the new comment embedded source tooling
shai-almog Jan 15, 2016
bb92bb2
Improvements to javadoc build process
shai-almog Jan 16, 2016
410cc31
Socket.java. isSupported()
McSym28 Jan 17, 2016
1f530b8
Merge pull request #1643 from McSym28/master
shai-almog Jan 17, 2016
9b56cb4
isServerSocket should be static too.
shai-almog Jan 17, 2016
596b841
Initial work on new graphics optimisation that caches paint data
shai-almog Jan 17, 2016
0239aed
Added easy ability to toggle on/off the new paint modes for android
shai-almog Jan 17, 2016
f786901
Merge branch 'master' into StylePaintCache
shai-almog Jan 17, 2016
7438644
Fixed regression with picker size on iPad from https://github.com/cod…
shannah Jan 18, 2016
0776072
Added draw label component to the async paint pipeline
shai-almog Jan 19, 2016
4bb423f
Merge branch 'master' into StylePaintCache
shai-almog Jan 19, 2016
2513732
Fixed transform issue on iOS mutable images reported at http://stacko…
shannah Jan 19, 2016
ae46e9f
Fixed bug with OnOff switch that printed the 'on-off' state of the sw…
shannah Jan 20, 2016
da630f4
Fixed infinite progress javadocs
shai-almog Jan 19, 2016
b00d226
Merge branch 'master' into StylePaintCache
shai-almog Jan 20, 2016
1ea814a
Performance improvements to Androids graphics
shai-almog Jan 20, 2016
a84897a
Fix for #1640 for a case where a check for an animation in progress m…
shai-almog Jan 20, 2016
e9ce0d1
Fix for #1638 to also work on the old sync paint pipeline
shai-almog Jan 20, 2016
08cdfad
Minor performance improvement for style images/borders behind forms/d…
shai-almog Jan 20, 2016
6d16d1e
Made image locking more aggressive for style images that are set via …
shai-almog Jan 20, 2016
e378cfd
Fix for #1631 fonts get the right size.
shai-almog Jan 20, 2016
a7f73dd
Added JavaDocs and code samples to Dialog
shai-almog Jan 20, 2016
6bc945c
Merge pull request #1647 from codenameone/StylePaintCache
shai-almog Jan 20, 2016
3c877e1
Fix for NPE when initializing the UI too soon
shai-almog Jan 20, 2016
84f07f1
Updated the usage @inheritDoc which was misused thru the entire codeb…
shai-almog Jan 20, 2016
d4536a8
Last minute JavaDoc enhancements
shai-almog Jan 21, 2016
6902fd7
Fix for issue #1645 with custom list cell renderers
shai-almog Jan 21, 2016
922e27d
Unnecessary change removed
shai-almog Jan 21, 2016
46a53e9
Fix for #1645 when a style was changed on the EDT the currently queue…
shai-almog Jan 21, 2016
9b7ff77
Fixed bug in Javascript bridge that seemed to affect Android only. T…
shannah Jan 22, 2016
c2c394d
Some javadoc fixes
shai-almog Jan 23, 2016
ffa5b13
Additional javadoc fixes merged accidental commit to version branch
shai-almog Jan 23, 2016
4c99f29
Fix for device issue in Android
shai-almog Jan 24, 2016
7f86762
Reverted the fix for #1631 as it caused too many issues
shai-almog Jan 24, 2016
d814464
A few JavaDoc enhancements part of the work on the developer guide
shai-almog Jan 25, 2016
f9a66cf
Better javadocs for the flow layout
shai-almog Jan 26, 2016
440a1a1
Invalid character in javadoc
shai-almog Jan 26, 2016
f8b6f5b
Improved the package description for the layout manager JavaDoc
shai-almog Jan 27, 2016
a448c91
Fixed potential Android null pointer issue with background images tha…
shai-almog Jan 27, 2016
5d69b4e
Fix for lead components in side menus
shai-almog Jan 27, 2016
fd01106
display a warning message
chen-fishbein Jan 27, 2016
5bcea0c
Merge remote-tracking branch 'origin/master'
shai-almog Jan 27, 2016
e1aa249
Fix for regression in image handling on Android/iOS when setting a "r…
shai-almog Jan 27, 2016
63090ac
Removed a failed fix from before
shai-almog Jan 27, 2016
7a52de9
Fix for issue with combo boxes being disposed due to rotation/out of …
shai-almog Jan 28, 2016
e709a5c
Fix for issue #1652: "Unselected style is used for text fields when e…
shai-almog Jan 28, 2016
03c1c9b
Clarified some behavior in the javadoc
shai-almog Jan 28, 2016
81f6115
Added javadocs and some new terse API's
shai-almog Jan 28, 2016
22f7759
Added additional layout types
shai-almog Jan 28, 2016
2259714
Flushed out the javadocs for box and flow layout
shai-almog Jan 28, 2016
7981cde
New TableLayout JavaDocs
shai-almog Jan 28, 2016
4183aa5
Many javadoc fixes also removed all self closing br tags (e.g. <br/> …
shai-almog Jan 28, 2016
2bcbcb3
Fix for #1655 ActionEvent.getComponent() return Button instance inste…
shai-almog Jan 28, 2016
38a9a45
Added border to make the table more readable
shai-almog Jan 28, 2016
b156825
Fixed layout links
shai-almog Jan 28, 2016
1315b1b
Fix for an issue mentioned in #1656 related to font exception
shai-almog Jan 29, 2016
d5d2802
Correction for last commit
shai-almog Jan 29, 2016
d8fdcd4
Clarified that file system storage should be used here.
shai-almog Jan 30, 2016
1fb57ae
Added new scale image button counterpart to scale image label
shai-almog Jan 30, 2016
6abe73b
Deprecated coordinate layout which is something we should have done y…
shai-almog Jan 30, 2016
e0eb49b
JavaDoc fixes related to developer guide work
shai-almog Jan 31, 2016
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,8 @@ Ports/iOSPort/nbproject/private/private.xml
/vm/ByteCodeTranslator/build/
/vm/ByteCodeTranslator/dist/
/vm/JavaAPI/build/
/vm/JavaAPI/dist/
/vm/JavaAPI/dist/
Ports/iOSPort/nbproject/private/private.properties
CodenameOne/build.xml
CodenameOne/build.xml
Ports/iOSPort/nbproject/private/private.properties
Binary file added CodenameOne/.DS_Store
Binary file not shown.
38 changes: 38 additions & 0 deletions CodenameOne/JavaDocOverview.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<html>
<head>
<title>Codename One API</title>
</head>
<body>
<h2>Codename One - Write Once Run Anywhere Native Mobile Apps Using Java</h2>
<p><a href="https://www.codenameone.com/">Codename One</a> allows Java developers to write
their app once and have it work on all mobile devices (iOS, Android etc.). It features a simulator,
designer (visual theme/builder) and ports to multiple OS's.</p>

<p>Codename One is a mature open source project and its roots go back to Sun Microsystems (2006)
where one of its core underlying components was developed and open sourced.</p>


<p>
<a href="https://github.com/codenameone/CodenameOne/">Codename One is open source</a>.
This includes the libraries, native OS ports, resource editor &amp; native
VM code. It also includes themes and separate related projects containing demos, skins etc.
</p>

<p>
You can understand more about how Codename One works and how the API fits into everything in
<a href="http://stackoverflow.com/a/10646336/756809" target="_blank">this stackoverflow answer</a>.
</p>
<h4>Other Resources</h4>
<ul>
<li><a href="https://www.codenameone.com/manual/">Developer Guide</a></li>
<li><a href="https://www.codenameone.com/how-do-i.html">How Do I? - Get quick video answers and short tutorials for common questions</a></li>
<li><a href="https://www.codenameone.com/blog.html">The Codename One Blog</a></li>
<li><a href="https://www.codenameone.com/cn1libs.html">cn1libs are extensions to Codename One that allow using device native functionality</a></li>
<li><a href="http://stackoverflow.com/tags/codenameone">Stack Overflow's Codename One Tag</a></li>
<li><a href="https://www.codenameone.com/discussion-forum.html">Community Discussion Forum</a></li>
<li><a href="https://github.com/codenameone/CodenameOne/issues/">The Open Source project on github</a></li>
<li><a href="https://www.codenameone.com/blog/how-to-use-the-codename-one-sources.html">Build Codename One from source code</a></li>
</ul>
</body>
</html>
9 changes: 7 additions & 2 deletions CodenameOne/build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -104,20 +104,24 @@
<copydir src="dist/javadoc" dest="javadoc" />
</target>

<available file="../../CodenameOne/GUIBuilder/src" property="cn1env" />
<target name="-pre-compile" depends="stamp">
</target>


<!-- This target is used to build releases, you will need to comment out this target and to remove
the depends from the pre-compile target above-->
<target name="stamp">
<target name="stamp" if="cn1env">
<tstamp>
<format property="tstamp" pattern="yyyyMMdd" />
</tstamp>
<propertyfile file="../CodenameOneDesigner/src/version.properties"
comment="This file is automatically generated - DO NOT EDIT">
<entry key="build" value="${tstamp}"/>
</propertyfile>
<propertyfile file="../../CodenameOne/GUIBuilder/src/version.properties"
comment="This file is automatically generated - DO NOT EDIT">
<entry key="build" value="${tstamp}"/>
</propertyfile>
<propertyfile file="../../CodenameOne/NBPlugin/CodenameOnePlugin/src/version.properties"
comment="This file is automatically generated - DO NOT EDIT">
<entry key="build" value="${tstamp}"/>
Expand Down Expand Up @@ -351,6 +355,7 @@

<zip basedir="build/CodenameOneDist" file="../nightly_builds/CodenameOne_Docs_Demos_${tstamp}.zip" />

<ant inheritall="false" antfile="../../CodenameOne/GUIBuilder/GUIBuilderSE/build.xml" target="pack" />
<ant inheritall="false" antfile="../CodenameOneDesigner/build.xml" target="release" />
<!-- zip basedir="../CodenameOneDesigner/dist" includes="designer.jar" file="../nightly_builds/CodenameOneDesigner_${tstamp}.zip" / -->
<copy file="../CodenameOneDesigner/dist/designer.jar" todir="../../CodenameOne/IdeaPlugin/depedencies" />
Expand Down
6 changes: 5 additions & 1 deletion CodenameOne/build_javadoc.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
#/bin/sh

/usr/bin/find src ../../CodenameOne/CLDC11/src -name "*.java" | /usr/bin/grep -v /impl/ | /usr/bin/xargs /Library/Java/JavaVirtualMachines/1.7.0.jdk/Contents/Home/bin/javadoc -protected -d dist/javadoc -windowtitle "Codename One API"
rm -Rf dist/javadoc
rm -Rf build/tempJavaSources
/Library/Java/JavaVirtualMachines/jdk1.8.0_45.jdk/Contents/Home/bin/java -jar ~/dev/java/JavaDocSourceEmbed/target/JavaDocSourceEmbed-1.0-SNAPSHOT.jar src build/tempJavaSources

/usr/bin/find build/tempJavaSources ../../CodenameOne/CLDC11/src -name "*.java" | /usr/bin/grep -v /impl/ | /usr/bin/xargs /Library/Java/JavaVirtualMachines/jdk1.8.0_45.jdk/Contents/Home/bin/javadoc -protected -d dist/javadoc -windowtitle "Codename One API"
14 changes: 10 additions & 4 deletions CodenameOne/nbproject/build-impl.xml
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,12 @@ is divided into following sections:
</not>
</and>
</condition>
<property name="javac.fork" value="${jdkBug6558476}"/>
<condition else="false" property="javac.fork">
<or>
<istrue value="${jdkBug6558476}"/>
<istrue value="${javac.external.vm}"/>
</or>
</condition>
<property name="jar.index" value="false"/>
<property name="jar.index.metainf" value="${jar.index}"/>
<property name="copylibs.rebase" value="true"/>
Expand All @@ -217,6 +222,7 @@ is divided into following sections:
<condition else="" property="testng.debug.mode" value="-mixed">
<istrue value="${junit+testng.available}"/>
</condition>
<property name="java.failonerror" value="true"/>
</target>
<target name="-post-init">
<!-- Empty placeholder for easier customization. -->
Expand Down Expand Up @@ -693,7 +699,7 @@ is divided into following sections:
<sequential>
<property environment="env"/>
<resolve name="profiler.current.path" value="${profiler.info.pathvar}"/>
<java classname="@{classname}" dir="${profiler.info.dir}" fork="true" jvm="${profiler.info.jvm}">
<java classname="@{classname}" dir="${profiler.info.dir}" failonerror="${java.failonerror}" fork="true" jvm="${profiler.info.jvm}">
<jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
<jvmarg value="${profiler.info.jvmargs.agent}"/>
<jvmarg line="${profiler.info.jvmargs}"/>
Expand Down Expand Up @@ -768,7 +774,7 @@ is divided into following sections:
<attribute default="${debug.classpath}" name="classpath"/>
<element name="customize" optional="true"/>
<sequential>
<java classname="@{classname}" dir="${work.dir}" fork="true">
<java classname="@{classname}" dir="${work.dir}" failonerror="${java.failonerror}" fork="true">
<jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
<jvmarg line="${debug-args-line}"/>
<jvmarg value="-Xrunjdwp:transport=${debug-transport},address=${jpda.address}"/>
Expand All @@ -795,7 +801,7 @@ is divided into following sections:
<attribute default="jvm" name="jvm"/>
<element name="customize" optional="true"/>
<sequential>
<java classname="@{classname}" dir="${work.dir}" fork="true">
<java classname="@{classname}" dir="${work.dir}" failonerror="${java.failonerror}" fork="true">
<jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
<jvmarg value="-Dfile.encoding=${runtime.encoding}"/>
<redirector errorencoding="${runtime.encoding}" inputencoding="${runtime.encoding}" outputencoding="${runtime.encoding}"/>
Expand Down
4 changes: 2 additions & 2 deletions CodenameOne/nbproject/genfiles.properties
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ build.xml.stylesheet.CRC32=28e38971@1.44.1.45
# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml.
# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you.
nbproject/build-impl.xml.data.CRC32=cf85704b
nbproject/build-impl.xml.script.CRC32=f3ff6722
nbproject/build-impl.xml.stylesheet.CRC32=876e7a8f@1.75.1.48
nbproject/build-impl.xml.script.CRC32=0a9d24d0
nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48
Binary file modified CodenameOne/src/CN1Resource.res
Binary file not shown.
10 changes: 5 additions & 5 deletions CodenameOne/src/com/codename1/ads/AdsService.java
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ public void requestAd() {
}

/**
* @inheritDoc
* {@inheritDoc}
*/
protected void readResponse(InputStream input) throws IOException {
ByteArrayOutputStream out = new ByteArrayOutputStream();
Expand All @@ -118,7 +118,7 @@ protected void readResponse(InputStream input) throws IOException {
if (size > 0) {
String s = new String(out.toByteArray(), 0, size, "UTF-8");
currentAd = s;
fireResponseListener(new ActionEvent(currentAd));
fireResponseListener(new ActionEvent(currentAd,ActionEvent.Type.Response));
}
}

Expand All @@ -130,23 +130,23 @@ public void onAdDisplay(HTMLComponent cmp) {
}

/**
* @inheritDoc
* {@inheritDoc}
*/
protected void handleErrorResponseCode(int code, String message) {
//do nothing, ads failure should not interfere with application flow
System.err.println("error=" + code + " " + message);
}

/**
* @inheritDoc
* {@inheritDoc}
*/
protected void handleRuntimeException(RuntimeException err) {
//do nothing, ads failure should not interfere with application flow
err.printStackTrace();
}

/**
* @inheritDoc
* {@inheritDoc}
*/
protected void handleException(Exception err) {
//do nothing, ads failure should not interfere with application flow
Expand Down
7 changes: 4 additions & 3 deletions CodenameOne/src/com/codename1/ads/InnerActive.java
Original file line number Diff line number Diff line change
Expand Up @@ -152,8 +152,9 @@ public void initService(Ads ads){
addParam(this, "mn", Display.getInstance().getProperty("MSISDN", null));
String [] keywords = ads.getKeywords();
if(keywords != null && keywords.length > 0){
int klen = keywords.length;
String k = "";
for (int i = 0; i < keywords.length; i++) {
for (int i = 0; i < klen; i++) {
k += "," + keywords[i];
}
addParam(this, "k", k.substring(1));
Expand All @@ -164,7 +165,7 @@ public void initService(Ads ads){
}

/**
* @inheritDoc
* {@inheritDoc}
*/
protected void readResponse(InputStream input) throws IOException {
StringBuffer buf = new StringBuffer();
Expand All @@ -188,7 +189,7 @@ protected void readResponse(InputStream input) throws IOException {
// Storage.getInstance().flushStorageCache();
// addParam(this, "cid", cid);
// }
fireResponseListener(new ActionEvent(s));
fireResponseListener(new ActionEvent(s,ActionEvent.Type.Response));
}

}
2 changes: 1 addition & 1 deletion CodenameOne/src/com/codename1/ads/package.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
</head>
<body>
<p>
The Ads API allows developers to add Ads to their apps
A legacy banner Ads API. This has been replaced by more modern approaches mainly thru <a href="https://www.codenameone.com/cn1libs.html">cn1libs</a>.
</p>
<p>
Currently inner-active ads Network is supported
Expand Down
1 change: 1 addition & 0 deletions CodenameOne/src/com/codename1/capture/Capture.java
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ public class Capture {

/**
* Returns true if the device has camera false otherwise.
* @return true if the device has a camera
*/
public static boolean hasCamera(){
return Display.getInstance().hasCamera();
Expand Down
25 changes: 20 additions & 5 deletions CodenameOne/src/com/codename1/charts/ChartComponent.java
Original file line number Diff line number Diff line change
Expand Up @@ -184,8 +184,8 @@ public void paint(Graphics g) {

/**
* Converts screen coordinates to chart coordinates.
* @param x
* @param y
* @param x screen x position
* @param y screen y position
* @return The chart coordinate corresponding to the given screen coordinate.
*/
public Point screenToChartCoord(int x, int y){
Expand All @@ -199,8 +199,13 @@ public Point screenToChartCoord(int x, int y){
return new Point(x-getAbsoluteX(), y-getAbsoluteY());
}



/**
* Returns the screen position from a chart coordinate
*
* @param x the x position within the chart
* @param y the y position within the chart
* @return a position within the screen
*/
public Point chartToScreenCoord(int x, int y){
x += getAbsoluteX();
y += getAbsoluteY();
Expand All @@ -213,6 +218,11 @@ public Point chartToScreenCoord(int x, int y){
return new Point(x, y);
}

/**
* Converts a chart coordinate spaced shape to the same shape in the screen coordinate space
* @param s shape in screen coordinates
* @return same shape using chart space coordinates
*/
public Shape screenToChartShape(Shape s){
GeneralPath p = new GeneralPath();
Transform t = Transform.makeIdentity();
Expand All @@ -223,7 +233,12 @@ public Shape screenToChartShape(Shape s){
p.append(s.getPathIterator(t), false);
return p;
}


/**
* Converts a screen coordinate spaced shape to the same shape in the chart coordinate space
* @param s shape in chart coordinates
* @return same shape using screen coordinate space
*/
public Shape chartToScreenShape(Shape s){
GeneralPath p = new GeneralPath();
Transform inverse = Transform.makeTranslation(getAbsoluteX(), getAbsoluteY());
Expand Down
10 changes: 10 additions & 0 deletions CodenameOne/src/com/codename1/charts/ChartUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,16 @@
*/
public class ChartUtil {
private Canvas c = new Canvas();

/**
* Draws the given chart onto the given graphics
*
* @param g the graphics object
* @param chart the chart object
* @param bounds the bounds in which the chart should be drawn within the graphics
* @param absX
* @param absY
*/
public void paintChart(Graphics g, AbstractChart chart, Rectangle bounds, int absX, int absY){
c.g = g;
c.bounds = bounds;
Expand Down
13 changes: 7 additions & 6 deletions CodenameOne/src/com/codename1/charts/compat/Canvas.java
Original file line number Diff line number Diff line change
Expand Up @@ -259,21 +259,22 @@ void drawGradient(GradientDrawable gradient){
Orientation o = gradient.orientation;
Rectangle r = gradient.bounds;
int[] colors = gradient.colors;

int clen = colors.length;

if ( Orientation.TOP_BOTTOM.equals(o) || Orientation.BOTTOM_TOP.equals(o)){

if ( Orientation.BOTTOM_TOP.equals(o) ){
colors = new int[colors.length];
colors = new int[clen];

for ( int i=0; i<colors.length; i++){
for ( int i=0; i<clen; i++){

colors[i] = gradient.colors[colors.length-i-1];
colors[i] = gradient.colors[clen-i-1];
}
}
g.fillLinearGradient(colors[0], colors[colors.length-1], r.getX(), r.getY(), r.getWidth(), r.getHeight(), false);
g.fillLinearGradient(colors[0], colors[clen-1], r.getX(), r.getY(), r.getWidth(), r.getHeight(), false);

} else if ( Orientation.LEFT_RIGHT.equals(o)){
g.fillLinearGradient(gradient.colors[0], gradient.colors[gradient.colors.length-1], r.getX(), r.getY(), r.getWidth(), r.getHeight(), true);
g.fillLinearGradient(gradient.colors[0], gradient.colors[clen-1], r.getX(), r.getY(), r.getWidth(), r.getHeight(), true);
} else {
Log.p("Gradient with type "+o+" not implemented yet. Just filling solid rect");
g.setColor(gradient.colors[0]);
Expand Down
16 changes: 11 additions & 5 deletions CodenameOne/src/com/codename1/charts/compat/Paint.java
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,9 @@ public void getTextWidths(String text, float[] widths) {
Font f = getTypeface();
if ( f != null ){
char[] chars = text.toCharArray();
for ( int i=0; i<chars.length && i<widths.length; i++){
int clen = chars.length;
int wlen = widths.length;
for ( int i=0; i<clen && i<wlen; i++){
widths[i] = f.charWidth(chars[i]);
}
} else {
Expand All @@ -73,12 +75,14 @@ public int breakText(String text, boolean measureForwards, float maxWidth, float
int inc = measureForwards ? 1 : -1;

float currWidth = 0f;
for ( int i=start; (measureForwards && i<chars.length) || (!measureForwards && i>=0) ; i+=inc){
int clen = chars.length;
int wlen = measuredWidth != null ? measuredWidth.length : -1;
for ( int i=start; (measureForwards && i<clen) || (!measureForwards && i>=0) ; i+=inc){
tmp = f.charWidth(chars[i]);
if ( currWidth + tmp > maxWidth ){
return i;
}
if ( measuredWidth != null && i < measuredWidth.length ){
if (i < wlen ){
measuredWidth[i] = tmp;
}
currWidth += tmp;
Expand Down Expand Up @@ -116,7 +120,8 @@ float measureTextHeight(char[] chars, int start, int count){
Font f = getTypeface();
float h = 0f;
if ( f != null ){
for ( int i=start; i<chars.length && i<start+count; i++){
int clen = chars.length;
for ( int i=start; i<clen && i<start+count; i++){
float nh = f.getHeight();
h = nh > h ? nh : h;
}
Expand All @@ -136,7 +141,8 @@ public float measureText(char[] chars, int start, int count){
float out = 0f;
Font f = getTypeface();
if ( f != null ){
for ( int i=start; i< chars.length && i < start+count; i++){
int clen = chars.length;
for ( int i=start; i< clen && i < start+count; i++){
out += f.charWidth(chars[i]);
}
} else {
Expand Down
6 changes: 6 additions & 0 deletions CodenameOne/src/com/codename1/charts/compat/package.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<html>
<title>Compat</title>
<body>
This package contains compatibility classes for internal use
</body>
</html>
Loading