SlideShare a Scribd company logo
1 of 13
Download to read offline
Extracting ui Design - part IV
BaseForm
© Codename One 2017 all rights reserved
Toolbar tb = getToolbar();
tb.setUIID("Container");
tb.addSearchCommand(e -> onSearch((String)e.getSource()));
tb.addMaterialCommandToSideMenu("Shopping Cart", 

FontImage.MATERIAL_SHOPPING_CART, e -> {});
Label filler = new Label(" ");
filler.setPreferredSize(getTitleArea().getPreferredSize());
currentOrderValue = new Label("Your Order: " + 

L10NManager.getInstance().formatCurrency(0),
"YourOrder");
Button cart = new Button("", "ShoppingCart");
cart.addActionListener(e -> CheckoutForm.showCheckOut());
FontImage.setMaterialIcon(cart, FontImage.MATERIAL_SHOPPING_CART);
BaseForm
Toolbar tb = getToolbar();
tb.setUIID("Container");
tb.addSearchCommand(e -> onSearch((String)e.getSource()));
tb.addMaterialCommandToSideMenu("Shopping Cart", 

FontImage.MATERIAL_SHOPPING_CART, e -> {});
Label filler = new Label(" ");
filler.setPreferredSize(getTitleArea().getPreferredSize());
currentOrderValue = new Label("Your Order: " + 

L10NManager.getInstance().formatCurrency(0),
"YourOrder");
Button cart = new Button("", "ShoppingCart");
cart.addActionListener(e -> CheckoutForm.showCheckOut());
FontImage.setMaterialIcon(cart, FontImage.MATERIAL_SHOPPING_CART);
BaseForm
Toolbar tb = getToolbar();
tb.setUIID("Container");
tb.addSearchCommand(e -> onSearch((String)e.getSource()));
tb.addMaterialCommandToSideMenu("Shopping Cart", 

FontImage.MATERIAL_SHOPPING_CART, e -> {});
Label filler = new Label(" ");
filler.setPreferredSize(getTitleArea().getPreferredSize());
currentOrderValue = new Label("Your Order: " + 

L10NManager.getInstance().formatCurrency(0),
"YourOrder");
Button cart = new Button("", "ShoppingCart");
cart.addActionListener(e -> CheckoutForm.showCheckOut());
FontImage.setMaterialIcon(cart, FontImage.MATERIAL_SHOPPING_CART);
BaseForm
Toolbar tb = getToolbar();
tb.setUIID("Container");
tb.addSearchCommand(e -> onSearch((String)e.getSource()));
tb.addMaterialCommandToSideMenu("Shopping Cart", 

FontImage.MATERIAL_SHOPPING_CART, e -> {});
Label filler = new Label(" ");
filler.setPreferredSize(getTitleArea().getPreferredSize());
currentOrderValue = new Label("Your Order: " + 

L10NManager.getInstance().formatCurrency(0),
"YourOrder");
Button cart = new Button("", "ShoppingCart");
cart.addActionListener(e -> CheckoutForm.showCheckOut());
FontImage.setMaterialIcon(cart, FontImage.MATERIAL_SHOPPING_CART);
BaseForm
Toolbar tb = getToolbar();
tb.setUIID("Container");
tb.addSearchCommand(e -> onSearch((String)e.getSource()));
tb.addMaterialCommandToSideMenu("Shopping Cart", 

FontImage.MATERIAL_SHOPPING_CART, e -> {});
Label filler = new Label(" ");
filler.setPreferredSize(getTitleArea().getPreferredSize());
currentOrderValue = new Label("Your Order: " + 

L10NManager.getInstance().formatCurrency(0),
"YourOrder");
Button cart = new Button("", "ShoppingCart");
cart.addActionListener(e -> CheckoutForm.showCheckOut());
FontImage.setMaterialIcon(cart, FontImage.MATERIAL_SHOPPING_CART);
BaseForm
Container orderBar = new Container(
new BorderLayout(BorderLayout.CENTER_BEHAVIOR_CENTER_ABSOLUTE)) {
@Override
protected Dimension calcPreferredSize() {
Dimension d= super.calcPreferredSize();
if(d.getHeight() % 2 != 0) {
d.setHeight(d.getHeight() + 1);
}
return d;
}
};
orderBar.add(BorderLayout.CENTER, currentOrderValue).
add(BorderLayout.EAST, cart);
Label opaque = new Label("", "OrderBarBackgroundOpaque");
opaque.setShowEvenIfBlank(true);
Container orderBackgroundGrid = GridLayout.encloseIn(1,
new Container(), opaque);
Container orderLayers = LayeredLayout.encloseIn(orderBackgroundGrid,
orderBar);
BaseForm
Container orderBar = new Container(
new BorderLayout(BorderLayout.CENTER_BEHAVIOR_CENTER_ABSOLUTE)) {
@Override
protected Dimension calcPreferredSize() {
Dimension d= super.calcPreferredSize();
if(d.getHeight() % 2 != 0) {
d.setHeight(d.getHeight() + 1);
}
return d;
}
};
orderBar.add(BorderLayout.CENTER, currentOrderValue).
add(BorderLayout.EAST, cart);
Label opaque = new Label("", "OrderBarBackgroundOpaque");
opaque.setShowEvenIfBlank(true);
Container orderBackgroundGrid = GridLayout.encloseIn(1,
new Container(), opaque);
Container orderLayers = LayeredLayout.encloseIn(orderBackgroundGrid,
orderBar);
BaseForm
List<String> categoryList = createCategoryList();
Container topBar;
if(categoryList != null) {
Label separator = new Label("", "WhiteSeparatorLine");
separator.setShowEvenIfBlank(true);
topBar = BoxLayout.encloseY(filler, categoryList,
FlowLayout.encloseCenter(separator),
orderLayers);
} else {
topBar = BoxLayout.encloseY(filler, orderLayers);
}
topBar.setUIID("TopBar");
add(BorderLayout.NORTH, topBar);
add(BorderLayout.CENTER, createContent());
BaseForm
List<String> categoryList = createCategoryList();
Container topBar;
if(categoryList != null) {
Label separator = new Label("", "WhiteSeparatorLine");
separator.setShowEvenIfBlank(true);
topBar = BoxLayout.encloseY(filler, categoryList,
FlowLayout.encloseCenter(separator),
orderLayers);
} else {
topBar = BoxLayout.encloseY(filler, orderLayers);
}
topBar.setUIID("TopBar");
add(BorderLayout.NORTH, topBar);
add(BorderLayout.CENTER, createContent());
BaseForm
List<String> categoryList = createCategoryList();
Container topBar;
if(categoryList != null) {
Label separator = new Label("", "WhiteSeparatorLine");
separator.setShowEvenIfBlank(true);
topBar = BoxLayout.encloseY(filler, categoryList,
FlowLayout.encloseCenter(separator),
orderLayers);
} else {
topBar = BoxLayout.encloseY(filler, orderLayers);
}
topBar.setUIID("TopBar");
add(BorderLayout.NORTH, topBar);
add(BorderLayout.CENTER, createContent());
BaseForm
List<String> categoryList = createCategoryList();
Container topBar;
if(categoryList != null) {
Label separator = new Label("", "WhiteSeparatorLine");
separator.setShowEvenIfBlank(true);
topBar = BoxLayout.encloseY(filler, categoryList,
FlowLayout.encloseCenter(separator),
orderLayers);
} else {
topBar = BoxLayout.encloseY(filler, orderLayers);
}
topBar.setUIID("TopBar");
add(BorderLayout.NORTH, topBar);
add(BorderLayout.CENTER, createContent());
BaseForm

