Commit 7b7cd8f8 authored by Dr. Martin Goik's avatar Dr. Martin Goik

Slide overview per section, supplementary abstracts

parent 6a129a98
......@@ -11,6 +11,14 @@
xmlns:db="http://docbook.org/ns/docbook">
<title>Arrays</title>
<info>
<abstract>
<para>Multiple values of common type.</para>
<para>Loop style handling.</para>
</abstract>
</info>
<figure xml:id="sd1_array_fig_arrayMotivate">
<title>Motivating Arrays</title>
......@@ -894,6 +902,16 @@ final String shapes[] = {"Triangle", "Circle"};</programlisting>
xlink:href="https://docs.oracle.com/javase/10/docs/api/java/util/Arrays.html">java.util.Arrays</classname>
helpers</title>
<info>
<abstract>
<para>Sorting and searching arrays.</para>
<para>Fill in values.</para>
<para>Compare array contents.</para>
</abstract>
</info>
<figure xml:id="sd1_array_fig_arraysToStringSort">
<title><classname
xlink:href="https://docs.oracle.com/javase/10/docs/api/java/util/Arrays.html">Arrays</classname>.<methodname
......@@ -1056,18 +1074,27 @@ sort|find(Mandyer): -4</screen>
xlink:href="https://docs.oracle.com/javase/10/docs/api/java/util/Arrays.html">Arrays</classname>.<methodname
xlink:href="https://docs.oracle.com/javase/10/docs/api/java/util/Arrays.html#fill(java.lang.Object%5B%5D,int,int,java.lang.Object)">fill(...)</methodname></title>
<programlisting language="none">final String[] names = {"Eve", "Aaron", "Paul", "Mandy"};
<informaltable border="0">
<colgroup width="48%"/>
System.out.println("toString: " + Arrays.toString(names));
<colgroup width="52%"/>
Arrays.<emphasis role="red">fill(names, "N.N")</emphasis>;
<tr>
<td valign="top"><programlisting language="none">final String[] names =
{"Eve", "Aaron", "Paul", "Mandy"};
System.out.println("toString: " + Arrays.toString(names));</programlisting>
System.out.println("toString: " +
Arrays.toString(names));
<para>Result:</para>
Arrays.<emphasis role="red">fill(names, "N.N")</emphasis>;
System.out.println("toString: " +
Arrays.toString(names));</programlisting></td>
<screen>toString: [Eve, Aaron, Paul, Mandy]
toString: [N.N, N.N, N.N, N.N]</screen>
<td valign="top"><screen>toString: [Eve, Aaron, Paul, Mandy]
toString: [N.N, N.N, N.N, N.N]</screen></td>
</tr>
</informaltable>
</figure>
<figure xml:id="sd1_array_fig_arraysCopyOf">
......@@ -1108,7 +1135,13 @@ l1.equals(l3):false</screen>
</section>
<section xml:id="sd1_array_sect_extend">
<title>Extending an array</title>
<title>Extending arrays</title>
<info>
<abstract>
<para>Dealing with fixed size.</para>
</abstract>
</info>
<figure xml:id="sd1_array_fig_arraysExtendArrayProblem">
<title>Lack of extendability</title>
......@@ -1623,6 +1656,15 @@ final int[] sortedValues = Arrays.copyOf(values, values.length);
<title>Understanding <methodname>static public int main(String[]
args)</methodname></title>
<info>
<abstract>
<para><methodname>main(...)</methodname> and its array
argument.</para>
<para>Implementing parameter passing.</para>
</abstract>
</info>
<figure xml:id="sd1_array_fig_understandingMain">
<title><methodname>public static void main(String[]
args)</methodname></title>
......@@ -1926,6 +1968,12 @@ public class AppTest {
<section xml:id="sd1_array_sect_multidim">
<title>Multi-dimensional arrays</title>
<info>
<abstract>
<para>Multiple dimensions by nesting of arrays.</para>
</abstract>
</info>
<figure xml:id="sd1_array_fig_multidimArray">
<title><methodname>Multidimensional arrays</methodname></title>
......
......@@ -11,6 +11,16 @@
xmlns:db="http://docbook.org/ns/docbook">
<title>Core Classes</title>
<info>
<abstract>
<para>Working with class <classname>String</classname>.</para>
<para>Operator <code language="java">==</code> pitfalls</para>
<para>Using <methodname>equals(...)</methodname>.</para>
</abstract>
</info>
<figure xml:id="sd1_coreclasses_fig_object">
<title>Superclass <classname
xlink:href="https://docs.oracle.com/javase/10/docs/api/java/lang/Object.html">Object</classname></title>
......@@ -139,6 +149,18 @@ equals: true</screen></td>
<section xml:id="sw1_sect_CoreClasses_hashing">
<title>Objects, equals() and hash-values</title>
<info>
<abstract>
<para>Why using hash values?</para>
<para><methodname>hashCode()</methodname> and
<methodname>equals(...)</methodname>.</para>
<para>«Good» <methodname>hashCode()</methodname>
implementations.</para>
</abstract>
</info>
<figure xml:id="sd1_coreclasses_fig_hashPrinciple">
<title>Hashing principle</title>
......
......@@ -244,9 +244,9 @@ if (null == r) {
<abstract>
<para>Significance for larger projects.</para>
<para>Fully qualified vs. <code>import</code>.</para>
<para>Fully qualified vs. «<code>import</code>».</para>
<para><package>java.lang</package> an other exception rules.</para>
<para><package>java.lang</package> and other exceptions.</para>
</abstract>
</info>
......@@ -296,18 +296,16 @@ if (null == r) {
</listitem>
<listitem>
<para>Packages start with reversed <xref linkend="glo_DNS"/> name
e.g.:</para>
<para>Package names must not contain operators:</para>
<para><uri>mi.hdm<emphasis role="red">-</emphasis>stuttgart.de</uri>
--&gt; <package>de.hdm<emphasis
role="red">_</emphasis>stuttgart.mi</package>.</para>
</listitem>
<caution>
<para>Notice the <quote><emphasis role="red">-</emphasis></quote>
to <quote><emphasis role="red">_</emphasis></quote>
translation.</para>
</caution>
<listitem>
<para>Packages should start with reversed <xref linkend="glo_DNS"/>
avoiding clashes.</para>
</listitem>
</itemizedlist>
</figure>
......@@ -863,12 +861,12 @@ System.out.println("Perimeter=" + r.getPerimeter());</programlisting></td>
<info>
<abstract>
<para>Justifying access restrictions: Conserve implementation
flexibility.</para>
<para>Justifying access restrictions.</para>
<para>public, private protected and «package local» rules.</para>
<para><code>public</code>, <code>protected</code> «package local»
and <code>private</code>.</para>
<para>Best practices: Be as restrictive as possible.</para>
<para>Best practices.</para>
</abstract>
</info>
......@@ -936,12 +934,14 @@ System.out.println("Perimeter=" + r.getPerimeter());</programlisting></td>
<calloutlist role="slideExclude">
<callout arearefs="sd1_callout_publicPrivateInterface-1-co"
xml:id="sd1_callout_publicPrivateInterface-1">
<para>Private attributes only accessible inside class.</para>
<para>Private attributes only accessible by methods belonging to
class.</para>
</callout>
<callout arearefs="sd1_callout_publicPrivateInterface-2-co"
xml:id="sd1_callout_publicPrivateInterface-2">
<para>Public interface accessible by arbitrary classes.</para>
<para><code language="java">public</code> items accessible also by
alien classes.</para>
</callout>
</calloutlist>
</figure>
......
This diff is collapsed.
--- positioning.css.orig 2018-11-17 13:48:07.180040443 +0100
+++ positioning.css 2018-11-17 13:49:03.923387718 +0100
--- /usr/share/hdm-docbook-xsl/docbook-xsl-1.79.2/webhelp/template/common/css/positioning.css 2016-12-09 23:39:10.000000000 +0100
+++ positioning.css 2019-05-11 12:28:00.610579125 +0200
@@ -1,3 +1,8 @@
+/*
+ * patched by: /usr/share/hdm-docbook-xsl/CustomLayer/webhelp/positioning.css.patch
......@@ -80,7 +80,7 @@
#content .qandaset>table, #content .qandaset>table td, #content .calloutlist table, #content .calloutlist table td, #content .navfooter table, #content .navfooter table td {
border: 0px solid;
}
@@ -375,3 +394,136 @@
@@ -375,3 +394,142 @@
}
......@@ -214,6 +214,12 @@
+ border-radius: 2ex;
+}
+
+.slideSectionOverview {
+ background-color: #FCFFCD;
+ border-radius: 25px;
+ padding-left: 10px;
+}
+
+a:hover {
+ color: LightSkyBlue;
+}
......@@ -19,6 +19,14 @@
<section xml:id="objectsClassesBasics">
<title>Classes in OO languages</title>
<info>
<abstract>
<para>Some info</para>
<para>More info</para>
</abstract>
</info>
<figure xml:id="classRationale">
<title>What are classes?</title>
......@@ -96,7 +104,7 @@
</qandaset>
<qandaset defaultlabel="qanda" xml:id="qandaHumanRelated2">
<title><xref linkend="glo_Unicode"/> representations</title>
<title> Unicode representations</title>
<qandadiv>
<qandaentry>
......@@ -229,6 +237,7 @@ drwxr-xr-x 100 goik fb1prof 12288 Jul 13 07:43 ..
<section xml:id="MathML">
<title>Mathematical formulas</title>
<info>
<abstract>
<para>Examples displaying both inline and block formulas.</para>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment