Package org.apache.isis.viewer.wicket.model.models

Examples of org.apache.isis.viewer.wicket.model.models.ValueModel


            add(new Label(ID_CHART, ""));
        }
    }

    private ValueModel asValueModel(WickedChart chartValue) {
        return new ValueModel(getAdapterManager().adapterFor(chartValue));
    }
View Full Code Here


            }
        }
    }

    private ValueModel asValueModel(WickedChart chartValue) {
        return new ValueModel(getAdapterManager().adapterFor(chartValue));
    }
View Full Code Here

        return ApplicationAdvice.appliesIf(model instanceof ValueModel && ((ValueModel)model).getObject() != null);
    }

    @Override
    public Component createComponent(final String id, final IModel<?> model) {
        ValueModel valueModel = (ValueModel) model;
        return new StandaloneValuePanel(id, valueModel);
    }
View Full Code Here

    public ApplicationAdvice appliesTo(final IModel<?> model) {
       
        if (!(model instanceof ValueModel)) {
            return ApplicationAdvice.DOES_NOT_APPLY;
        }
        final ValueModel valueModel = (ValueModel) model;
        if(model.getObject() == null) {
            return ApplicationAdvice.DOES_NOT_APPLY;
        }
       
        final ObjectSpecification chartOptionsSpec = getSpecificationLoader().loadSpecification(WickedChart.class);
        final ObjectSpecification scalarSpec = valueModel.getObject().getSpecification();
       
        return appliesExclusivelyIf(scalarSpec.isOfType(chartOptionsSpec));
    }
View Full Code Here

        buildGui();
    }

    private void buildGui() {

        final ValueModel model = getModel();
        final ObjectAdapter chartAdapter = model.getObject();
        final Object chartObj = chartAdapter.getObject();
        WickedChart chart = (WickedChart) chartObj;
        Options options = chart.getOptions();
       
        addOrReplace(new Chart("chart", options));
View Full Code Here

        return ApplicationAdvice.appliesIf(model instanceof ValueModel && ((ValueModel)model).getObject() != null);
    }

    @Override
    public Component createComponent(final String id, final IModel<?> model) {
        ValueModel valueModel = (ValueModel) model;
        return new StandaloneValuePanel(id, valueModel);
    }
View Full Code Here

            }
        }
    }

    private ValueModel asValueModel(WickedChart chartValue) {
        return new ValueModel(getAdapterManager().adapterFor(chartValue));
    }
View Full Code Here

        buildGui();
    }

    private void buildGui() {

        final ValueModel model = getModel();
        final ObjectAdapter chartAdapter = model.getObject();
        final Object chartObj = chartAdapter.getObject();
        WickedChart chart = (WickedChart) chartObj;
        Options options = chart.getOptions();
       
        addOrReplace(new Chart("chart", options));
View Full Code Here

    public ApplicationAdvice appliesTo(final IModel<?> model) {
       
        if (!(model instanceof ValueModel)) {
            return ApplicationAdvice.DOES_NOT_APPLY;
        }
        final ValueModel valueModel = (ValueModel) model;
        if(model.getObject() == null) {
            return ApplicationAdvice.DOES_NOT_APPLY;
        }
       
        final ObjectSpecification chartOptionsSpec = getSpecificationLoader().loadSpecification(WickedChart.class);
        final ObjectSpecification scalarSpec = valueModel.getObject().getSpecification();
       
        return appliesExclusivelyIf(scalarSpec.isOfType(chartOptionsSpec));
    }
View Full Code Here

TOP

Related Classes of org.apache.isis.viewer.wicket.model.models.ValueModel

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.