@Override protected State getState( ComponentContainer container, VaadinMetawidget metawidget ) { State state = (State) metawidget.getClientProperty( getClass() ); if ( state == null ) { state = new State(); metawidget.putClientProperty( getClass(), state ); } return state; }
if ( isIgnored( widget ) || section == null || ( state.getCurrentSections() != null && section.equals( state.getCurrentSections()[0] ) ) ) { super.layoutWidget( widget, elementName, attributes, container, metawidget ); return; if ( state.getCurrentSections() != null && !section.equals( state.getCurrentSections()[0] ) ) { super.endContainerLayout( container, metawidget ); state.setCurrentSections( new String[] { section } ); if ( isIgnored( widget ) || sections.length == 0 || Arrays.equals( sections, state.getCurrentSections() ) ) { super.layoutWidget( widget, elementName, attributes, container, metawidget ); return; if ( state.getCurrentSections() != null && level < state.getCurrentSections().length && section.equals( state.getCurrentSections()[level] ) ) { continue; state.setCurrentSections( sections );
if ( isIgnored( widget ) || section == null || ( state.getCurrentSections() != null && section.equals( state.getCurrentSections()[0] ) ) ) { super.layoutWidget( widget, elementName, attributes, container, metawidget ); return; if ( state.getCurrentSections() != null && !section.equals( state.getCurrentSections()[0] ) ) { super.endContainerLayout( container, metawidget ); state.setCurrentSections( new String[] { section } ); if ( isIgnored( widget ) || sections.length == 0 || Arrays.equals( sections, state.getCurrentSections() ) ) { super.layoutWidget( widget, elementName, attributes, container, metawidget ); return; if ( state.getCurrentSections() != null && level < state.getCurrentSections().length && section.equals( state.getCurrentSections()[level] ) ) { continue; state.setCurrentSections( sections );
if ( section == null || ( state.getCurrentSections() != null && section.equals( state.getCurrentSections()[0] ) ) ) { return delegateStartBuildWidget( elementName, attributes, container, metawidget ); if ( state.getCurrentSections() != null && !section.equals( state.getCurrentSections()[0] ) ) { super.endContainerLayout( container, metawidget ); state.setCurrentSections( new String[] { section } ); if ( sections.length == 0 || Arrays.equals( sections, state.getCurrentSections() ) ) { return delegateStartBuildWidget( elementName, attributes, container, metawidget ); if ( state.getCurrentSections() != null && level < state.getCurrentSections().length && section.equals( state.getCurrentSections()[level] ) ) { continue; state.setCurrentSections( sections );
@Override public void startContainerLayout( C container, M metawidget ) { super.startContainerLayout( container, metawidget ); State state = getState( container, metawidget ); state.setCurrentSections( null ); }
@Override protected State getState( Composite container, SwtMetawidget metawidget ) { State state = (State) container.getData( getClass().getName() ); if ( state == null ) { state = new State(); container.setData( getClass().getName(), state ); } return state; }
@Override protected State getState( UIComponent container, UIMetawidget metawidget ) { State state = (State) metawidget.getClientProperty( getClass() ); if ( state == null ) { state = new State(); metawidget.putClientProperty( getClass(), state ); } return state; }
@Override protected State getState( StaticWidget containerTag, StaticMetawidget metawidgetTag ) { State state = (State) metawidgetTag.getClientProperty( getClass() ); if ( state == null ) { state = new State(); metawidgetTag.putClientProperty( getClass(), state ); } return state; }
@Override protected State getState( JComponent container, SwingMetawidget metawidget ) { State state = (State) container.getClientProperty( getClass() ); if ( state == null ) { state = new State(); container.putClientProperty( getClass(), state ); } return state; }
@Override protected State getState( UIComponent container, UIMetawidget metawidget ) { State state = (State) metawidget.getClientProperty( getClass() ); if ( state == null ) { state = new State(); metawidget.putClientProperty( getClass(), state ); } return state; }
@Override protected State getState( Panel container, GwtMetawidget metawidget ) { State state = (State) metawidget.getClientProperty( getClass() ); if ( state == null ) { state = new State(); metawidget.putClientProperty( getClass(), state ); } return state; }
@Override protected State getState( BodyTag containerTag, MetawidgetTag metawidgetTag ) { State state = (State) metawidgetTag.getClientProperty( getClass() ); if ( state == null ) { state = new State(); metawidgetTag.putClientProperty( getClass(), state ); } return state; }
@Override protected State getState( StaticWidget containerTag, StaticMetawidget metawidgetTag ) { State state = (State) metawidgetTag.getClientProperty( getClass() ); if ( state == null ) { state = new State(); metawidgetTag.putClientProperty( getClass(), state ); } return state; }
@Override protected State getState( JComponent container, SwingMetawidget metawidget ) { State state = (State) container.getClientProperty( getClass() ); if ( state == null ) { state = new State(); container.putClientProperty( getClass(), state ); } return state; }
@Override public void startContainerLayout( C container, M metawidget ) { super.startContainerLayout( container, metawidget ); State state = getState( container, metawidget ); state.setCurrentSections( null ); }