Examples of ActionPanel


Examples of com.jcloisterzone.ui.controls.ActionPanel

    }

    @Override
    public void forward() {
        tileRotation = tileRotation.next();
        ActionPanel panel = client.getControlPanel().getActionPanel();
        panel.refreshImageCache();
    }
View Full Code Here

Examples of com.jcloisterzone.ui.controls.ActionPanel

    }

    @Override
    public void backward() {
        tileRotation = tileRotation.prev();
        ActionPanel panel = client.getControlPanel().getActionPanel();
        panel.refreshImageCache();
    }
View Full Code Here

Examples of com.jcloisterzone.ui.controls.ActionPanel

        }
    }

    void clearActions() {
        ControlPanel controlPanel = gamePanel.getControlPanel();
        ActionPanel ap = controlPanel.getActionPanel();
        if (ap.getActions() != null) {
            controlPanel.clearActions();
        }
        ap.setFakeAction(null);
        getJMenuBar().getUndo().setEnabled(false);
    }
View Full Code Here

Examples of de.javakaffee.msm.bench.component.ActionPanel

            private static final long serialVersionUID = 1L;

            @Override
            protected void populateItem( final Item<Contact> item ) {
                final Contact contact = item.getModelObject();
                item.add( new ActionPanel( "actions", item.getModel() ) );
                item.add( new Label( "contactid", String.valueOf( contact.getId() ) ) );
                item.add( new Label( "firstname", contact.getFirstName() ) );
                item.add( new Label( "lastname", contact.getLastName() ) );
                item.add( new Label( "homephone", contact.getHomePhone() ) );
                item.add( new Label( "cellphone", contact.getCellPhone() ) );
View Full Code Here

Examples of org.apache.isis.viewer.wicket.ui.components.actions.ActionPanel

                    if(ajaxDeferredBehaviour != null) {
                        ajaxDeferredBehaviour.initiate(target);
                    } else {
                        ActionPromptHeaderPanel titlePanel = new ActionPromptHeaderPanel(actionPrompt.getTitleId(), actionModel);
                        final ActionPanel actionPanel =
                                (ActionPanel) getComponentFactoryRegistry().createComponent(
                                        ComponentType.ACTION_PROMPT, actionPrompt.getContentId(), actionModel);

                        actionPanel.setShowHeader(false);

                        actionPrompt.setTitle(titlePanel, target);
                        actionPrompt.setPanel(actionPanel, target);
                        actionPanel.setActionPrompt(actionPrompt);
                        actionPrompt.showPrompt(target);

                        focusOnFirstParameter(target, actionPanel);
                    }
                }

                private void focusOnFirstParameter(AjaxRequestTarget target, ActionPanel actionPanel) {

                    // first, force all parameters to build themselves...
                    actionPanel.visitChildren(new IVisitor<Component, Component>() {
                        @Override
                        public void component(Component object, IVisit<Component> visit) {
                            if (object instanceof ScalarPanelAbstract) {
                                ScalarPanelAbstract spa = (ScalarPanelAbstract) object;
                                spa.forceBuildGui();
                                visit.dontGoDeeper();
                            }
                        }
                    });

                    // second, go searching for the first <input> in the action panel.
                    final Component actionPanelFirstParam = actionPanel.visitChildren(new IVisitor<Component, Component>() {
                        @Override
                        public void component(Component object, IVisit<Component> visit) {
                            if (object instanceof FormComponent &&
                                !"scalarIfCompact".equals(object.getId()) &&
                                object.getOutputMarkupId()) {
View Full Code Here

Examples of org.apache.isis.viewer.wicket.ui.components.actions.ActionPanel

                public void onClick(AjaxRequestTarget target) {

                    if(ajaxDeferredBehaviour != null) {
                        ajaxDeferredBehaviour.initiate(target);
                    } else {
                        final ActionPanel actionPanel =
                                (ActionPanel) getComponentFactoryRegistry().createComponent(
                                        ComponentType.ACTION_PROMPT, actionPrompt.getContentId(), actionModel);
                       
                        actionPrompt.setPanel(actionPanel, target);
                        actionPanel.setActionPrompt(actionPrompt);
                        actionPrompt.show(target);

                        focusOnFirstParameter(target, actionPanel);
                    }
                }

                private void focusOnFirstParameter(AjaxRequestTarget target, ActionPanel actionPanel) {

                    // first, force all parameters to build themselves...
                    actionPanel.visitChildren(new IVisitor<Component, Component>() {
                        @Override
                        public void component(Component object, IVisit<Component> visit) {
                            if (object instanceof ScalarPanelAbstract) {
                                ScalarPanelAbstract spa = (ScalarPanelAbstract) object;
                                spa.forceBuildGui();
                                visit.dontGoDeeper();
                            }
                        }
                    });

                    // second, go searching for the first <input> in the action panel.
                    final Component actionPanelFirstParam = actionPanel.visitChildren(new IVisitor<Component, Component>() {
                        @Override
                        public void component(Component object, IVisit<Component> visit) {
                            if (object instanceof FormComponent &&
                                !"scalarIfCompact".equals(object.getId()) &&
                                object.getOutputMarkupId()) {
View Full Code Here

Examples of org.apache.isis.viewer.wicket.ui.components.actions.ActionPanel

                public void onClick(AjaxRequestTarget target) {
                   
                    if(ajaxDeferredBehaviour != null) {
                        ajaxDeferredBehaviour.initiate(target);
                    } else {
                        final ActionPanel actionPromptPanel =
                                (ActionPanel) getComponentFactoryRegistry().createComponent(
                                        ComponentType.ACTION_PROMPT, actionPrompt.getContentId(), actionModel);
                       
                        actionPrompt.setPanel(actionPromptPanel, target);
                        actionPromptPanel.setActionPrompt(actionPrompt);
                        actionPrompt.show(target);
                       
                        target.focusComponent(actionPromptPanel);
                    }
                }
View Full Code Here

Examples of org.apache.isis.viewer.wicket.ui.components.actions.ActionPanel

        actionList.addAll(serviceActionsFor);
    }

    @Override
    public void onClick(final ActionModel actionModel) {
        final ActionPanel actionPanel = new ActionPanel(actionFindUsingComponent.getComponentType().toString(), actionModel);
        actionFindUsingComponent.replaceWith(actionPanel);
    }
View Full Code Here

Examples of org.apache.isis.viewer.wicket.ui.components.actions.ActionPanel

        actionList.addAll(serviceActionsFor);
    }

    @Override
    public void onClick(final ActionModel actionModel) {
        final ActionPanel actionPanel =
            new ActionPanel(actionFindUsingComponent.getComponentType().toString(), actionModel);
        actionFindUsingComponent.replaceWith(actionPanel);
    }
View Full Code Here

Examples of org.wicketstuff.pickwick.frontend.panel.ActionPanel

    }
  }
 
  @Override
  protected Panel getEastPanel(String id) {
    return new ActionPanel(id, uri);
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.