Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.gui4j
Interface Gui4jWindow  view Gui4jWindow download Gui4jWindow.java

All Known Subinterfaces:
Gui4jDialog, Gui4jView

public interface Gui4jWindow


Method Summary
 void center(boolean centered)
          Center the window.
 void changeWindowTitle(java.lang.String title)
          This method is needed to change a frame's title
 void close()
          This method closes the view.
 void disable()
          Sets the gui to enabled false
 void dispose()
           
 void enable()
          Sets the gui to enabled true
 Gui4jController getGui4jController()
           
 javax.swing.JComponent getSwingComponent(java.lang.String id)
          Returns the swing component with the given guiId.
 java.lang.String getTitle()
           
 java.awt.Window getWindow()
           
 void hide()
          Hide the window.
 boolean isBlocked()
           
 boolean isClosed()
           
 void maximize()
          Maximize the window on the desktop.
 void maximize(int maxWidth, int maxHeight)
          Maximize the window, but stop at the given dimension.
 void maximize1024x768()
          Maximize the window, but the maximum siye is limited to 1024 x 768
 Gui4jWindow prepare()
          Method prepare.
 void refreshAll()
           
 void resize()
          Resizes this view's JFrame so that all components get their preferred sizes.
 void setBusy(boolean busy)
           
 void setEnabled(boolean flag)
          Sets the enabled state.
 void setNormalCursor()
          Restores the normal cursor.
 void setVisible(boolean show)
          Shows or hides the window.
 void setWindowSize(java.awt.Dimension d)
          Convenience method for setWindowSize(int, int) 55
 void setWindowSize(int width, int height)
          Sets the window size.
 void setWorkingCursor()
          Display the working cursor.
 void show()
          Show the window.
 void waitForGUI()
          Wait until all gui events are executed.
 

Method Detail

waitForGUI

public void waitForGUI()
Wait until all gui events are executed.


prepare

public Gui4jWindow prepare()
Method prepare. Call this methid, before show, hide, setVisible


setVisible

public void setVisible(boolean show)
Shows or hides the window.


close

public void close()
This method closes the view. If the view is not open, nothing happens


show

public void show()
Show the window.


hide

public void hide()
Hide the window.


isClosed

public boolean isClosed()

resize

public void resize()
Resizes this view's JFrame so that all components get their preferred sizes.


getWindow

public java.awt.Window getWindow()

changeWindowTitle

public void changeWindowTitle(java.lang.String title)
This method is needed to change a frame's title


getTitle

public java.lang.String getTitle()

maximize

public void maximize()
Maximize the window on the desktop.


maximize

public void maximize(int maxWidth,
                     int maxHeight)
Maximize the window, but stop at the given dimension.


maximize1024x768

public void maximize1024x768()
Maximize the window, but the maximum siye is limited to 1024 x 768


center

public void center(boolean centered)
Center the window.


setWindowSize

public void setWindowSize(java.awt.Dimension d)
Convenience method for setWindowSize(int, int) 55


setWindowSize

public void setWindowSize(int width,
                          int height)
Sets the window size.


setWorkingCursor

public void setWorkingCursor()
Display the working cursor. A counter variable remembers the the number of calls of setWorkingCursor and setNormalCursor, so that only the last call of setNormalCursor really displays the normal cursor.


setNormalCursor

public void setNormalCursor()
Restores the normal cursor. See setWorkingCursor.


isBlocked

public boolean isBlocked()

setBusy

public void setBusy(boolean busy)

disable

public void disable()
Sets the gui to enabled false


enable

public void enable()
Sets the gui to enabled true


setEnabled

public void setEnabled(boolean flag)
Sets the enabled state.


getGui4jController

public Gui4jController getGui4jController()

dispose

public void dispose()

refreshAll

public void refreshAll()

getSwingComponent

public javax.swing.JComponent getSwingComponent(java.lang.String id)
Returns the swing component with the given guiId.