Package org.apache.isis.viewer.wicket.ui.components.scalars

Examples of org.apache.isis.viewer.wicket.ui.components.scalars.ScalarPanelAbstract


        final ScalarModel scalarModel = model.getPropertyModel(pm);

        final ComponentFactory componentFactory = findComponentFactory(ComponentType.SCALAR_NAME_AND_VALUE, scalarModel);
        final Component component = componentFactory.createComponent(id, scalarModel);
        if (component instanceof ScalarPanelAbstract) {
            final ScalarPanelAbstract scalarPanel = (ScalarPanelAbstract) component;
            scalarPanel.setFormat(Format.COMPACT);
            scalarModel.toViewMode();
        }
        return component;
    }
View Full Code Here


        final ComponentFactory componentFactory =
            findComponentFactory(ComponentType.SCALAR_NAME_AND_VALUE, scalarModel);
        final Component component = componentFactory.createComponent(id, scalarModel);
        if (component instanceof ScalarPanelAbstract) {
            final ScalarPanelAbstract scalarPanel = (ScalarPanelAbstract) component;
            scalarPanel.setFormat(Format.COMPACT);
            scalarModel.toViewMode();
        }
        return component;
    }
View Full Code Here

                rv.add(container);

                final ScalarModel argumentModel = actionModel.getArgumentModel(apm);
                argumentModel.setActionArgsHint(actionModel.getArgumentsAsArray());
                final Component component = getComponentFactoryRegistry().addOrReplaceComponent(container, ComponentType.SCALAR_NAME_AND_VALUE, argumentModel);
                final ScalarPanelAbstract paramPanel = component instanceof ScalarPanelAbstract ? (ScalarPanelAbstract) component : null;
                paramPanels.add(paramPanel);
                if(paramPanel != null) {
                    paramPanel.setOutputMarkupId(true);
                    paramPanel.notifyOnChange(this);
                }
               
                if(!renderedFirstField) {
                    component.add(new CssClassAppender("first-field"));
                    renderedFirstField = true;
View Full Code Here

           
            try {
                final ObjectAction action = actionModel.getActionMemento().getAction();
                final int numParams = action.getParameterCount();
                for (int i = 0; i < numParams; i++) {
                    final ScalarPanelAbstract paramPanel = paramPanels.get(i);
                    if(paramPanel != null) {
                        // this could throw a ConcurrencyException as we may have to reload the
                        // object adapter of the action in order to compute the choices
                        // (and that object adapter might have changed)
                        if(paramPanel.updateChoices(pendingArguments)) {
                            target.add(paramPanel);
                        }
                    }
                }
            } catch(ConcurrencyException ex) {
View Full Code Here

TOP

Related Classes of org.apache.isis.viewer.wicket.ui.components.scalars.ScalarPanelAbstract

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.