Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
706 additions
and
161 deletions.
There are no files selected for viewing
36 changes: 0 additions & 36 deletions
36
gui/admin-gui/src/main/java/com/evolveum/midpoint/web/component/box/InfoBox.html
This file was deleted.
Oops, something went wrong.
66 changes: 0 additions & 66 deletions
66
gui/admin-gui/src/main/java/com/evolveum/midpoint/web/component/box/InfoBox.java
This file was deleted.
Oops, something went wrong.
59 changes: 59 additions & 0 deletions
59
...dmin-gui/src/main/java/com/evolveum/midpoint/web/component/data/column/ColumnTypeDto.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,59 @@ | ||
package com.evolveum.midpoint.web.component.data.column; | ||
|
||
import java.io.Serializable; | ||
|
||
public class ColumnTypeDto<T> implements Serializable{ | ||
|
||
private static final long serialVersionUID = 1L; | ||
|
||
private String columnName; | ||
private String columnValue; | ||
private String sortableColumn; | ||
|
||
private boolean multivalue = false; | ||
|
||
public ColumnTypeDto(String columnName, String columnValue, String sortableColumn) { | ||
super(); | ||
this.columnName = columnName; | ||
this.columnValue = columnValue; | ||
this.sortableColumn = sortableColumn; | ||
} | ||
|
||
public ColumnTypeDto(String columnName, String columnValue, String sortableColumn, boolean multivalue) { | ||
super(); | ||
this.columnName = columnName; | ||
this.columnValue = columnValue; | ||
this.sortableColumn = sortableColumn; | ||
this.multivalue = multivalue; | ||
} | ||
|
||
public String getColumnName() { | ||
return columnName; | ||
} | ||
public void setColumnName(String columnName) { | ||
this.columnName = columnName; | ||
} | ||
public String getColumnValue() { | ||
return columnValue; | ||
} | ||
public void setColumnValue(String columnValue) { | ||
this.columnValue = columnValue; | ||
} | ||
public String getSortableColumn() { | ||
return sortableColumn; | ||
} | ||
public void setSortableColumn(String sortableColumn) { | ||
this.sortableColumn = sortableColumn; | ||
} | ||
|
||
public boolean isMultivalue() { | ||
return multivalue; | ||
} | ||
|
||
public void setMultivalue(boolean multivalue) { | ||
this.multivalue = multivalue; | ||
} | ||
|
||
|
||
|
||
} |
37 changes: 37 additions & 0 deletions
37
gui/admin-gui/src/main/java/com/evolveum/midpoint/web/component/data/column/ColumnUtils.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,37 @@ | ||
package com.evolveum.midpoint.web.component.data.column; | ||
|
||
import java.util.ArrayList; | ||
import java.util.List; | ||
|
||
import org.apache.wicket.extensions.markup.html.repeater.data.table.IColumn; | ||
import org.apache.wicket.extensions.markup.html.repeater.data.table.PropertyColumn; | ||
import org.apache.wicket.model.Model; | ||
import org.apache.wicket.model.StringResourceModel; | ||
|
||
import com.evolveum.midpoint.web.page.admin.resources.dto.ResourceConfigurationDto; | ||
|
||
public class ColumnUtils { | ||
|
||
public static List<IColumn> createColumns(List<ColumnTypeDto> columns){ | ||
List<IColumn> tableColumns = new ArrayList<IColumn>(); | ||
for (ColumnTypeDto column : columns) { | ||
// if (column.isMultivalue()) { | ||
// PropertyColumn tableColumn = new PropertyColumn(displayModel, | ||
// propertyExpression) | ||
// } else { | ||
PropertyColumn tableColumn = new PropertyColumn(createStringResource(column.getColumnName()), | ||
column.getSortableColumn(), column.getColumnValue()); | ||
tableColumns.add(tableColumn); | ||
// } | ||
} | ||
return tableColumns; | ||
} | ||
|
||
public static StringResourceModel createStringResource(String resourceKey, Object... objects) { | ||
return new StringResourceModel(resourceKey).setModel(new Model<String>()) | ||
.setDefaultValue(resourceKey) | ||
.setParameters(objects); | ||
|
||
//return StringResourceModelMigration.of(resourceKey, this, new Model<String>(), resourceKey, objects); | ||
} | ||
} |
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.