More Related Content

Similar to Extracting ui Design - part 4.pdf

Architecture - Part 2.pdf
Architecture - Part 2.pdfArchitecture - Part 2.pdf
Architecture - Part 2.pdfShaiAlmog1
 
12.9 Program Online shopping cart (continued) (C++)This program e.pdf
12.9 Program Online shopping cart (continued) (C++)This program e.pdf12.9 Program Online shopping cart (continued) (C++)This program e.pdf
12.9 Program Online shopping cart (continued) (C++)This program e.pdffasttracksunglass
 
Miscellaneous Features - Part 1.pdf
Miscellaneous Features - Part 1.pdfMiscellaneous Features - Part 1.pdf
Miscellaneous Features - Part 1.pdfShaiAlmog1
 
Initial UI Mockup - Part 2.pdf
Initial UI Mockup - Part 2.pdfInitial UI Mockup - Part 2.pdf
Initial UI Mockup - Part 2.pdfShaiAlmog1
 
Why SOLID matters - even for JavaScript
Why SOLID matters - even for JavaScriptWhy SOLID matters - even for JavaScript
Why SOLID matters - even for JavaScriptmartinlippert
 
Creating a Facebook Clone - Part XLII.pdf
Creating a Facebook Clone - Part XLII.pdfCreating a Facebook Clone - Part XLII.pdf
Creating a Facebook Clone - Part XLII.pdfShaiAlmog1
 
