Skip to content

Instantly share code, notes, and snippets.

View kevzlou7979's full-sized avatar

Mark Kevin Baldemor kevzlou7979

  • Manila, Philippines
View GitHub Profile
/*
* #%L
* GwtMaterial
* %%
* Copyright (C) 2015 - 2016 GwtMaterialDesign
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
/*
* #%L
* GwtMaterial
* %%
* Copyright (C) 2015 - 2016 GwtMaterialDesign
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
@kevzlou7979
kevzlou7979 / MaterialDataPager.java
Last active November 19, 2016 00:21
WIP Rework Data Pager
/*
* #%L
* GwtMaterial
* %%
* Copyright (C) 2015 - 2016 GwtMaterialDesign
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
package gwt.material.design.client.ui.pager;
public interface HasPager {
void next();
void previous();
void lastPage();
package gwt.material.design.client.ui.pager;
/*
* #%L
* GwtMaterial
* %%
* Copyright (C) 2015 - 2016 GwtMaterialDesign
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
package gwt.material.design.client.ui.animate;
/*
* #%L
* GwtMaterialDesign
* %%
* Copyright (C) 2015 GwtMaterial
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
// Will setup the LoadResultCallback where the async widget has predefined UX upon loading the request
// and display the callback result returned by the server
LoadResultCallback<Car, MaterialButton> loadResultCallback = new LoadResultCallback<>(asyncButton);
// Let the user decide how they perform client to server mechanism (e.g RPC).
final CarServiceAsync carServiceAsync = GWT.create(FakeCarService.class);
carServiceAsync.getCar(1, new AsyncCallback<Car>() {
@Override
public void onFailure(Throwable throwable) {
loadResultCallback.onFailure(throwable);
package gwt.material.design.client.ui;
import com.google.gwt.user.client.ui.Widget;
import com.google.web.bindery.event.shared.HandlerRegistration;
import gwt.material.design.client.base.MaterialWidget;
import gwt.material.design.client.constants.SideNavType;
import static gwt.material.design.client.js.JsMaterialElement.$;
public class MaterialMiniSideNav extends MaterialSideNav {
package gwt.material.design.test.client.application;
import com.google.gwt.dom.client.Style;
import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.uibinder.client.UiField;
import com.google.gwt.user.client.Timer;
import com.google.gwt.user.client.ui.Widget;
import com.gwtplatform.mvp.client.ViewImpl;
import gwt.material.design.client.ui.MaterialLabel;
import gwt.material.design.client.ui.MaterialProgress;
/*
* #%L
* Errai Prototype
* %%
* Copyright (C) 2015 - 2017 Doltech
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*