Examples of AttributeAppender


Examples of org.apache.wicket.behavior.AttributeAppender

    protected abstract void addFormComponentBehavior(Behavior behavior);

    private void addCssForMetaModel() {
        final String cssForMetaModel = getModel().getLongName();
        if (cssForMetaModel != null) {
            add(new AttributeAppender("class", Model.of(cssForMetaModel), " "));
        }

        ScalarModel model = getModel();
        final CssClassFacet facet = model.getFacet(CssClassFacet.class);
        if(facet != null) {
View Full Code Here

Examples of org.apache.wicket.behavior.AttributeAppender

    @Override
    protected void populateItem(ListItem<StackTraceDetail> item) {
        final StackTraceDetail detail = item.getModelObject();
        Label label = new Label(idLine, detail.getLine());
        item.add(new AttributeAppender("class", detail.getType().name().toLowerCase()));
        item.add(label);
    }
View Full Code Here

Examples of org.apache.wicket.behavior.AttributeAppender

    }

    private void addCssForMetaModel() {
        final String cssForMetaModel = getModel().getLongName();
        if (cssForMetaModel != null) {
            add(new AttributeAppender("class", true, Model.of(cssForMetaModel), " "));
        }
    }
View Full Code Here

Examples of org.apache.wicket.behavior.AttributeAppender

                Boolean isLast = item.getIndex() == getList().size() - 1;
                Boolean isMisdirected = cargoModel.getObject().delivery().get().isMisdirected().get();

                // Status icon
                IModel iconName = Model.of( isLast && isMisdirected ? "cross.png" : "tick.png" );
                item.add( new WebMarkupContainer( "onTrackIcon" ).add( new AttributeAppender( "src", iconName, "" ) ) );

                // Date
                item.add( new Label( "completion", new Model<Date>( event.completionTime().get() ) ) );

                // Event description (data substitution in strings from HandlingHistoryPanel.properties)
View Full Code Here

Examples of org.apache.wicket.behavior.AttributeAppender

                Boolean isLast = item.getIndex() == getList().size() - 1;
                Boolean isMisdirected = cargoModel.getObject().delivery().get().isMisdirected().get();

                // Status icon
                IModel iconName = Model.of( isLast && isMisdirected ? "cross.png" : "tick.png" );
                item.add( new WebMarkupContainer( "onTrackIcon" ).add( new AttributeAppender( "src", iconName, "" ) ) );

                // Date
                item.add( new Label( "completion", new Model<Date>( event.completionTime().get() ) ) );

                // Event description (data substitution in strings from HandlingHistoryPanel.properties)
View Full Code Here

Examples of org.apache.wicket.behavior.AttributeAppender

    }

    private void addCssForMetaModel() {
        final String cssForMetaModel = getModel().getLongName();
        if (cssForMetaModel != null) {
            add(new AttributeAppender("class", true, Model.of(cssForMetaModel), " "));
        }
    }
View Full Code Here

Examples of org.apache.wicket.behavior.AttributeAppender

       
        for(i=0; i<MAX_NUM_UNDERLYING_VIEWS; i++) {
            Component component = underlyingViews[i];
            if(component != null) {
                if(i != selected) {
                    component.add(new AttributeAppender("class", " " +
                        INVISIBLE_CLASS));
                }
            }
        }
    }
View Full Code Here

Examples of org.apache.wicket.behavior.AttributeAppender

    private static void applyCssVisibility(final Component component, final boolean visible) {
        final AttributeModifier modifier = 
                visible
                    ? new AttributeModifier("class", String.valueOf(component.getMarkupAttributes().get("class")).replaceFirst(INVISIBLE_CLASS, ""))
                    : new AttributeAppender("class", " " +
                        INVISIBLE_CLASS);
        component.add(modifier);
    }
View Full Code Here

Examples of org.apache.wicket.behavior.AttributeAppender

                final AbstractLink link = linkAndLabel.getLink();

                Label viewTitleLabel = new Label(ID_ADDITIONAL_LINK_TITLE, linkAndLabel.getLabel());
                String disabledReasonIfAny = linkAndLabel.getDisabledReasonIfAny();
                if(disabledReasonIfAny != null) {
                    viewTitleLabel.add(new AttributeAppender("title", disabledReasonIfAny));
                }
                if(linkAndLabel.isBlobOrClob()) {
                    link.add(new CssClassAppender("noVeil"));
                }
                if(linkAndLabel.isPrototype()) {
View Full Code Here

Examples of org.apache.wicket.behavior.AttributeAppender

   */
  public static AttributeAppender append(String attributeName, IModel<?> value)
  {
    Args.notEmpty(attributeName, "attributeName");

    return new AttributeAppender(attributeName, value).setSeparator(" ");
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.