Architecture - Part 2 - Transcript.pdf
Architecture - Part 2 - Transcript.pdfArchitecture - Part 2 - Transcript.pdf
Architecture - Part 2 - Transcript.pdfShaiAlmog1
 
Creating an Uber Clone - Part XXXIX.pdf
Creating an Uber Clone - Part XXXIX.pdfCreating an Uber Clone - Part XXXIX.pdf
Creating an Uber Clone - Part XXXIX.pdfShaiAlmog1
 
Miscellaneous Features - Part 2.pdf
Miscellaneous Features - Part 2.pdfMiscellaneous Features - Part 2.pdf
Miscellaneous Features - Part 2.pdfShaiAlmog1
 
Creating a Facebook Clone - Part XXVIII.pdf
Creating a Facebook Clone - Part XXVIII.pdfCreating a Facebook Clone - Part XXVIII.pdf
Creating a Facebook Clone - Part XXVIII.pdfShaiAlmog1
 
Creating an Uber - Part VI.pdf
Creating an Uber - Part VI.pdfCreating an Uber - Part VI.pdf
Creating an Uber - Part VI.pdfShaiAlmog1
 
Ajava oep shopping application
Ajava oep shopping applicationAjava oep shopping application
Ajava oep shopping applicationPaneliya Prince
 
Creating an Uber Clone - Part IX.pdf
Creating an Uber Clone - Part IX.pdfCreating an Uber Clone - Part IX.pdf
Creating an Uber Clone - Part IX.pdfShaiAlmog1
 
I finished most of the program, but having trouble with some key fea.pdf
I finished most of the program, but having trouble with some key fea.pdfI finished most of the program, but having trouble with some key fea.pdf
I finished most of the program, but having trouble with some key fea.pdfhardjasonoco14599
 
Extracting ui Design - part 5 - transcript.pdf
Extracting ui Design - part 5 - transcript.pdfExtracting ui Design - part 5 - transcript.pdf
Extracting ui Design - part 5 - transcript.pdfShaiAlmog1
 
Creating a Facebook Clone - Part VII.pdf
Creating a Facebook Clone - Part VII.pdfCreating a Facebook Clone - Part VII.pdf
Creating a Facebook Clone - Part VII.pdfShaiAlmog1
 
PHP cart
PHP cartPHP cart
PHP carttumetr1
 
Creating a Facebook Clone - Part VI - Transcript.pdf
Creating a Facebook Clone - Part VI - Transcript.pdfCreating a Facebook Clone - Part VI - Transcript.pdf
Creating a Facebook Clone - Part VI - Transcript.pdfShaiAlmog1
 

Similar to Extracting ui Design - part 4.pdf (20)

Architecture - Part 2.pdf
Architecture - Part 2.pdfArchitecture - Part 2.pdf
Architecture - Part 2.pdf
 
12.9 Program Online shopping cart (continued) (C++)This program e.pdf
12.9 Program Online shopping cart (continued) (C++)This program e.pdf12.9 Program Online shopping cart (continued) (C++)This program e.pdf
12.9 Program Online shopping cart (continued) (C++)This program e.pdf
 
Miscellaneous Features - Part 1.pdf
Miscellaneous Features - Part 1.pdfMiscellaneous Features - Part 1.pdf
Miscellaneous Features - Part 1.pdf
 
Initial UI Mockup - Part 2.pdf
Initial UI Mockup - Part 2.pdfInitial UI Mockup - Part 2.pdf
Initial UI Mockup - Part 2.pdf
 
Why SOLID matters - even for JavaScript
Why SOLID matters - even for JavaScriptWhy SOLID matters - even for JavaScript
Why SOLID matters - even for JavaScript
 
