Package org.apache.isis.viewer.dnd.view

Examples of org.apache.isis.viewer.dnd.view.UserAction


            final UserActionSet suboptions = options.addNewActionSet("Replace with");
            while (possibleViews.hasMoreElements()) {
                final ViewSpecification specification = (ViewSpecification) possibleViews.nextElement();

                if (specification != getSpecification()) {
                    final UserAction viewAs = new ReplaceViewOption(specification) {
                        @Override
                        protected void replace(final View view, final View withReplacement) {
                            final View parent = wrappedView.getParent();
                            wrappedView =
                                LabelBorder.createFieldLabelBorder(
View Full Code Here


public class MinimizedView extends AbstractView {
    private class CloseWindowControl extends WindowControl {

        public CloseWindowControl(final View target) {
            super(new UserAction() {
                @Override
                public Consent disabled(final View view) {
                    return Allow.DEFAULT;
                }
View Full Code Here

        }
    }

    private class RestoreWindowControl extends WindowControl {
        public RestoreWindowControl(final View target) {
            super(new UserAction() {

                @Override
                public Consent disabled(final View view) {
                    return Allow.DEFAULT;
                }
View Full Code Here

    }

    private static void menuOptions(final List<ObjectAction> actions, final ObjectAdapter target,
        final UserActionSet menuOptionSet) {
        for (int i = 0; i < actions.size(); i++) {
            UserAction option = null;
            if (actions.get(i).getActions().size() > 0) {
                option = menuOptionSet.addNewActionSet(actions.get(i).getName());
                menuOptions(actions.get(i).getActions(), target, (UserActionSet) option);

            } else {
View Full Code Here

TOP

Related Classes of org.apache.isis.viewer.dnd.view.UserAction

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.