StatusBar

Interface StatusBar defines how client code may interact with a feedback window holding information such as the currently executed command, the current time, encoding and size of the view in a certain metric, mode names and current mouse position.

The Skeleton Framework creates a standard ToolBar which encapsulates Command objects. Each time one of these commands is executed, the StatusBar displays its description for a certain length of time. Users of the skeleton can either use the default StatusBar or add a custom one. To add your own StatusBar, override method getStatusBar() in your ApplicationFrame subclass.

Example 7.11. Overriding getStatusBar()

public StatusBar getStatusBar()
{
    if(statusBar== null)
    {
        statusBar= new CustomStatusBar();
    }
    return statusBar;
}

Returning null instead of a valid StatusBar implementation will hide it.

Example 7.12. Overriding getStatusBar() Method

// no status bar
public StatusBar getStatusBar()
{
  return null;
}