You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@isis.apache.org by da...@apache.org on 2016/03/03 13:37:08 UTC
isis git commit: ISIS-993: removing the ability to view the Grid as a
view model (in its own right);
no real use case for this functionality at the moment.
Repository: isis
Updated Branches:
refs/heads/ISIS-993 393312e4a -> 2c960ca9e
ISIS-993: removing the ability to view the Grid as a view model (in its own right); no real use case for this functionality at the moment.
Project: http://git-wip-us.apache.org/repos/asf/isis/repo
Commit: http://git-wip-us.apache.org/repos/asf/isis/commit/2c960ca9
Tree: http://git-wip-us.apache.org/repos/asf/isis/tree/2c960ca9
Diff: http://git-wip-us.apache.org/repos/asf/isis/diff/2c960ca9
Branch: refs/heads/ISIS-993
Commit: 2c960ca9eb20756a92d6fe9f77b4c22dc507c267
Parents: 393312e
Author: Dan Haywood <da...@haywood-associates.co.uk>
Authored: Thu Mar 3 12:36:49 2016 +0000
Committer: Dan Haywood <da...@haywood-associates.co.uk>
Committed: Thu Mar 3 12:36:49 2016 +0000
----------------------------------------------------------------------
.../services/layout/Object_viewLayout.java | 71 --------------------
1 file changed, 71 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/isis/blob/2c960ca9/core/applib/src/main/java/org/apache/isis/applib/services/layout/Object_viewLayout.java
----------------------------------------------------------------------
diff --git a/core/applib/src/main/java/org/apache/isis/applib/services/layout/Object_viewLayout.java b/core/applib/src/main/java/org/apache/isis/applib/services/layout/Object_viewLayout.java
deleted file mode 100644
index 249b95a..0000000
--- a/core/applib/src/main/java/org/apache/isis/applib/services/layout/Object_viewLayout.java
+++ /dev/null
@@ -1,71 +0,0 @@
-/**
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.apache.isis.applib.services.layout;
-
-import javax.inject.Inject;
-
-import org.apache.isis.applib.annotation.Action;
-import org.apache.isis.applib.annotation.ActionLayout;
-import org.apache.isis.applib.annotation.MemberOrder;
-import org.apache.isis.applib.annotation.Mixin;
-import org.apache.isis.applib.annotation.Programmatic;
-import org.apache.isis.applib.annotation.RestrictTo;
-import org.apache.isis.applib.annotation.SemanticsOf;
-import org.apache.isis.applib.layout.component.Grid;
-
-@Mixin
-public class Object_viewLayout {
-
- private final Object object;
-
- public Object_viewLayout(final Object object) {
- this.object = object;
- }
-
- public static class ActionDomainEvent extends org.apache.isis.applib.IsisApplibModule.ActionDomainEvent<Object_viewLayout> {}
-
-
-
- @Programmatic // TODO ... excluded for now (getting an Isis framework exception in the view model rendering).
- @Action(
- domainEvent = ActionDomainEvent.class,
- semantics = SemanticsOf.SAFE,
- restrictTo = RestrictTo.PROTOTYPING
- )
- @ActionLayout(
- cssClassFa = "fa-th"
- )
- @MemberOrder(sequence = "550.2")
- public Grid $$() {
- return getGrid(GridService.Style.NORMALIZED);
- }
-
- @Programmatic // TODO ... excluded for now (getting an Isis framework exception in the view model rendering).
- public boolean hide$$() {
- return getGrid(GridService.Style.NORMALIZED) == null;
- }
-
- protected Grid getGrid(final GridService.Style style) {
- return gridService.toGrid(object, style);
- }
-
-
-
- @Inject
- GridService gridService;
-
-}