Skip to content
GitLab
Menu
Why GitLab
Pricing
Contact Sales
Explore
Why GitLab
Pricing
Contact Sales
Explore
Sign in
Get free trial
Primary navigation
Search or go to…
Project
S
stream-support-totalcross-sample
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Privacy statement
Keyboard shortcuts
?
What's new
4
Snippets
Groups
Projects
Show more breadcrumbs
GeoSales - Open Source
stream-support-totalcross-sample
Commits
e7444fa1
Commit
e7444fa1
authored
4 years ago
by
Jefferson Quesado
Browse files
Options
Downloads
Patches
Plain Diff
Estilo
parent
1102ca96
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/main/java/br/com/softsite/streamsupport/App.java
+7
-8
7 additions, 8 deletions
src/main/java/br/com/softsite/streamsupport/App.java
src/main/java/br/com/softsite/streamsupport/SampleApp.java
+0
-1
0 additions, 1 deletion
src/main/java/br/com/softsite/streamsupport/SampleApp.java
with
7 additions
and
9 deletions
src/main/java/br/com/softsite/streamsupport/App.java
+
7
−
8
View file @
e7444fa1
...
...
@@ -15,16 +15,15 @@ import totalcross.ui.MainWindow;
public
class
App
extends
MainWindow
{
public
App
()
{
}
@Override
public
void
initUI
()
{
Container
c
=
new
Container
();
LinkedHashMap
<
String
,
String
>
hash
=
new
LinkedHashMap
<>();
hash
.
put
(
"hash"
,
"map"
);
Button
btn
=
new
Button
(
"Hello world?"
);
btn
.
addPressListener
(
e
->
{
HashMap
<
String
,
String
>
hash2
=
CollectionUtils
.
getHashMap
(
hash
);
c
.
removeAll
();
...
...
@@ -34,9 +33,9 @@ public class App extends MainWindow {
c
.
add
(
l
,
LEFT
,
AFTER
,
FILL
,
PREFERRED
);
});
});
Button
btn2
=
new
Button
(
"Hello world direct?"
);
btn2
.
addPressListener
(
e
->
{
c
.
removeAll
();
c
.
add
(
new
Label
(
"resultados direto"
),
LEFT
,
TOP
,
FILL
,
PREFERRED
);
...
...
@@ -45,9 +44,9 @@ public class App extends MainWindow {
c
.
add
(
l
,
LEFT
,
AFTER
,
FILL
,
PREFERRED
);
});
});
Button
btn3
=
new
Button
(
"Hello world bifunction?"
);
btn3
.
addPressListener
(
e
->
{
c
.
removeAll
();
c
.
add
(
new
Label
(
"resultados bifunction"
),
LEFT
,
TOP
,
FILL
,
PREFERRED
);
...
...
@@ -60,7 +59,7 @@ public class App extends MainWindow {
f
.
apply
(
s
,
c
);
});
});
Button
btnAdd
=
new
Button
(
"Adicionar ao hashmap"
);
Edit
edKey
=
new
Edit
();
Edit
edValue
=
new
Edit
();
...
...
This diff is collapsed.
Click to expand it.
src/main/java/br/com/softsite/streamsupport/SampleApp.java
+
0
−
1
View file @
e7444fa1
...
...
@@ -7,5 +7,4 @@ public class SampleApp {
public
static
void
main
(
String
[]
args
)
{
TotalCrossApplication
.
run
(
App
.
class
);
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment