1 /*
2 * Tethys: GUI Utilities
3 * Copyright 2012-2026. Tony Washer
4 *
5 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
6 * use this file except in compliance with the License. You may obtain a copy
7 * of the License at
8 *
9 * http://www.apache.org/licenses/LICENSE-2.0
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
13 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
14 * License for the specific language governing permissions and limitations under
15 * the License.
16 */
17 package io.github.tonywasher.joceanus.tethys.api.control;
18
19 import io.github.tonywasher.joceanus.oceanus.base.OceanusException;
20 import io.github.tonywasher.joceanus.oceanus.event.OceanusEventRegistrar.OceanusEventProvider;
21 import io.github.tonywasher.joceanus.oceanus.resource.OceanusResourceId;
22 import io.github.tonywasher.joceanus.tethys.api.base.TethysUIComponent;
23 import io.github.tonywasher.joceanus.tethys.api.base.TethysUIEvent;
24
25 /**
26 * Tree Manager.
27 */
28 public interface TethysUIHTMLManager
29 extends OceanusEventProvider<TethysUIEvent>, TethysUIComponent {
30 /**
31 * StyleSheetId.
32 */
33 interface TethysUIStyleSheetId extends OceanusResourceId {
34 }
35
36 /**
37 * Process selected reference.
38 *
39 * @param pReference the reference
40 */
41 void processReference(String pReference);
42
43 /**
44 * Set the HTML.
45 *
46 * @param pHTMLString the HTML content.
47 * @param pReference the reference
48 */
49 void setHTMLContent(String pHTMLString,
50 String pReference);
51
52 /**
53 * Set the CSS.
54 *
55 * @param pStyleSheet the CSS content.
56 * @throws OceanusException on error
57 */
58 void setCSSContent(TethysUIStyleSheetId pStyleSheet) throws OceanusException;
59
60 /**
61 * Scroll to reference.
62 *
63 * @param pReference the reference
64 */
65 void scrollToReference(String pReference);
66
67 /**
68 * Print the contents.
69 */
70 void printIt();
71
72 /**
73 * SaveToFile.
74 */
75 void saveToFile();
76 }