Package com.volantis.mcs.protocols

Examples of com.volantis.mcs.protocols.TableCellAttributes


        LocalizationFactory.createExceptionLocalizer(TableHeaderCellElement.class);

    public TableHeaderCellElement(XDIMEContextInternal context) {
        super(XHTML2Elements.TH, context);

        protocolAttributes = new TableCellAttributes();
    }
View Full Code Here


     * @param collectId
     * @throws ProtocolException
     */
    private void createTableCellElement(VolantisProtocol protocol,
            List idCollector, boolean collectId) throws ProtocolException {
        TableCellAttributes tableCellAttributes = this
                .createTableDataCellAttributes(protocol, null, true);
        if (collectId) {
            idCollector.add(tableCellAttributes.getId());
        }
        openTableCellElement(protocol, tableCellAttributes);
    }
View Full Code Here

     */
    protected TableCellAttributes createTableDataCellAttributes(
            VolantisProtocol protocol, MCSAttributes sourceAttributes,
            boolean generateDefaultId) {
        // Create new instance of TableCellAttributes
        TableCellAttributes tableAttributes = new TableCellAttributes();

        // If source attributes are specified, copy all attribute values.
        if (sourceAttributes != null) {
            tableAttributes.copy(sourceAttributes);
        }

        // If styles are not specified, create new inherited styles.
        Styles styles = tableAttributes.getStyles();
        if (styles == null) {
            styles = StylingFactory.getDefaultInstance().createInheritedStyles(
                    protocol.getMarinerPageContext().getStylingEngine()
                            .getStyles(), null);
            tableAttributes.setStyles(styles);
        }

        if (generateDefaultId && tableAttributes.getId() == null) {
            tableAttributes.setId(protocol.getMarinerPageContext()
                    .generateUniqueFCID());
        }
        return tableAttributes;
    }
View Full Code Here

TOP

Related Classes of com.volantis.mcs.protocols.TableCellAttributes

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.