Package adams.gui.core
Interface AbstractNamedHistoryPanel.FrameDisplaySupporter<T>
-
- Type Parameters:
T
- the type of content to display
- All Known Implementing Classes:
BufferHistoryPanel
,HelpHistoryPanel
- Enclosing class:
- AbstractNamedHistoryPanel<T>
public static interface AbstractNamedHistoryPanel.FrameDisplaySupporter<T>
Interface for history panels that allow the content to be displayed in separate frames.- Author:
- fracpete (fracpete at waikato dot ac dot nz)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description AbstractNamedHistoryPanel.AbstractHistoryEntryFrame<T>
getFrame(String name)
Returns the frame associated with the entry.boolean
hasFrame(String name)
Checks whether a frame is available fro this entry.AbstractNamedHistoryPanel.AbstractHistoryEntryFrame<T>
newFrame(String name)
Creates a new frame for the entry.void
removeFrame(String name)
Removes the frame from the list.void
showFrame(String name)
Displays the entry in a new frame.
-
-
-
Method Detail
-
hasFrame
boolean hasFrame(String name)
Checks whether a frame is available fro this entry.- Parameters:
name
- the name of the entry to check- Returns:
- true if a frame is already available
-
newFrame
AbstractNamedHistoryPanel.AbstractHistoryEntryFrame<T> newFrame(String name)
Creates a new frame for the entry.- Parameters:
name
- the name of the entry to create a frame for- Returns:
- the frame
-
getFrame
AbstractNamedHistoryPanel.AbstractHistoryEntryFrame<T> getFrame(String name)
Returns the frame associated with the entry.- Parameters:
name
- the name of the entry to retrieve- Returns:
- the frame or null if not found
-
showFrame
void showFrame(String name)
Displays the entry in a new frame. If a frame is already avao;an;e for the entry, then this one will be activated.- Parameters:
name
- the name of the entry to open or activate
-
removeFrame
void removeFrame(String name)
Removes the frame from the list. This method should be called when the frame gets closed.- Parameters:
name
- the name of the entry this frame is associated with
-
-