/** * Sets the data object, that can be used for any application specific data. * The component does not use or modify this data. * * @param data * the Application specific data. * @return this (for method chaining) * @see AbstractComponent#setData(java.lang.Object) */ public default S withData(Object data) { ((AbstractComponent) this).setData(data); return (S) this; }
@Override public B withData(Object data) { getInstance().setData(data); return builder(); }
@Override public B withData(Object data) { getInstance().setData(data); return builder(); }
/** * @param elementName * XML node name of the business field. Typically 'entity', * 'property' or 'action'. Never null */ protected void layoutWidget( Component component, String elementName, Map<String, String> attributes ) { // Set the name of the component. // // Note: we haven't split this out into a separate WidgetProcessor, because other methods // like getValue/setValue/getComponent( String... names ) rely on it ( (AbstractComponent) component ).setData( attributes.get( NAME ) ); // Remove, then re-add to layout (to re-order the component) removeComponent( component ); // Look up any additional attributes Map<String, String> additionalAttributes = mPipeline.getAdditionalAttributes( component ); if ( additionalAttributes != null ) { attributes.putAll( additionalAttributes ); } }