Package org.zkoss.zul

Examples of org.zkoss.zul.A$EncodedHref


            putCodeTextbox(orderElement, textBoxCode);
        }

        private void addHyperlink(final OrderElement orderElement) {
            String code = orderElement.getCode();
            A hyperlink = new A(code);

            Connector connector = connectorDAO
                    .findUniqueByName(PredefinedConnectors.JIRA.getName());
            if (connector == null) {
                return;
            }

            String jiraUrl = connector.getPropertiesAsMap().get(
                    PredefinedConnectorProperties.SERVER_URL);

            String codeWithoutPrefix = StringUtils.removeStart(code,
                    PredefinedConnectorProperties.JIRA_CODE_PREFIX);
            codeWithoutPrefix = StringUtils.removeStart(codeWithoutPrefix,
                    orderElement.getOrder().getCode()
                            + EntitySequence.CODE_SEPARATOR_CHILDREN);

            hyperlink.setHref(jiraUrl + "/browse/" + codeWithoutPrefix);

            if (orderModel.isCodeAutogenerated() || readOnly) {
                hyperlink.setDisabled(true);
            }

            addCell(hyperlink);
        }
View Full Code Here

TOP

Related Classes of org.zkoss.zul.A$EncodedHref

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.