forked from AppFormer/uberfire-extensions
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BPMSPL-159: Guided Decision Table improvements. Add Lienzo based grid…
… to wires-grids.
- Loading branch information
Showing
88 changed files
with
12,752 additions
and
3 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
25 changes: 25 additions & 0 deletions
25
uberfire-wires/uberfire-wires-core/uberfire-wires-core-grids/.gitignore
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,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 |
62 changes: 62 additions & 0 deletions
62
uberfire-wires/uberfire-wires-core/uberfire-wires-core-grids/pom.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,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> |
57 changes: 57 additions & 0 deletions
57
...core-grids/src/main/java/org/uberfire/ext/wires/core/grids/client/model/BaseGridCell.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,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; | ||
} | ||
} |
57 changes: 57 additions & 0 deletions
57
...grids/src/main/java/org/uberfire/ext/wires/core/grids/client/model/BaseGridCellValue.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,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; | ||
} | ||
} |
Oops, something went wrong.