{
statusbar = new WebStatusBar ();
//
final WebBreadcrumb updateBreadcrumb = new WebBreadcrumb ( false );
updateBreadcrumb.setEncloseLastElement ( false );
final ImageIcon updateIcon = new ImageIcon ( StyleEditor.class.getResource ( "icons/editor/update.png" ) );
final WebLabel delayLabel = new WebLabel ( "Skin update delay:", updateIcon );
final WebTextField delayField = new WebTextField ( new IntTextDocument (), "" + updateDelay, 3 );
delayField.setShadeWidth ( 0 );
delayField.setHorizontalAlignment ( WebTextField.CENTER );
delayField.getDocument ().addDocumentListener ( new IntDocumentChangeListener ()
{
@Override
public void documentChanged ( final Integer newValue, final DocumentEvent e )
{
updateDelay = newValue != null ? newValue : updateDelay;
if ( updateDelay < 0 )
{
updateDelay = 0;
}
}
} );
final WebLabel msLabel = new WebLabel ( "ms" ).setMargin ( 4 );
final WebBreadcrumbPanel panel = new WebBreadcrumbPanel ();
panel.setLayout ( new HorizontalFlowLayout ( 4, false ) );
panel.add ( delayLabel, new CenterPanel ( delayField, false, true ), msLabel );
updateBreadcrumb.add ( panel );
statusMessage = new WebBreadcrumbLabel ( "Edit XML at the right side and see UI changes at the left side!", info );
statusMessage.setStyleId ( "status-message-label" );
updateBreadcrumb.add ( statusMessage );
statusbar.add ( updateBreadcrumb );
//