Package com.volantis.mcs.protocols

Examples of com.volantis.mcs.protocols.TableRowAttributes


        LocalizationFactory.createExceptionLocalizer(TableRowElement.class);

    public TableRowElement(XDIMEContextInternal context) {
        super(XHTML2Elements.TR, context);

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


    /**
     * This method tests the method public void writeOpenTableRow ( TableRowAttributes )
     * for the com.volantis.mcs.protocols.VolantisProtocol class.
     */
    public void testWriteOpenTableRow() throws Exception {
        final TableRowAttributes attributes = (TableRowAttributes)
            provideAttributes(TableRowAttributes.class);

        final VolantisProtocol protocol = getProtocol();

        MethodInvoker invoker = new MethodInvoker() {
View Full Code Here

     * @param protocol
     * @throws ProtocolException
     */
    protected void closeTableRowElement(VolantisProtocol protocol)
            throws ProtocolException {
        TableRowAttributes tableRowAttributes;
        try {
            tableRowAttributes = (TableRowAttributes) popMCSAttributes();
        } catch (EmptyStackException e) {
            throw new ProtocolException(exceptionLocalizer.format("widget-tr-not-opened"),e);
        } catch (ClassCastException e) {
View Full Code Here

     * @return
     */
    private TableRowAttributes createTableRowAttributes(
            VolantisProtocol protocol, MCSAttributes sourceAttributes,
            boolean generateDefaultId) {
        TableRowAttributes tableAttributes = new TableRowAttributes();

        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

     * @param protocol
     * @throws ProtocolException
     */
    private void createTableRowElement(VolantisProtocol protocol)
            throws ProtocolException {
        TableRowAttributes tableRowAttributes = createTableRowAttributes(
                protocol, null, false);
        openTableRowElement(protocol, tableRowAttributes);

    }
View Full Code Here

TOP

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

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.