-
Notifications
You must be signed in to change notification settings - Fork 754
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#376 [Tabs][Carousel] Panel title should not override child item title
- Loading branch information
1 parent
b3e5791
commit 1ce0c9a
Showing
16 changed files
with
123 additions
and
90 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
58 changes: 58 additions & 0 deletions
58
bundles/core/src/main/java/com/adobe/cq/wcm/core/components/models/ContainerItem.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
~ Copyright 2018 Adobe Systems Incorporated | ||
~ | ||
~ Licensed 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 com.adobe.cq.wcm.core.components.models; | ||
|
||
import javax.annotation.Nullable; | ||
|
||
import org.osgi.annotation.versioning.ConsumerType; | ||
|
||
/** | ||
* Interface for a generic container item, used by the {@link Tabs} and {@link Carousel} models. | ||
* | ||
* @since com.adobe.cq.wcm.core.components.models 13.0.0 | ||
*/ | ||
@ConsumerType | ||
public interface ContainerItem { | ||
|
||
/** | ||
* Name of the resource property that defines the container item title | ||
* | ||
* @since com.adobe.cq.wcm.core.components.models 13.0.0 | ||
*/ | ||
String PN_PANEL_TITLE = "cq:panelTitle"; | ||
|
||
/** | ||
* Returns the title of this {@code ContainerItem}. | ||
* | ||
* @return the title of this container item or {@code null} | ||
* @since com.adobe.cq.wcm.core.components.models 13.0.0 | ||
*/ | ||
@Nullable | ||
default String getTitle() { | ||
throw new UnsupportedOperationException(); | ||
} | ||
|
||
/** | ||
* Returns the name of this {@code ContainerItem}. | ||
* | ||
* @return the container item name or {@code null} | ||
* @since com.adobe.cq.wcm.core.components.models 13.0.0 | ||
*/ | ||
@Nullable | ||
default String getName() { | ||
throw new UnsupportedOperationException(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,13 @@ | ||
{ | ||
"items": [ | ||
{ | ||
"url": null, | ||
"title": "Teaser 1", | ||
"description": "Teaser 1 description", | ||
"lastModified": null, | ||
"path": "/content/tabs/jcr:content/root/responsivegrid/tabs-1/item_1" | ||
"name": "item_1", | ||
"title": "Teaser 1" | ||
}, | ||
{ | ||
"url": null, | ||
"title": "Teaser 2", | ||
"description": "Teaser 2 description", | ||
"lastModified": null, | ||
"path": "/content/tabs/jcr:content/root/responsivegrid/tabs-1/item_2" | ||
"name": "item_2", | ||
"title": "Teaser 2" | ||
} | ||
], | ||
"activeItem":"/content/tabs/jcr:content/root/responsivegrid/tabs-1/item_2" | ||
"activeItem": "item_2" | ||
} |
Oops, something went wrong.