Skip to content

Commit

Permalink
Add URL Button in Top row of Grid
Browse files Browse the repository at this point in the history
  • Loading branch information
marcdichmann committed Aug 29, 2018
1 parent 5cc5168 commit 5706a88
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 1 deletion.
1 change: 1 addition & 0 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ public GridLayout buildMainLayout(DataHandler datahandler, VaadinRequest request
w.setSizeFull();
}

mainLayout = new GridLayout(3, 3);
mainLayout = new GridLayout(4, 3);
mainLayout.setResponsive(true);
mainLayout.setWidth(100, Unit.PERCENTAGE);

Expand Down Expand Up @@ -386,10 +386,37 @@ public void buttonClick(ClickEvent event) {
header.setStyleName(ValoTheme.BUTTON_LARGE);
header.addStyleName(ValoTheme.BUTTON_BORDERLESS);

/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//EINGEFÜGT VON MARC


Button infoButton = new Button("URL");
infoButton.setStyleName(ValoTheme.BUTTON_LARGE);
infoButton.addStyleName(ValoTheme.BUTTON_BORDERLESS);
//
// infoButton.addClickListener(new ClickListener() {
// @Override
// public void buttonClick(ClickEvent event) {
// VaadinRequest vaadinRequest = VaadinService.getCurrentRequest();
// HttpServletRequest httpServletRequest = ((VaadinServletRequest)vaadinRequest).getHttpServletRequest();
// String requestUrl = httpServletRequest.getRequestURL().toString();
// LOG.info(requestUrl);
// }
// });


// if()
// Button header2 = new Button(String.format("Current Project"))

SearchEngineView searchBarView = new SearchEngineView(datahandler);



mainLayout.addComponent(header, 1, 0);

mainLayout.addComponent(searchBarView, 2, 0);
// einfügt von marc
mainLayout.addComponent(infoButton, 3, 0);

/*
* VerticalLayout versionLayout = new VerticalLayout(); versionLayout.setWidth(100,
Expand Down

0 comments on commit 5706a88

Please sign in to comment.