bill.util.gui
Interface GUIUtilInterface

All Known Implementing Classes:
ParentGUI

public interface GUIUtilInterface

Interface to be implemented by classes that wish to be able to use the AddKeyValueFrame class. Specifies a number of methods that must be implemented in order for the AddKeyValueFrame class to work. Other classes are planned that will also require a class to implement this interface.


Method Summary
 void addFrameClosing(JFrame frame)
          Called when a frame that was created to add data is being closed.
 void addFrameClosing(JFrame frame, boolean cancelled)
          Called when a frame that was created to add data is being closed.
 boolean isHighlighting()
          Checks to see if required field highlighting has been requested.
 boolean isToolTips()
          Checks to see if the user has indicated a desire to see tooltips.
 

Method Detail

isHighlighting

public boolean isHighlighting()
Checks to see if required field highlighting has been requested.
Returns:
true if the highlighting has been requested, false otherwise.

addFrameClosing

public void addFrameClosing(JFrame frame)
Called when a frame that was created to add data is being closed. An example of this would be an AddKeyValueFrame object.
Parameters:
frame - The JFrame that is being closed.

addFrameClosing

public void addFrameClosing(JFrame frame,
                            boolean cancelled)
Called when a frame that was created to add data is being closed. An example of this would be an AddKeyValueFrame object. This version of this method allows the caller to indicate if the frame was closed by cancelling it.
Parameters:
frame - The JFrame that is being closed.
cancelled - If set to true, indicates the frame was closed by cancelling out of it. this could be via a cancel button or by using the window decorations.

isToolTips

public boolean isToolTips()
Checks to see if the user has indicated a desire to see tooltips. If they have then the GUI displays "hover help".
Returns:
true if tool tips have been requested, false otherwise.