Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
For #210 - Started implementing reports
- Loading branch information
Showing
8 changed files
with
118 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
40 changes: 40 additions & 0 deletions
40
src/main/java/org/traccar/web/client/view/ReportsDialog.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
/* | ||
* Copyright 2015 Vitaly Litvak (vitavaque@gmail.com) | ||
* | ||
* 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 | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
package org.traccar.web.client.view; | ||
|
||
import com.google.gwt.core.client.GWT; | ||
import com.google.gwt.uibinder.client.UiBinder; | ||
import com.google.gwt.uibinder.client.UiField; | ||
import com.google.gwt.user.client.ui.Widget; | ||
import com.sencha.gxt.widget.core.client.Window; | ||
|
||
public class ReportsDialog { | ||
private static ReportsDialogDialogUiBinder uiBinder = GWT.create(ReportsDialogDialogUiBinder.class); | ||
|
||
interface ReportsDialogDialogUiBinder extends UiBinder<Widget, ReportsDialog> { | ||
} | ||
|
||
@UiField | ||
Window window; | ||
|
||
public ReportsDialog() { | ||
uiBinder.createAndBindUi(this); | ||
} | ||
|
||
public void show() { | ||
window.show(); | ||
} | ||
} |
57 changes: 57 additions & 0 deletions
57
src/main/java/org/traccar/web/client/view/ReportsDialog.ui.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
<!DOCTYPE ui:UiBinder SYSTEM "http://dl.google.com/gwt/DTD/xhtml.ent"> | ||
<ui:UiBinder | ||
xmlns:ui="urn:ui:com.google.gwt.uibinder" | ||
xmlns:gxt="urn:import:com.sencha.gxt.widget.core.client" | ||
xmlns:container="urn:import:com.sencha.gxt.widget.core.client.container" | ||
xmlns:toolbar="urn:import:com.sencha.gxt.widget.core.client.toolbar" | ||
xmlns:grid="urn:import:com.sencha.gxt.widget.core.client.grid" | ||
xmlns:button="urn:import:com.sencha.gxt.widget.core.client.button"> | ||
|
||
<!-- ui:with type="com.sencha.gxt.widget.core.client.container.VerticalLayoutContainer.VerticalLayoutData" field="toolBarRowData"> | ||
<ui:attributes width="1" height="-1" /> | ||
</ui:with --> | ||
|
||
<ui:with type="com.sencha.gxt.widget.core.client.container.VerticalLayoutContainer.VerticalLayoutData" field="verticalLayoutData"> | ||
<ui:attributes width="1" height="1" /> | ||
</ui:with> | ||
|
||
<!-- ui:with type="com.sencha.gxt.widget.core.client.container.HorizontalLayoutContainer.HorizontalLayoutData" field="horizontalLayoutData"> | ||
<ui:attributes width="-1" height="1" /> | ||
</ui:with --> | ||
|
||
<!-- ui:with type="com.sencha.gxt.data.shared.ListStore" field="sensorStore" /> | ||
<ui:with type="com.sencha.gxt.widget.core.client.grid.ColumnModel" field="columnModel" /> | ||
<ui:with type="com.sencha.gxt.widget.core.client.grid.GridView" field="view"> | ||
<ui:attributes stripeRows="true" autoFill="true" /> | ||
</ui:with --> | ||
|
||
<ui:with field='i18n' type='org.traccar.web.client.i18n.Messages' /> | ||
|
||
<gxt:Window ui:field="window" pixelSize="330, 270" modal="true" headingText="{i18n.reports}"> | ||
<container:VerticalLayoutContainer> | ||
<!-- container:child layoutData="{verticalLayoutData}"> | ||
<gxt:ContentPanel ui:field="contentPanel" headerVisible="false"> | ||
<container:VerticalLayoutContainer> | ||
<container:child layoutData="{toolBarRowData}"> | ||
<toolbar:ToolBar ui:field="addRemoveToolbar"> | ||
<button:TextButton ui:field="addButton" text="{i18n.add}" /> | ||
<button:TextButton ui:field="removeButton" text="{i18n.remove}" enabled="false" /> | ||
</toolbar:ToolBar> | ||
</container:child> | ||
<container:child layoutData="{verticalLayoutData}"> | ||
<grid:Grid ui:field="grid" store="{sensorStore}" cm="{columnModel}" view="{view}" /> | ||
</container:child> | ||
</container:VerticalLayoutContainer> | ||
</gxt:ContentPanel> | ||
</container:child --> | ||
</container:VerticalLayoutContainer> | ||
<!-- gxt:button> | ||
<button:TextButton ui:field="saveButton" text="{i18n.save}" /> | ||
</gxt:button> | ||
<gxt:button> | ||
<button:TextButton ui:field="cancelButton" text="{i18n.cancel}" /> | ||
</gxt:button --> | ||
</gxt:Window> | ||
|
||
</ui:UiBinder> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8d7b2f5
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there any special reason why this branch starts from neptune branch?
8d7b2f5
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I want to release both neptune theme and reports at the same time.
8d7b2f5
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does it mean that neptune theme will be default for the future releases?
8d7b2f5
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, exactly.