Creating a Facebook Clone - Part XLII.pdf
Creating a Facebook Clone - Part XLII.pdfCreating a Facebook Clone - Part XLII.pdf
Creating a Facebook Clone - Part XLII.pdf
 
Architecture - Part 2 - Transcript.pdf
Architecture - Part 2 - Transcript.pdfArchitecture - Part 2 - Transcript.pdf
Architecture - Part 2 - Transcript.pdf
 
Creating an Uber Clone - Part XXXIX.pdf
Creating an Uber Clone - Part XXXIX.pdfCreating an Uber Clone - Part XXXIX.pdf
Creating an Uber Clone - Part XXXIX.pdf
 
Miscellaneous Features - Part 2.pdf
Miscellaneous Features - Part 2.pdfMiscellaneous Features - Part 2.pdf
Miscellaneous Features - Part 2.pdf
 
Creating a Facebook Clone - Part XXVIII.pdf
Creating a Facebook Clone - Part XXVIII.pdfCreating a Facebook Clone - Part XXVIII.pdf
Creating a Facebook Clone - Part XXVIII.pdf
 
Creating an Uber - Part VI.pdf
Creating an Uber - Part VI.pdfCreating an Uber - Part VI.pdf
Creating an Uber - Part VI.pdf
 
Ajava oep shopping application
Ajava oep shopping applicationAjava oep shopping application
Ajava oep shopping application
 
Creating an Uber Clone - Part IX.pdf
Creating an Uber Clone - Part IX.pdfCreating an Uber Clone - Part IX.pdf
Creating an Uber Clone - Part IX.pdf
 
Leveraging Symfony2 Forms
Leveraging Symfony2 FormsLeveraging Symfony2 Forms
Leveraging Symfony2 Forms
 
I finished most of the program, but having trouble with some key fea.pdf
I finished most of the program, but having trouble with some key fea.pdfI finished most of the program, but having trouble with some key fea.pdf
I finished most of the program, but having trouble with some key fea.pdf
 
Zero to SOLID
Zero to SOLIDZero to SOLID
Zero to SOLID
 
Extracting ui Design - part 5 - transcript.pdf
Extracting ui Design - part 5 - transcript.pdfExtracting ui Design - part 5 - transcript.pdf
Extracting ui Design - part 5 - transcript.pdf
 
Creating a Facebook Clone - Part VII.pdf
Creating a Facebook Clone - Part VII.pdfCreating a Facebook Clone - Part VII.pdf
Creating a Facebook Clone - Part VII.pdf
 
PHP cart
PHP cartPHP cart
PHP cart
 
Creating a Facebook Clone - Part VI - Transcript.pdf
Creating a Facebook Clone - Part VI - Transcript.pdfCreating a Facebook Clone - Part VI - Transcript.pdf
Creating a Facebook Clone - Part VI - Transcript.pdf
 

More from ShaiAlmog1

The Duck Teaches Learn to debug from the masters. Local to production- kill ...
The Duck Teaches  Learn to debug from the masters. Local to production- kill ...The Duck Teaches  Learn to debug from the masters. Local to production- kill ...
The Duck Teaches Learn to debug from the masters. Local to production- kill ...ShaiAlmog1
 
create-netflix-clone-06-client-ui.pdf
create-netflix-clone-06-client-ui.pdfcreate-netflix-clone-06-client-ui.pdf
create-netflix-clone-06-client-ui.pdfShaiAlmog1
 
create-netflix-clone-01-introduction_transcript.pdf
create-netflix-clone-01-introduction_transcript.pdfcreate-netflix-clone-01-introduction_transcript.pdf
create-netflix-clone-01-introduction_transcript.pdfShaiAlmog1
 
create-netflix-clone-02-server_transcript.pdf
create-netflix-clone-02-server_transcript.pdfcreate-netflix-clone-02-server_transcript.pdf
create-netflix-clone-02-server_transcript.pdfShaiAlmog1
 
create-netflix-clone-04-server-continued_transcript.pdf
create-netflix-clone-04-server-continued_transcript.pdfcreate-netflix-clone-04-server-continued_transcript.pdf
create-netflix-clone-04-server-continued_transcript.pdfShaiAlmog1
 
