Skip to content

Commit

Permalink
BPMSPL-159: Guided Decision Table improvements. Add Lienzo based grid…
Browse files Browse the repository at this point in the history
… to wires-grids.
  • Loading branch information
manstis committed Jul 7, 2015
1 parent 35143f4 commit 4c65cfc
Show file tree
Hide file tree
Showing 88 changed files with 12,752 additions and 3 deletions.
13 changes: 13 additions & 0 deletions uberfire-extensions-bom/pom.xml
Expand Up @@ -454,6 +454,19 @@
<classifier>sources</classifier>
</dependency>

<dependency>
<groupId>org.uberfire</groupId>
<artifactId>uberfire-wires-core-grids</artifactId>
<version>${project.version}</version>
</dependency>

<dependency>
<groupId>org.uberfire</groupId>
<artifactId>uberfire-wires-core-grids</artifactId>
<version>${project.version}</version>
<classifier>sources</classifier>
</dependency>

<dependency>
<groupId>org.uberfire</groupId>
<artifactId>uberfire-wires-webapp</artifactId>
Expand Down
1 change: 1 addition & 0 deletions uberfire-wires/uberfire-wires-core/pom.xml
Expand Up @@ -19,6 +19,7 @@
<module>uberfire-wires-core-client</module>
<module>uberfire-wires-core-scratchpad</module>
<module>uberfire-wires-core-trees</module>
<module>uberfire-wires-core-grids</module>
</modules>

</project>
@@ -0,0 +1,25 @@
*.class

# Package Files #
*.jar
*.war
*.ear
/.metadata
/target
/local
/bin

# Eclipse, Netbeans and IntelliJ files
/.*
/**/.*
!.gitignore
/nbproject
*.ipr
*.iws
*.iml

# Repository wide ignore mac DS_Store files
.DS_Store

# Bitronix transactin logs
*.tlog
@@ -0,0 +1,62 @@
<?xml version="1.0" encoding="UTF-8"?>
<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/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.uberfire</groupId>
<artifactId>uberfire-wires-core</artifactId>
<version>0.7.0-SNAPSHOT</version>
</parent>

<artifactId>uberfire-wires-core-grids</artifactId>

<name>Uberfire Wires :: Core Grids</name>
<description>Wires Grids support</description>

<dependencies>

<dependency>
<groupId>org.uberfire</groupId>
<artifactId>uberfire-api</artifactId>
</dependency>

<dependency>
<groupId>org.uberfire</groupId>
<artifactId>uberfire-all</artifactId>
</dependency>

<dependency>
<groupId>org.uberfire</groupId>
<artifactId>uberfire-client-api</artifactId>
</dependency>

<dependency>
<groupId>org.uberfire</groupId>
<artifactId>uberfire-commons</artifactId>
</dependency>

<dependency>
<groupId>org.uberfire</groupId>
<artifactId>uberfire-workbench-client</artifactId>
</dependency>

<dependency>
<groupId>com.github.gwtbootstrap</groupId>
<artifactId>gwt-bootstrap</artifactId>
</dependency>

<dependency>
<groupId>com.ahome-it</groupId>
<artifactId>lienzo-core</artifactId>
</dependency>

<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<scope>test</scope>
</dependency>

</dependencies>

</project>
@@ -0,0 +1,57 @@
/*
* Copyright 2015 JBoss Inc
*
* 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.uberfire.ext.wires.core.grids.client.model;

/**
* Base implementation of a grid cell to avoid boiler-plate for more specific implementations.
* @param <T> The Type of value
*/
public abstract class BaseGridCell<T> implements IGridCell<T> {

protected IGridCellValue<T> value;

public BaseGridCell( final IGridCellValue<T> value ) {
this.value = value;
}

@Override
public IGridCellValue<T> getValue() {
return value;
}

@Override
public boolean equals( Object o ) {
if ( this == o ) {
return true;
}
if ( o == null || getClass() != o.getClass() ) {
return false;
}

BaseGridCell that = (BaseGridCell) o;

if ( value != null ? !value.equals( that.value ) : that.value != null ) {
return false;
}

return true;
}

@Override
public int hashCode() {
return value != null ? value.hashCode() : 0;
}
}
@@ -0,0 +1,57 @@
/*
* Copyright 2015 JBoss Inc
*
* 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.uberfire.ext.wires.core.grids.client.model;

/**
* Base implementation of a grid cell value holder to avoid boiler-plate for more specific implementations.
* @param <T> The Type of the value
*/
public class BaseGridCellValue<T> implements IGridCellValue<T> {

protected T value;

public BaseGridCellValue( final T value ) {
this.value = value;
}

@Override
public T getValue() {
return value;
}

@Override
public boolean equals( Object o ) {
if ( this == o ) {
return true;
}
if ( o == null || getClass() != o.getClass() ) {
return false;
}

BaseGridCellValue that = (BaseGridCellValue) o;

if ( value != null ? !value.equals( that.value ) : that.value != null ) {
return false;
}

return true;
}

@Override
public int hashCode() {
return value != null ? value.hashCode() : 0;
}
}

0 comments on commit 4c65cfc

Please sign in to comment.