-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
…333)
- Loading branch information
1 parent
15dceb9
commit 994f001
Showing
1 changed file
with
59 additions
and
6 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,75 @@ | ||
# Nalu Domino-UI 2 Plugin | ||
|
||
In case your working with widgets based on Domino-UI 2, use the **nalu-domino-ui-2-plugin**. | ||
In case your working with widgets based on Domino-UI v2, the **nalu-domino-ui-2-plugin** will improve your coding experience. | ||
|
||
Ths plugins adds several new classes for controllers and components. At least these classes extends the existing one and add improvements for using Domino-UI v2. | ||
|
||
These improvements are: | ||
|
||
1. because Nalu knows now, that we are using Domino-UI v2, there is no need to set teh widget type inside the generics. By default, it is set to **IsElement<?>**. | ||
|
||
2. All abstract classes, that represents visual components, implements the **DominoCss**- and **ElementsFactory**-interfaces, so that the CSS class definitions and elements can be used directly and without adding the interface to each class. | ||
|
||
|
||
The plugin adds support for having components which use either: | ||
|
||
* `HTMLElement` | ||
* Elemento | ||
* Domino-UI | ||
* Domino-UI (Version 2) | ||
|
||
## Configuration | ||
|
||
To use this plugin in your application, add the following lines to your POM: | ||
|
||
```xml | ||
<dependency> | ||
<groupId>com.github.nalukit</groupId> | ||
<artifactId>nalu-plugin-elemental2</artifactId> | ||
<artifactId>nalu-plugin-domino-v2</artifactId> | ||
<version>LATEST</version> | ||
</dependency> | ||
``` | ||
|
||
**The nalu-plugin-elemental2 can also be used with Domino-ui.** | ||
## Usage | ||
|
||
To get the benefits of the improvements, the new classes and interfaces have to be used. | ||
|
||
Here a list of the classes: | ||
|
||
| Nalu classes usually used | use with Domino V2 | | ||
|---------------------------------------|-----------------------------------------------| | ||
| AbstractBlockComponent | AbstractDominoV2BlockComponent | | ||
| AbstractBlockComponentController | AbstractDominoV2BlockComponentController | | ||
| AbstractComponent | AbstractDominoV2Component | | ||
| AbstractComponentController | AbstractDominoV2ComponentController | | ||
| AbstractCompositeComponent | AbstractDominoV2CompositeComponent | | ||
| AbstractCompositeController | AbstractDominoV2CompositeController | | ||
| AbstractErrorPopUpComponent | AbstractDominoV2ErrorPopUpComponent | | ||
| AbstractErrorPopUpComponentController | AbstractDominoV2ErrorPopUpComponentController | | ||
| AbstractPopUpComponent | AbstractDominoV2PopUpComponent | | ||
| AbstractPopUpComponentController | AbstractDominoV2PopUpComponentController | | ||
| AbstractShell | AbstractDominoV2Shell | | ||
| IsBlockComponent | IsDominoV2BlockComponent | | ||
| IsBlockComponentController | IsDominoV2BlockComponentController | | ||
| IsComponent | IsDominoV2Component | | ||
| IsComposite | IsDominoV2Composite | | ||
| IsCompositeComponent | IsDominoV2CompositeComponent | | ||
| IsController | IsDominoV2Controller | | ||
| IsErrorPopUpComponent | IsDominoV2ErrorPopUpComponent | | ||
| IsPopUpComponent | IsDominoV2PopUpComponent | | ||
| IsPopUpController | IsDominoV2PopUpController | | ||
| IsShell | IsDominoV2Shell | | ||
| IsShowBlockCondition | IsDominoV2ShowBlockCondition | | ||
| IsShowPopUpCondition | IsDominoV2ShowPopUpCondition | | ||
|
||
|
||
Of course, it is possible to use the **nalu-plugin-elemental2** plugin or use the default classes with this plugin. | ||
This will work without any problems, but requires more coding. | ||
|
||
## Notes | ||
|
||
### Incubator | ||
|
||
**This plugin is experimental and might change dur to changes in Domino-UI*.* | ||
|
||
### Compatibility | ||
|
||
This plugin can not be used wit Domino-UI version 1.x.x! | ||
|