create-netflix-clone-01-introduction.pdf
create-netflix-clone-01-introduction.pdfcreate-netflix-clone-01-introduction.pdf
create-netflix-clone-01-introduction.pdfShaiAlmog1
 
create-netflix-clone-06-client-ui_transcript.pdf
create-netflix-clone-06-client-ui_transcript.pdfcreate-netflix-clone-06-client-ui_transcript.pdf
create-netflix-clone-06-client-ui_transcript.pdfShaiAlmog1
 
create-netflix-clone-03-server.pdf
create-netflix-clone-03-server.pdfcreate-netflix-clone-03-server.pdf
create-netflix-clone-03-server.pdfShaiAlmog1
 
create-netflix-clone-04-server-continued.pdf
create-netflix-clone-04-server-continued.pdfcreate-netflix-clone-04-server-continued.pdf
create-netflix-clone-04-server-continued.pdfShaiAlmog1
 
create-netflix-clone-05-client-model_transcript.pdf
create-netflix-clone-05-client-model_transcript.pdfcreate-netflix-clone-05-client-model_transcript.pdf
create-netflix-clone-05-client-model_transcript.pdfShaiAlmog1
 
create-netflix-clone-03-server_transcript.pdf
create-netflix-clone-03-server_transcript.pdfcreate-netflix-clone-03-server_transcript.pdf
create-netflix-clone-03-server_transcript.pdfShaiAlmog1
 
create-netflix-clone-02-server.pdf
create-netflix-clone-02-server.pdfcreate-netflix-clone-02-server.pdf
create-netflix-clone-02-server.pdfShaiAlmog1
 
create-netflix-clone-05-client-model.pdf
create-netflix-clone-05-client-model.pdfcreate-netflix-clone-05-client-model.pdf
create-netflix-clone-05-client-model.pdfShaiAlmog1
 
Creating a Whatsapp Clone - Part II.pdf
Creating a Whatsapp Clone - Part II.pdfCreating a Whatsapp Clone - Part II.pdf
Creating a Whatsapp Clone - Part II.pdfShaiAlmog1
 
Creating a Whatsapp Clone - Part IX - Transcript.pdf
Creating a Whatsapp Clone - Part IX - Transcript.pdfCreating a Whatsapp Clone - Part IX - Transcript.pdf
Creating a Whatsapp Clone - Part IX - Transcript.pdfShaiAlmog1
 
Creating a Whatsapp Clone - Part II - Transcript.pdf
Creating a Whatsapp Clone - Part II - Transcript.pdfCreating a Whatsapp Clone - Part II - Transcript.pdf
Creating a Whatsapp Clone - Part II - Transcript.pdfShaiAlmog1
 
Creating a Whatsapp Clone - Part V - Transcript.pdf
Creating a Whatsapp Clone - Part V - Transcript.pdfCreating a Whatsapp Clone - Part V - Transcript.pdf
Creating a Whatsapp Clone - Part V - Transcript.pdfShaiAlmog1
 
Creating a Whatsapp Clone - Part IV - Transcript.pdf
Creating a Whatsapp Clone - Part IV - Transcript.pdfCreating a Whatsapp Clone - Part IV - Transcript.pdf
Creating a Whatsapp Clone - Part IV - Transcript.pdfShaiAlmog1
 
Creating a Whatsapp Clone - Part IV.pdf
Creating a Whatsapp Clone - Part IV.pdfCreating a Whatsapp Clone - Part IV.pdf
Creating a Whatsapp Clone - Part IV.pdfShaiAlmog1
 
Creating a Whatsapp Clone - Part I - Transcript.pdf
Creating a Whatsapp Clone - Part I - Transcript.pdfCreating a Whatsapp Clone - Part I - Transcript.pdf
Creating a Whatsapp Clone - Part I - Transcript.pdfShaiAlmog1
 

More from ShaiAlmog1 (20)

The Duck Teaches Learn to debug from the masters. Local to production- kill ...
The Duck Teaches  Learn to debug from the masters. Local to production- kill ...The Duck Teaches  Learn to debug from the masters. Local to production- kill ...
The Duck Teaches Learn to debug from the masters. Local to production- kill ...
 
create-netflix-clone-06-client-ui.pdf
create-netflix-clone-06-client-ui.pdfcreate-netflix-clone-06-client-ui.pdf
create-netflix-clone-06-client-ui.pdf
 
