org.bs.mdi
Interface Window

All Known Subinterfaces:
DocumentWindow, MainWindow, SwingDocumentWindow
All Known Implementing Classes:
SwingMainWindow, TabDocumentWindow, TraditionalDocumentWindow

public interface Window

An interface for all objects implementing windowing funcationality.


Method Summary
 boolean close()
          Tries to close the window.
 String getTitle()
          Returns the title of the window.
 void hide()
          Makes this window invisible.
 void repaint()
          Requests this window to be repainted as soon as possible.
 void setTitle(String title)
          Sets the title of the window.
 void show()
          Makes this window visible.
 

Method Detail

setTitle

public void setTitle(String title)
Sets the title of the window.

Parameters:
title - the new title

getTitle

public String getTitle()
Returns the title of the window.

Returns:
the window title

show

public void show()
Makes this window visible.


hide

public void hide()
Makes this window invisible.


close

public boolean close()
Tries to close the window.

Note that calling this method does not guarantee that the window is actually closed. The implementations of this interface can intercept close requests and decide if they are really carried out or not. For example, if you try to close a changed document,

Returns:
true if the window was successfully closed, false otherwise

repaint

public void repaint()
Requests this window to be repainted as soon as possible.