Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Overall code style fixes #15

Merged
merged 8 commits into from May 12, 2013
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
18 changes: 10 additions & 8 deletions jbpm-console-ng-bpm-home/jbpm-console-ng-bpm-home-client/pom.xml
Expand Up @@ -13,7 +13,9 @@
~ 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.
--><project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
-->
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.jbpm</groupId>
Expand All @@ -25,9 +27,9 @@
<packaging>jar</packaging>

<name>jBPM Console NG - BPM Home Client</name>

<dependencies>

<dependency>
<groupId>org.uberfire</groupId>
<artifactId>uberfire-backend-api</artifactId>
Expand All @@ -42,7 +44,7 @@
<groupId>org.uberfire</groupId>
<artifactId>uberfire-workbench</artifactId>
</dependency>

<dependency>
<groupId>javax.inject</groupId>
<artifactId>javax.inject</artifactId>
Expand All @@ -64,9 +66,9 @@
<artifactId>errai-bus</artifactId>
</dependency>

<!-- Errai UI -->
<!-- Errai UI -->


<dependency>
<groupId>org.jboss.errai</groupId>
<artifactId>errai-ui</artifactId>
Expand Down Expand Up @@ -99,5 +101,5 @@
</resource>
</resources>
</build>

</project>
Expand Up @@ -13,6 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package org.jbpm.console.ng.bh.client.editors.home;