create-netflix-clone-01-introduction_transcript.pdf
create-netflix-clone-01-introduction_transcript.pdfcreate-netflix-clone-01-introduction_transcript.pdf
create-netflix-clone-01-introduction_transcript.pdf
 
create-netflix-clone-02-server_transcript.pdf
create-netflix-clone-02-server_transcript.pdfcreate-netflix-clone-02-server_transcript.pdf
create-netflix-clone-02-server_transcript.pdf
 
create-netflix-clone-04-server-continued_transcript.pdf
create-netflix-clone-04-server-continued_transcript.pdfcreate-netflix-clone-04-server-continued_transcript.pdf
create-netflix-clone-04-server-continued_transcript.pdf
 
create-netflix-clone-01-introduction.pdf
create-netflix-clone-01-introduction.pdfcreate-netflix-clone-01-introduction.pdf
create-netflix-clone-01-introduction.pdf
 
create-netflix-clone-06-client-ui_transcript.pdf
create-netflix-clone-06-client-ui_transcript.pdfcreate-netflix-clone-06-client-ui_transcript.pdf
create-netflix-clone-06-client-ui_transcript.pdf
 
create-netflix-clone-03-server.pdf
create-netflix-clone-03-server.pdfcreate-netflix-clone-03-server.pdf
create-netflix-clone-03-server.pdf
 
create-netflix-clone-04-server-continued.pdf
create-netflix-clone-04-server-continued.pdfcreate-netflix-clone-04-server-continued.pdf
create-netflix-clone-04-server-continued.pdf
 
create-netflix-clone-05-client-model_transcript.pdf
create-netflix-clone-05-client-model_transcript.pdfcreate-netflix-clone-05-client-model_transcript.pdf
create-netflix-clone-05-client-model_transcript.pdf
 
create-netflix-clone-03-server_transcript.pdf
create-netflix-clone-03-server_transcript.pdfcreate-netflix-clone-03-server_transcript.pdf
create-netflix-clone-03-server_transcript.pdf
 
create-netflix-clone-02-server.pdf
create-netflix-clone-02-server.pdfcreate-netflix-clone-02-server.pdf
create-netflix-clone-02-server.pdf
 
create-netflix-clone-05-client-model.pdf
create-netflix-clone-05-client-model.pdfcreate-netflix-clone-05-client-model.pdf
create-netflix-clone-05-client-model.pdf
 
Creating a Whatsapp Clone - Part II.pdf
Creating a Whatsapp Clone - Part II.pdfCreating a Whatsapp Clone - Part II.pdf
Creating a Whatsapp Clone - Part II.pdf
 
Creating a Whatsapp Clone - Part IX - Transcript.pdf
Creating a Whatsapp Clone - Part IX - Transcript.pdfCreating a Whatsapp Clone - Part IX - Transcript.pdf
Creating a Whatsapp Clone - Part IX - Transcript.pdf
 
Creating a Whatsapp Clone - Part II - Transcript.pdf
Creating a Whatsapp Clone - Part II - Transcript.pdfCreating a Whatsapp Clone - Part II - Transcript.pdf
Creating a Whatsapp Clone - Part II - Transcript.pdf
 
Creating a Whatsapp Clone - Part V - Transcript.pdf
Creating a Whatsapp Clone - Part V - Transcript.pdfCreating a Whatsapp Clone - Part V - Transcript.pdf
Creating a Whatsapp Clone - Part V - Transcript.pdf
 
Creating a Whatsapp Clone - Part IV - Transcript.pdf
Creating a Whatsapp Clone - Part IV - Transcript.pdfCreating a Whatsapp Clone - Part IV - Transcript.pdf
Creating a Whatsapp Clone - Part IV - Transcript.pdf
 
Creating a Whatsapp Clone - Part IV.pdf
Creating a Whatsapp Clone - Part IV.pdfCreating a Whatsapp Clone - Part IV.pdf
Creating a Whatsapp Clone - Part IV.pdf
 
Creating a Whatsapp Clone - Part I - Transcript.pdf
Creating a Whatsapp Clone - Part I - Transcript.pdfCreating a Whatsapp Clone - Part I - Transcript.pdf
Creating a Whatsapp Clone - Part I - Transcript.pdf
 

