net.logAnalyzer.gui
Interface LAViewContainer

All Known Implementing Classes:
InternalFrameViewContainer

public interface LAViewContainer

Defines the view container interface. A view container is used to display LAView. Implementation could be a JPanel, a JFrame, a JInternalFrame...

Version:
0.1
Author:
Karim REFEYTON

Method Summary
 LAFrame getFrame()
          Returns the parent frame.
 void messageChanged(int firstIndex, int lastIndex)
          Called by the contained view when the current messages selection has changed.
 void setCurrentMessage(int firstIndex, int lastIndex)
          Changes the current messages selection.
 void setFrame(LAFrame frame)
          Sets the parent frame.
 LAView setView(LAView view)
          Sets the contained view.
 void viewModified()
          Called by the contained view when its content is modified.
 

Method Detail

getFrame

public LAFrame getFrame()
Returns the parent frame.

Returns:
Parent frame.

setFrame

public void setFrame(LAFrame frame)
Sets the parent frame.

Parameters:
frame - Parent frame.

setView

public LAView setView(LAView view)
Sets the contained view.

Parameters:
view - Contained view.
Returns:
Previous contained view if exists; null otherwise.

viewModified

public void viewModified()
Called by the contained view when its content is modified.


messageChanged

public void messageChanged(int firstIndex,
                           int lastIndex)
Called by the contained view when the current messages selection has changed.

Parameters:
firstIndex - First messageLabel index.
lastIndex - Last messageLabel index.

setCurrentMessage

public void setCurrentMessage(int firstIndex,
                              int lastIndex)
Changes the current messages selection.

Parameters:
firstIndex - First messageLabel index.
lastIndex - Last messageLabel index.


Copyright © 2006 null. All Rights Reserved.