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 2014/03/03 12:48:52 UTC

svn commit: r1573530 - in /isis/site/trunk/content: ./ components/viewers/wicket/ components/viewers/wicket/images/bookmarks/

Author: danhaywood
Date: Mon Mar  3 11:48:51 2014
New Revision: 1573530

URL: http://svn.apache.org/r1573530
Log:
adding bookmark docs

Added:
    isis/site/trunk/content/components/viewers/wicket/images/bookmarks/
    isis/site/trunk/content/components/viewers/wicket/images/bookmarks/bookmarked-pages-panel-940.png   (with props)
    isis/site/trunk/content/components/viewers/wicket/images/bookmarks/bookmarked-pages-panel-estatio-940.png   (with props)
    isis/site/trunk/content/components/viewers/wicket/images/bookmarks/bookmarked-pages-panel-estatio.png   (with props)
    isis/site/trunk/content/components/viewers/wicket/images/bookmarks/bookmarked-pages-panel.png   (with props)
Modified:
    isis/site/trunk/content/components/viewers/wicket/bookmarks.md
    isis/site/trunk/content/documentation.md

Modified: isis/site/trunk/content/components/viewers/wicket/bookmarks.md
URL: http://svn.apache.org/viewvc/isis/site/trunk/content/components/viewers/wicket/bookmarks.md?rev=1573530&r1=1573529&r2=1573530&view=diff
==============================================================================
--- isis/site/trunk/content/components/viewers/wicket/bookmarks.md (original)
+++ isis/site/trunk/content/components/viewers/wicket/bookmarks.md Mon Mar  3 11:48:51 2014
@@ -1,10 +1,57 @@
 Title: Bookmarks
 
-> this is a stub page
+The Wicket viewer supports the bookmarking of both domain objects and [safe](../../../reference/recognized-annotations/ActionSemantics.html) (query-only) actions.  
+
+Domain objects, if bookmarkable, can be nested.
 
 ##Screenshots
 
+#### Simple List
+
+The following screenshot, taken from example todo app (generated by the [quickstart archetype](../../../intro/getting-started/quickstart-archetype.html) shows how the bookmarks are listed in a sliding panel.
+
+<a href="images/bookmarks/bookmarked-pages-panel.png"><img src="images/bookmarks/bookmarked-pages-panel-940.png"/></a>
+
+Note how the list contains both domain objects and an action ("not yet complete").
+
+#### Nested bookmarks
 
+The following screenshot, taken from the [Estatio](https://github.com/estatio/estatio) application, shows a variety of different bookmarked objects.  
+
+<a href="images/bookmarks/bookmarked-pages-panel-estatio.png"><img src="images/bookmarks/bookmarked-pages-panel-estatio-940.png"/></a>
+
+Some - like Property, Lease and Party - are root nodes.  However, LeaseItem is bookmarkable as a child of Lease, and LeaseTerm is bookmarkable only as a child of LeaseItem.  This parent/child relationship is reflected in the layout.
 
 ##Domain Code
 
+To indicate a class is bookmarkable, use the [@Bookmarkable](../../../reference/recognized-annotations/Bookmarkable.html] annotation:
+
+    @Bookmarkable
+    public class Lease { ... }
+
+To indicate a class is bookmarkable but only as a child of some parent bookmark, specify the bookmark policy:
+
+    @Bookmarkable(BookmarkPolicy.AS_CHILD)
+    public class LeaseItem { ... }
+    
+To indicate that a safe (query only) action is bookmarkable, again use the `@Bookmarkable` annotation:
+
+    public class ToDoItem ... {
+        ...
+        @Bookmarkable
+        @ActionSemantics(Of.SAFE)
+        public List<ToDoItem> notYetComplete() { ... }
+        ...
+    }
+
+##User Experience
+
+The sliding panel appears whenever the mouse pointer hovers over the thin blue tab (to the left of the top header region).
+
+Alternatively, `alt+[` will toggle open/close the panel; it can also be closed using `Esc` key.
+
+##Configuration
+
+By default, the bookmarked pages panel will show a maximum of 15 'root' pages.  This can be overridden using a property (in `isis.properties`), for example:
+
+    isis.viewer.wicket.bookmarkedPages.maxSize=20

Added: isis/site/trunk/content/components/viewers/wicket/images/bookmarks/bookmarked-pages-panel-940.png
URL: http://svn.apache.org/viewvc/isis/site/trunk/content/components/viewers/wicket/images/bookmarks/bookmarked-pages-panel-940.png?rev=1573530&view=auto
==============================================================================
Binary file - no diff available.

Propchange: isis/site/trunk/content/components/viewers/wicket/images/bookmarks/bookmarked-pages-panel-940.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: isis/site/trunk/content/components/viewers/wicket/images/bookmarks/bookmarked-pages-panel-estatio-940.png
URL: http://svn.apache.org/viewvc/isis/site/trunk/content/components/viewers/wicket/images/bookmarks/bookmarked-pages-panel-estatio-940.png?rev=1573530&view=auto
==============================================================================
Binary file - no diff available.

Propchange: isis/site/trunk/content/components/viewers/wicket/images/bookmarks/bookmarked-pages-panel-estatio-940.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: isis/site/trunk/content/components/viewers/wicket/images/bookmarks/bookmarked-pages-panel-estatio.png
URL: http://svn.apache.org/viewvc/isis/site/trunk/content/components/viewers/wicket/images/bookmarks/bookmarked-pages-panel-estatio.png?rev=1573530&view=auto
==============================================================================
Binary file - no diff available.

Propchange: isis/site/trunk/content/components/viewers/wicket/images/bookmarks/bookmarked-pages-panel-estatio.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: isis/site/trunk/content/components/viewers/wicket/images/bookmarks/bookmarked-pages-panel.png
URL: http://svn.apache.org/viewvc/isis/site/trunk/content/components/viewers/wicket/images/bookmarks/bookmarked-pages-panel.png?rev=1573530&view=auto
==============================================================================
Binary file - no diff available.

Propchange: isis/site/trunk/content/components/viewers/wicket/images/bookmarks/bookmarked-pages-panel.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Modified: isis/site/trunk/content/documentation.md
URL: http://svn.apache.org/viewvc/isis/site/trunk/content/documentation.md?rev=1573530&r1=1573529&r2=1573530&view=diff
==============================================================================
--- isis/site/trunk/content/documentation.md (original)
+++ isis/site/trunk/content/documentation.md Mon Mar  3 11:48:51 2014
@@ -413,8 +413,8 @@ For both:
 #### <a name="wicket-viewer-features">Features</a>
 
 * [File upload/download](components/viewers/wicket/file-upload-download.html)
-* [Bookmarks](components/viewers/wicket/bookmarks.html) (stub)
-* [Recent pages](components/viewers/wicket/recent-pages.html) (stub)
+* [Bookmarked pages (sliding panel)](components/viewers/wicket/bookmarks.html)
+* [Recent pages (drop down)](components/viewers/wicket/recent-pages.html) (stub)
 * [Hints and copy URL](components/viewers/wicket/hints-and-copy-url.html) (stub)
 
 }
@@ -425,6 +425,8 @@ For both:
 
 * [Titles in tables](components/viewers/wicket/titles-in-tables.html)
 * [Suppressing 'remember me'](components/viewers/wicket/suppressing-remember-me.html)
+* [Number of bookmarked pages](components/viewers/wicket/bookmarks.html)
+* [Stripped Wicket tags](components/viewers/wicket/stripped-wicket-tags.html) (stub)
 * [The About page](components/viewers/wicket/configuring-the-about-page.html)
 
 #### <a name="wicket-viewer-extensions">Extensions</a>