Contributors Are Priceless ... U HAVE 2 BE

This commit is contained in:
Carlos Ruiz 2014-06-09 11:57:51 -05:00
parent c6b0e769d0
commit aa6b4a36f9
1 changed files with 57 additions and 73 deletions

View File

@ -24,11 +24,14 @@ import org.adempiere.webui.component.Button;
import org.adempiere.webui.component.Checkbox; import org.adempiere.webui.component.Checkbox;
import org.adempiere.webui.component.ConfirmPanel; import org.adempiere.webui.component.ConfirmPanel;
import org.adempiere.webui.component.FolderBrowser; import org.adempiere.webui.component.FolderBrowser;
import org.adempiere.webui.component.Grid;
import org.adempiere.webui.component.Label; import org.adempiere.webui.component.Label;
import org.adempiere.webui.component.ListHead; import org.adempiere.webui.component.ListHead;
import org.adempiere.webui.component.ListHeader; import org.adempiere.webui.component.ListHeader;
import org.adempiere.webui.component.Listbox; import org.adempiere.webui.component.Listbox;
import org.adempiere.webui.component.ListboxFactory; import org.adempiere.webui.component.ListboxFactory;
import org.adempiere.webui.component.Row;
import org.adempiere.webui.component.Rows;
import org.adempiere.webui.component.SimpleListModel; import org.adempiere.webui.component.SimpleListModel;
import org.adempiere.webui.component.Tab; import org.adempiere.webui.component.Tab;
import org.adempiere.webui.component.Tabbox; import org.adempiere.webui.component.Tabbox;
@ -320,16 +323,18 @@ public class AboutWindow extends Window implements EventListener<Event> {
div.setWidth("100%"); div.setWidth("100%");
div.setHeight("100%"); div.setHeight("100%");
div.setStyle("overflow: auto;"); div.setStyle("overflow: auto;");
Hbox hbox = new Hbox(); Vbox vbox = new Vbox();
LayoutUtils.addSclass("about-credit-panel-logo", hbox); LayoutUtils.addSclass("about-credit-panel-logo", vbox);
hbox.setParent(div); vbox.setParent(div);
Label caption = new Label("Top iDempiere sponsor");
caption.setStyle("font-weight: bold;");
caption.setParent(vbox);
ToolBarButton link = new ToolBarButton(); ToolBarButton link = new ToolBarButton();
link.setHeight("72px");
link.setImage("images/TrekGlobal.jpg"); link.setImage("images/TrekGlobal.jpg");
link.setParent(hbox); link.setParent(vbox);
link.setHref("http://www.trekglobal.com"); link.setHref("http://www.trekglobal.com");
link.setTarget("_blank"); link.setTarget("_blank");
Label label= new Label("Top iDempiere sponsor");
label.setParent(hbox);
Separator separator = new Separator(); Separator separator = new Separator();
separator.setParent(div); separator.setParent(div);
@ -338,47 +343,32 @@ public class AboutWindow extends Window implements EventListener<Event> {
LayoutUtils.addSclass("about-credit-panel-sponsors", panel); LayoutUtils.addSclass("about-credit-panel-sponsors", panel);
panel.setParent(div); panel.setParent(div);
panel.setWidth("100%"); panel.setWidth("100%");
Vbox vbox = new Vbox(); vbox = new Vbox();
LayoutUtils.addSclass("about-credit-panel-sponsors-header", vbox); LayoutUtils.addSclass("about-credit-panel-sponsors-header", vbox);
vbox.setWidth("100%"); vbox.setWidth("100%");
vbox.setParent(panel); vbox.setParent(panel);
Label caption = new Label("Sponsors"); caption = new Label("Sponsors");
caption.setStyle("font-weight: bold;"); caption.setStyle("font-weight: bold;");
caption.setParent(vbox); caption.setParent(vbox);
separator = new Separator();
separator.setBar(true);
separator.setParent(vbox);
Vbox content = new Vbox(); Vbox content = new Vbox();
LayoutUtils.addSclass("about-credit-panel-sponsors-links", content); LayoutUtils.addSclass("about-credit-panel-sponsors-links", content);
content.setWidth("100%"); content.setWidth("100%");
content.setParent(panel); content.setParent(panel);
link = new ToolBarButton(); Grid grid = new Grid();
link.setLabel("GlobalQSS"); grid.setParent(content);
link.setHref("http://www.globalqss.com/");
link.setTarget("_blank");
link.setParent(content);
link = new ToolBarButton(); Rows rows = new Rows();
link.setLabel("Adaxa"); rows.setParent(grid);
link.setHref("http://www.adaxa.com/");
link.setTarget("_blank");
link.setParent(content);
link = new ToolBarButton(); Row row = new Row();
link.setLabel("Posterita"); row.setParent(rows);
link.setHref("http://www.posterita.com/"); row.appendCellChild(addLink("GlobalQSS", "http://www.globalqss.com/"));
link.setTarget("_blank"); row.appendCellChild(addLink("Adaxa", "http://www.adaxa.com/"));
link.setParent(content); row.appendCellChild(addLink("Sysnova", "http://www.sysnova.com/"));
row = new Row();
link = new ToolBarButton(); row.setParent(rows);
link.setLabel("Sysnova"); row.appendCellChild(addLink("See also ...", "http://www.idempiere.org/sponsors"), 3);
link.setHref("http://www.sysnova.com/");
link.setTarget("_blank");
link.setParent(content);
separator = new Separator();
separator.setParent(div);
panel = new Div(); panel = new Div();
LayoutUtils.addSclass("about-credit-panel-contributors", panel); LayoutUtils.addSclass("about-credit-panel-contributors", panel);
@ -391,47 +381,49 @@ public class AboutWindow extends Window implements EventListener<Event> {
caption = new Label("Contributors"); caption = new Label("Contributors");
caption.setStyle("font-weight: bold;"); caption.setStyle("font-weight: bold;");
caption.setParent(vbox); caption.setParent(vbox);
separator = new Separator();
separator.setBar(true);
separator.setParent(vbox);
content = new Vbox(); content = new Vbox();
LayoutUtils.addSclass("about-credit-panel-contributors-links", content); LayoutUtils.addSclass("about-credit-panel-contributors-links", content);
content.setWidth("100%"); content.setWidth("100%");
content.setParent(panel); content.setParent(panel);
link = new ToolBarButton(); grid = new Grid();
link.setLabel("Low Heng Sin"); grid.setParent(content);
link.setHref("http://www.adempiere.com/User:Hengsin");
link.setTarget("_blank");
link.setParent(content);
link = new ToolBarButton(); rows = new Rows();
link.setLabel("Ashley G Ramdass"); rows.setParent(grid);
link.setHref("http://www.adempiere.com/User:Agramdass");
link.setTarget("_blank");
link.setParent(content);
link = new ToolBarButton(); row = new Row();
link.setLabel("Carlos Ruiz"); row.setParent(rows);
link.setHref("http://www.adempiere.com/User:CarlosRuiz"); row.appendCellChild(addLink("Low Heng Sin", "http://www.adempiere.com/User:Hengsin"));
link.setTarget("_blank"); row.appendCellChild(addLink("Carlos Ruiz", "http://wiki.idempiere.org/en/User:CarlosRuiz"));
link.setParent(content); row = new Row();
row.setParent(rows);
link = new ToolBarButton(); row.appendCellChild(addLink("Hiep Lq", "http://wiki.idempiere.org/en/User:Hieplq"));
link.setLabel("Teo Sarca"); row.appendCellChild(addLink("Nicolas Micoud", "http://wiki.idempiere.org/en/User:Nmicoud"));
link.setHref("http://www.adempiere.com/User:Teo_sarca"); row = new Row();
link.setTarget("_blank"); row.setParent(rows);
link.setParent(content); row.appendCellChild(addLink("Jan Thielemann", "http://wiki.idempiere.org/en/User:Jan.thielemann"));
row.appendCellChild(addLink("Redhuan D. Oon", "http://www.red1.org"));
link = new ToolBarButton(); row = new Row();
link.setLabel("Trifon Trifonov"); row.setParent(rows);
link.setHref("http://www.adempiere.com/User:Trifonnt"); row.appendCellChild(addLink("Thomas Bayen", "http://wiki.idempiere.org/en/User:TBayen"));
link.setTarget("_blank"); row.appendCellChild(addLink("Ashley G Ramdass", "http://www.adempiere.com/User:Agramdass"));
link.setParent(content); row = new Row();
row.setParent(rows);
row.appendCellChild(addLink("Teo Sarca", "http://www.adempiere.com/User:Teo_sarca"));
row.appendCellChild(addLink("Trifon Trifonov", "http://www.adempiere.com/User:Trifonnt"));
return tabPanel; return tabPanel;
} }
private ToolBarButton addLink(String label, String href) {
ToolBarButton link = new ToolBarButton();
link.setLabel(label);
link.setHref(href);
link.setTarget("_blank");
return link;
}
protected Tabpanel createAbout() { protected Tabpanel createAbout() {
Tabpanel tabPanel = new Tabpanel(); Tabpanel tabPanel = new Tabpanel();
@ -475,14 +467,6 @@ public class AboutWindow extends Window implements EventListener<Event> {
separator.setParent(vbox); separator.setParent(vbox);
ToolBarButton link = new ToolBarButton(); ToolBarButton link = new ToolBarButton();
link.setLabel("Project Site"); link.setLabel("Project Site");
link.setHref("http://www.idempiere.com");
link.setTarget("_blank");
link.setParent(vbox);
separator = new Separator();
separator.setParent(vbox);
link = new ToolBarButton();
link.setLabel("Community Site");
link.setHref("http://www.idempiere.org"); link.setHref("http://www.idempiere.org");
link.setTarget("_blank"); link.setTarget("_blank");
link.setParent(vbox); link.setParent(vbox);