Recently uploaded

From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationRidwan Fadjar
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Alan Dix
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slidespraypatel2
 
Key Features Of Token Development (1).pptx
Key  Features Of Token  Development (1).pptxKey  Features Of Token  Development (1).pptx
Key Features Of Token Development (1).pptxLBM Solutions
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...shyamraj55
 
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersThousandEyes
 
How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?XfilesPro
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machinePadma Pradeep
 
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreternaman860154
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024Scott Keck-Warren
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdfhans926745
 
Benefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksBenefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksSoftradix Technologies
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticscarlostorres15106
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsEnterprise Knowledge
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
 

Recently uploaded (20)

From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slides
 
Key Features Of Token Development (1).pptx
Key  Features Of Token  Development (1).pptxKey  Features Of Token  Development (1).pptx
Key Features Of Token Development (1).pptx
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
 
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
 
How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machine
 
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
Benefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksBenefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other Frameworks
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 

Extracting ui Design - part 4.pdf

  • 2. BaseForm © Codename One 2017 all rights reserved
  • 3. Toolbar tb = getToolbar(); tb.setUIID("Container"); tb.addSearchCommand(e -> onSearch((String)e.getSource())); tb.addMaterialCommandToSideMenu("Shopping Cart", 
 FontImage.MATERIAL_SHOPPING_CART, e -> {}); Label filler = new Label(" "); filler.setPreferredSize(getTitleArea().getPreferredSize()); currentOrderValue = new Label("Your Order: " + 
 L10NManager.getInstance().formatCurrency(0), "YourOrder"); Button cart = new Button("", "ShoppingCart"); cart.addActionListener(e -> CheckoutForm.showCheckOut()); FontImage.setMaterialIcon(cart, FontImage.MATERIAL_SHOPPING_CART); BaseForm
  • 4. Toolbar tb = getToolbar(); tb.setUIID("Container"); tb.addSearchCommand(e -> onSearch((String)e.getSource())); tb.addMaterialCommandToSideMenu("Shopping Cart", 
 FontImage.MATERIAL_SHOPPING_CART, e -> {}); Label filler = new Label(" "); filler.setPreferredSize(getTitleArea().getPreferredSize()); currentOrderValue = new Label("Your Order: " + 
 L10NManager.getInstance().formatCurrency(0), "YourOrder"); Button cart = new Button("", "ShoppingCart"); cart.addActionListener(e -> CheckoutForm.showCheckOut()); FontImage.setMaterialIcon(cart, FontImage.MATERIAL_SHOPPING_CART); BaseForm
  • 5. Toolbar tb = getToolbar(); tb.setUIID("Container"); tb.addSearchCommand(e -> onSearch((String)e.getSource())); tb.addMaterialCommandToSideMenu("Shopping Cart", 
 FontImage.MATERIAL_SHOPPING_CART, e -> {}); Label filler = new Label(" "); filler.setPreferredSize(getTitleArea().getPreferredSize()); currentOrderValue = new Label("Your Order: " + 
 L10NManager.getInstance().formatCurrency(0), "YourOrder"); Button cart = new Button("", "ShoppingCart"); cart.addActionListener(e -> CheckoutForm.showCheckOut()); FontImage.setMaterialIcon(cart, FontImage.MATERIAL_SHOPPING_CART); BaseForm
  • 6. Toolbar tb = getToolbar(); tb.setUIID("Container"); tb.addSearchCommand(e -> onSearch((String)e.getSource())); tb.addMaterialCommandToSideMenu("Shopping Cart", 
 FontImage.MATERIAL_SHOPPING_CART, e -> {}); Label filler = new Label(" "); filler.setPreferredSize(getTitleArea().getPreferredSize()); currentOrderValue = new Label("Your Order: " + 
 L10NManager.getInstance().formatCurrency(0), "YourOrder"); Button cart = new Button("", "ShoppingCart"); cart.addActionListener(e -> CheckoutForm.showCheckOut()); FontImage.setMaterialIcon(cart, FontImage.MATERIAL_SHOPPING_CART); BaseForm
  • 7. Toolbar tb = getToolbar(); tb.setUIID("Container"); tb.addSearchCommand(e -> onSearch((String)e.getSource())); tb.addMaterialCommandToSideMenu("Shopping Cart", 
 FontImage.MATERIAL_SHOPPING_CART, e -> {}); Label filler = new Label(" "); filler.setPreferredSize(getTitleArea().getPreferredSize()); currentOrderValue = new Label("Your Order: " + 
 L10NManager.getInstance().formatCurrency(0), "YourOrder"); Button cart = new Button("", "ShoppingCart"); cart.addActionListener(e -> CheckoutForm.showCheckOut()); FontImage.setMaterialIcon(cart, FontImage.MATERIAL_SHOPPING_CART); BaseForm
  • 8. Container orderBar = new Container( new BorderLayout(BorderLayout.CENTER_BEHAVIOR_CENTER_ABSOLUTE)) { @Override protected Dimension calcPreferredSize() { Dimension d= super.calcPreferredSize(); if(d.getHeight() % 2 != 0) { d.setHeight(d.getHeight() + 1); } return d; } }; orderBar.add(BorderLayout.CENTER, currentOrderValue). add(BorderLayout.EAST, cart); Label opaque = new Label("", "OrderBarBackgroundOpaque"); opaque.setShowEvenIfBlank(true); Container orderBackgroundGrid = GridLayout.encloseIn(1, new Container(), opaque); Container orderLayers = LayeredLayout.encloseIn(orderBackgroundGrid, orderBar); BaseForm
  • 9. Container orderBar = new Container( new BorderLayout(BorderLayout.CENTER_BEHAVIOR_CENTER_ABSOLUTE)) { @Override protected Dimension calcPreferredSize() { Dimension d= super.calcPreferredSize(); if(d.getHeight() % 2 != 0) { d.setHeight(d.getHeight() + 1); } return d; } }; orderBar.add(BorderLayout.CENTER, currentOrderValue). add(BorderLayout.EAST, cart); Label opaque = new Label("", "OrderBarBackgroundOpaque"); opaque.setShowEvenIfBlank(true); Container orderBackgroundGrid = GridLayout.encloseIn(1, new Container(), opaque); Container orderLayers = LayeredLayout.encloseIn(orderBackgroundGrid, orderBar); BaseForm
  • 10. List<String> categoryList = createCategoryList(); Container topBar; if(categoryList != null) { Label separator = new Label("", "WhiteSeparatorLine"); separator.setShowEvenIfBlank(true); topBar = BoxLayout.encloseY(filler, categoryList, FlowLayout.encloseCenter(separator), orderLayers); } else { topBar = BoxLayout.encloseY(filler, orderLayers); } topBar.setUIID("TopBar"); add(BorderLayout.NORTH, topBar); add(BorderLayout.CENTER, createContent()); BaseForm
  • 11. List<String> categoryList = createCategoryList(); Container topBar; if(categoryList != null) { Label separator = new Label("", "WhiteSeparatorLine"); separator.setShowEvenIfBlank(true); topBar = BoxLayout.encloseY(filler, categoryList, FlowLayout.encloseCenter(separator), orderLayers); } else { topBar = BoxLayout.encloseY(filler, orderLayers); } topBar.setUIID("TopBar"); add(BorderLayout.NORTH, topBar); add(BorderLayout.CENTER, createContent()); BaseForm
  • 12. List<String> categoryList = createCategoryList(); Container topBar; if(categoryList != null) { Label separator = new Label("", "WhiteSeparatorLine"); separator.setShowEvenIfBlank(true); topBar = BoxLayout.encloseY(filler, categoryList, FlowLayout.encloseCenter(separator), orderLayers); } else { topBar = BoxLayout.encloseY(filler, orderLayers); } topBar.setUIID("TopBar"); add(BorderLayout.NORTH, topBar); add(BorderLayout.CENTER, createContent()); BaseForm
  • 13. List<String> categoryList = createCategoryList(); Container topBar; if(categoryList != null) { Label separator = new Label("", "WhiteSeparatorLine"); separator.setShowEvenIfBlank(true); topBar = BoxLayout.encloseY(filler, categoryList, FlowLayout.encloseCenter(separator), orderLayers); } else { topBar = BoxLayout.encloseY(filler, orderLayers); } topBar.setUIID("TopBar"); add(BorderLayout.NORTH, topBar); add(BorderLayout.CENTER, createContent()); BaseForm