-
Notifications
You must be signed in to change notification settings - Fork 188
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'feature/password-reset' of github.com:Evolveum/midpoint…
… into feature/password-reset * 'feature/password-reset' of github.com:Evolveum/midpoint: init hint value fix + reset password title and desciption + styles simulation ui, delta viewer improvements, html/css improvements report-impl: overhaul of TestCsvReportAllAssignments, much faster report TestReport/TestTask: added more static factory methods ExpressionUtil fix for real value of reference ReportUtils: ObjectReferenceType arguments migrated to Referencable fixed security policy merging for hint and focus identification modules simulation ui, delta viewer improvements, new IconComponent and StyledPanel simulation ui, delta viewer improvements Fix TestObject class hierarchy some html/css cleanup in visualization panels
- Loading branch information
Showing
82 changed files
with
1,700 additions
and
1,096 deletions.
There are no files selected for viewing
41 changes: 41 additions & 0 deletions
41
gui/admin-gui/src/main/java/com/evolveum/midpoint/gui/api/component/IconComponent.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,41 @@ | ||
/* | ||
* Copyright (c) 2010-2023 Evolveum and contributors | ||
* | ||
* This work is dual-licensed under the Apache License 2.0 | ||
* and European Union Public License. See LICENSE file for details. | ||
*/ | ||
|
||
package com.evolveum.midpoint.gui.api.component; | ||
|
||
import org.apache.wicket.behavior.AttributeAppender; | ||
import org.apache.wicket.markup.ComponentTag; | ||
import org.apache.wicket.markup.html.WebComponent; | ||
import org.apache.wicket.model.IModel; | ||
import org.jetbrains.annotations.NotNull; | ||
|
||
/** | ||
* Created by Viliam Repan (lazyman). | ||
*/ | ||
public class IconComponent extends WebComponent { | ||
|
||
public IconComponent(@NotNull String id, @NotNull IModel<String> cssClass) { | ||
this(id, cssClass, null); | ||
} | ||
|
||
public IconComponent(@NotNull String id, @NotNull IModel<String> cssClass, IModel<String> title) { | ||
super(id); | ||
|
||
add(AttributeAppender.append("class", cssClass)); | ||
|
||
if (title != null) { | ||
add(AttributeAppender.append("title", title)); | ||
} | ||
} | ||
|
||
@Override | ||
protected void onComponentTag(ComponentTag tag) { | ||
super.onComponentTag(tag); | ||
|
||
checkComponentTag(tag, "i"); | ||
} | ||
} |
36 changes: 36 additions & 0 deletions
36
gui/admin-gui/src/main/java/com/evolveum/midpoint/gui/api/component/StyledPanel.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,36 @@ | ||
/* | ||
* Copyright (c) 2010-2023 Evolveum and contributors | ||
* | ||
* This work is dual-licensed under the Apache License 2.0 | ||
* and European Union Public License. See LICENSE file for details. | ||
*/ | ||
|
||
package com.evolveum.midpoint.gui.api.component; | ||
|
||
import org.apache.wicket.behavior.AttributeAppender; | ||
import org.apache.wicket.model.IModel; | ||
import org.jetbrains.annotations.NotNull; | ||
|
||
/** | ||
* Created by Viliam Repan (lazyman). | ||
*/ | ||
public class StyledPanel<T> extends BasePanel<T> { | ||
|
||
private static final long serialVersionUID = 1L; | ||
|
||
public StyledPanel(@NotNull String id, IModel<T> model, IModel<String> cssClass) { | ||
this(id, model, cssClass, null); | ||
} | ||
|
||
public StyledPanel(@NotNull String id, IModel<T> model, IModel<String> cssClass, IModel<String> title) { | ||
super(id, model); | ||
|
||
if (cssClass != null) { | ||
add(AttributeAppender.append("class", cssClass)); | ||
} | ||
|
||
if (title != null) { | ||
add(AttributeAppender.append("title", title)); | ||
} | ||
} | ||
} |
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
Oops, something went wrong.