Skip to content

Commit

Permalink
small improvements for tables
Browse files Browse the repository at this point in the history
  • Loading branch information
katkav committed Apr 30, 2019
1 parent 2f5ad79 commit 63bad50
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 191 deletions.
Expand Up @@ -2619,7 +2619,7 @@ public <ID extends ItemDefinition, IW extends ItemWrapper> IW createItemWrapper(

}

public Class<?> getWrapperPanel(QName typeName) {
private Class<?> getWrapperPanel(QName typeName) {
return registry.getPanelClass(typeName);
}

Expand Down
Expand Up @@ -52,8 +52,6 @@ protected String createLabel(PrismPropertyValueWrapper<T> object) {
@Override
protected Panel createValuePanel(String id, IModel<PrismPropertyWrapper<T>> model, PrismPropertyValueWrapper<T> object) {

model.getObject().setColumn(true);

Panel panel;
try {
panel = getPageBase().initItemPanel(id, model.getObject().getTypeName(), model, null);
Expand Down

This file was deleted.

This file was deleted.

Expand Up @@ -32,6 +32,7 @@
import com.evolveum.midpoint.gui.api.component.BasePanel;
import com.evolveum.midpoint.gui.api.factory.GuiComponentFactory;
import com.evolveum.midpoint.gui.api.prism.ItemWrapper;
import com.evolveum.midpoint.gui.impl.component.data.column.AbstractItemWrapperColumnPanel;
import com.evolveum.midpoint.prism.Item;
import com.evolveum.midpoint.prism.ItemDefinition;
import com.evolveum.midpoint.prism.PrismValue;
Expand Down Expand Up @@ -76,7 +77,7 @@ protected void onInitialize() {
private void initLayout() {

Panel headerPanel = createHeaderPanel();
headerPanel.add(new VisibleBehaviour(() -> getModelObject() != null && !getModelObject().isColumn()));
headerPanel.add(new VisibleBehaviour(() -> getParent().findParent(AbstractItemWrapperColumnPanel.class) == null));
add(headerPanel);

ListView<VW> valuesPanel = createValuesPanel();
Expand Down

0 comments on commit 63bad50

Please sign in to comment.