import com.google.gwt.core.client.GWT;
Expand All @@ -36,56 +37,51 @@
@WorkbenchScreen(identifier = "Home Screen")
public class HomePresenter {

public interface HomeView
extends
UberView<HomePresenter> {

void displayNotification(String text);

}
@Inject
private PlaceManager placeManager;

private Constants constants = GWT.create(Constants.class);

@Inject
HomeView view;
// Retrieve the actions from a service
Map<String, String> actions = new HashMap<String, String>();

@PostConstruct
public void init() {
}

@WorkbenchPartTitle
public String getTitle() {
return constants.Home();
}

@WorkbenchPartView
public UberView<HomePresenter> getView() {
return view;
}

public void doAction(String action) {
String locatedAction = actions.get(action);
if (locatedAction == null || locatedAction.equals("")) {
view.displayNotification(" Action Not Implemented Yet!");
return;
public interface HomeView extends UberView<HomePresenter> {

void displayNotification(String text);

}
PlaceRequest placeRequestImpl = new DefaultPlaceRequest(locatedAction);
// placeRequestImpl.addParameter("taskId", Long.toString(task.getId()));

placeManager.goTo(placeRequestImpl);
@Inject
private PlaceManager placeManager;

}
private Constants constants = GWT.create(Constants.class);

@OnReveal
public void onReveal() {

@Inject
HomeView view;
// Retrieve the actions from a service
Map<String, String> actions = new HashMap<String, String>();

@PostConstruct
public void init() {
}

}
@WorkbenchPartTitle
public String getTitle() {
return constants.Home();
}

@WorkbenchPartView
public UberView<HomePresenter> getView() {
return view;
}

public void doAction(String action) {
String locatedAction = actions.get(action);
if (locatedAction == null || locatedAction.equals("")) {
view.displayNotification(" Action Not Implemented Yet!");
return;
}
PlaceRequest placeRequestImpl = new DefaultPlaceRequest(locatedAction);
// placeRequestImpl.addParameter("taskId", Long.toString(task.getId()));

placeManager.goTo(placeRequestImpl);
}

@OnReveal
public void onReveal() {

}


}
@@ -1,96 +1,120 @@
<div class="container">
<div class="container">

<div class="home-top">
<div id="myCarousel" class="carousel slide">
<div class="carousel-inner">
<div class="item">
<image src="" data-field="carouselImg0" id="carouselImg0"/>

<div class="carousel-caption">
<h4><label data-field="discoverLabel"></label></h4>
<p><label data-field="discoverTextLabel"></label></p>
<image src="" data-field="carouselImg0" id="carouselImg0" />

<div class="carousel-caption">
<h4>
<label data-field="discoverLabel"></label>
</h4>
<p>
<label data-field="discoverTextLabel"></label>
</p>
</div>

</div>

</div>
<div class="item active">
<image src="" data-field="carouselImg1" id="carouselImg1"/>

<div class="carousel-caption">
<h4><label data-field="designLabel"></label></h4>
<p><label data-field="designTextLabel"></label></p>
<image src="" data-field="carouselImg1" id="carouselImg1" />

<div class="carousel-caption">
<h4>
<label data-field="designLabel"></label>
</h4>
<p>
<label data-field="designTextLabel"></label>
</p>
</div>

</div>

</div>
<div class="item">
<image src="" data-field="carouselImg2" id="carouselImg2"/>

<div class="carousel-caption">
<h4><label data-field="deployLabel"></label></h4>
<p ><label data-field="deployTextLabel"></label></p>
<image src="" data-field="carouselImg2" id="carouselImg2" />

<div class="carousel-caption">
<h4>
<label data-field="deployLabel"></label>
</h4>
<p>
<label data-field="deployTextLabel"></label>
</p>
</div>

</div>

</div>
<div class="item">
<image src="" data-field="carouselImg3" id="carouselImg3"/>

<div class="carousel-caption">
<h4><label data-field="workTasksLabel"></label></h4>
<p><label data-field="workTasksTextLabel"></label></p>
<image src="" data-field="carouselImg3" id="carouselImg3" />

<div class="carousel-caption">
<h4>
<label data-field="workTasksLabel"></label>
</h4>
<p>
<label data-field="workTasksTextLabel"></label>
</p>
</div>

</div>

</div>
<div class="item">
<image src="" data-field="carouselImg4" id="carouselImg4"/>

<div class="carousel-caption">
<h4><label data-field="bamLabel"></label></h4>
<p><label data-field="bamTextLabel"></label></p>
<image src="" data-field="carouselImg4" id="carouselImg4" />

<div class="carousel-caption">
<h4>
<label data-field="bamLabel"></label>
</h4>
<p>
<label data-field="bamTextLabel"></label>
</p>
</div>

</div>

</div>
<div class="item">
<image src="" data-field="carouselImg5" id="carouselImg5"/>
<div class="carousel-caption">
<h4><label data-field="improveLabel"></label></h4>
<p><label data-field="improveTextLabel"></label></p>
</div>
<image src="" data-field="carouselImg5" id="carouselImg5" />
<div class="carousel-caption">
<h4>
<label data-field="improveLabel"></label>
</h4>
<p>
<label data-field="improveTextLabel"></label>
</p>
</div>
</div>
</div>
<a class="left carousel-control" href="#myCarousel" data-slide="prev"><</a>
<a class="right carousel-control" href="#myCarousel" data-slide="next">></a>
<a class="left carousel-control" href="#myCarousel" data-slide="prev"><</a> <a class="right carousel-control"
href="#myCarousel" data-slide="next"
>></a>
</div>
</div>
<div class="container home-texts">
<div class="row">
<div class="span9">
<div class="row">
<div class="span9">
<h2><label data-field="thejBPMCycle"></label></h2>
<h2>
<label data-field="thejBPMCycle"></label>
</h2>
<p></p>
<hr>
<div class="row-fluid">
<!-- <div class="span2">
<!-- <div class="span2">
<h4><a data-field="discoverLabel">Discover:</a></h4>
<p>
<a href="#" class="muted">Knowledge</a><br>

</p>
</div>-->
<div class="span4">
<h4><a data-field="authoringLabel"></a></h4>
<h4>
<a data-field="authoringLabel"></a>
</h4>

<a href="#" data-field="modelProcessAnchor"></a><br>
<!-- <a href="#" class="muted">Rules</a><br>
<!-- <a href="#" class="muted">Rules</a><br>
<a href="#" class="muted">Models</a><br>
<a href="#" class="muted">Forms</a> -->

</div>
<!-- <div class="span2">
<!-- <div class="span2">
<h4><a data-field="deployLabel">Deploy:</a></h4>
<!-- <a href="#" class="muted">Global Settings</a><br>
<a href="#" data-field="deployIdentityAnchor">Users and Groups</a><br>
Expand All @@ -99,18 +123,21 @@ <h4><a data-field="deployLabel">Deploy:</a></h4>

</div>-->
<div class="span4">
<h4><a data-field="workLabel"></a></h4>
<a href="#" data-field="workTaskListAnchor"></a><br>
<a href="#" data-field="workProcessDefinitionsAnchor"></a><br>
<h4>
<a data-field="workLabel"></a>
</h4>
<a href="#" data-field="workTaskListAnchor"></a><br> <a href="#" data-field="workProcessDefinitionsAnchor"></a><br>
<a href="#" data-field="workProcessInstancesAnchor"></a>

</div>
<div class="span4">
<h4><a data-field="monitorLabel"></a></h4>
<h4>
<a data-field="monitorLabel"></a>
</h4>
<a href="#" data-field="monitorBAMAnchor"></a>

</div>
<!-- <div class="span2">
<!-- <div class="span2">
<h4><a data-field="improveLabel">Improve:</a></h4>

<a href="#" class="muted">Plan Next Iteration</a>
Expand All @@ -120,7 +147,7 @@ <h4><a data-field="improveLabel">Improve:</a></h4>
</div>
</div>
</div>
<!-- <div class="span3">
<!-- <div class="span3">
<h2>News</h2>
<small>2/2/13</small> <a href="#">Alpha Version Released</a><br/>

Expand Down