This sample code has been developed by Streamezzo.
Its purpose is to illustrate the modal management of the user interface / interactions.

<%@page import="com.streamezzo.odp.adaptation.skin.Skin" %>
<%@page import="com.streamezzo.odp.adaptation.layout.Container" %>
<%@page import="com.streamezzo.odp.connector.StzConnectorsManager" %>
<%@page import="com.streamezzo.odp.connector.AdaptationTransaction" %>
<%@page import="com.streamezzo.odp.connector.AdaptationConnector" %>
<%@page import="com.streamezzo.odp.utils.ShapeUtils" %>
"
colorBits="8" lengthBits="16" resolution="2" idBits="16" scaleBits="15"
encodingType="0"/>
<%
AdaptationConnector adaptationConnector = StzConnectorsManager.getAdaptationConnector(stzRequest.getService(), 0);
AdaptationTransaction tx = null;
try {
tx = (AdaptationTransaction) adaptationConnector.beginTransaction(stzRequest, "standard", "standard");
Container rootContainer = tx.getRootContainer("main");
Skin skin = tx.getSkin();
%>
<%
Container headerContainer = rootContainer.getChildByIdRecurs("header");
%>
"
linecolor="<%= skin.getColor("headerBackground").getColor() %>"/>
"
style="BOLD" horizAlign="CENTERED" vertAlign="MIDDLE"/>
<%
Container mainContainer = rootContainer.getChildByIdRecurs("main");
%>
"
linecolor="<%= skin.getColor("mainBackground").getColor() %>"/>
"
style="BOLD" horizAlign="CENTERED" vertAlign="MIDDLE"/>
<%
Container leftSoftkeyContainer = rootContainer.getChildByIdRecurs("leftSoftkey");
%>
"
linecolor="<%= skin.getColor("leftSoftkeyBackground").getColor() %>"/>
"
style="BOLD" horizAlign="CENTERED" vertAlign="MIDDLE"/>
"/>
"/>
<%
Container rightSoftkeyContainer = rootContainer.getChildByIdRecurs("rightSoftkey");
%>
"
linecolor="<%= skin.getColor("rightSoftkeyBackground").getColor() %>"/>
"
style="BOLD" horizAlign="CENTERED" vertAlign="MIDDLE"/>
"/>
<%
Container optionsLevel1RootContainer = tx.getRootContainer("options_level1");
Container optionsLevel1Container = optionsLevel1RootContainer.getChildByIdRecurs("options_level1");
%>
"
linecolor="<%= skin.getColor("optionsLevel1Background").getColor() %>"/>
"
style="BOLD" horizAlign="CENTERED" vertAlign="MIDDLE"/>
"/>
<%
Container optionsLevel2RootContainer = tx.getRootContainer("options_level2");
Container optionsLevel2Container = optionsLevel2RootContainer.getChildByIdRecurs("options_level2");
%>
"
linecolor="<%= skin.getColor("optionsLevel2Background").getColor() %>"/>
"
style="BOLD" horizAlign="CENTERED" vertAlign="MIDDLE"/>
"/>
<%
Container popupRootContainer = tx.getRootContainer("popup");
Container popupContainer = popupRootContainer.getChildByIdRecurs("popup");
%>
"
linecolor="<%= skin.getColor("popupBackground").getColor() %>"/>
"
style="BOLD" horizAlign="CENTERED" vertAlign="MIDDLE"/>
"/>
<%
} finally {
if (tx != null) {
tx.endTransaction();
}
}
%>
| Attachment | Size |
|---|---|
| Modal_interactions.swz | 651.82 KB |