org.jtheque.core.managers.view.able
Interface IView

All Known Subinterfaces:
IConfigView, ILicenceView, ILogView, IMainView, IMessageView, IModuleView, IRepositoryView, IUpdateView, IWindowView
All Known Implementing Classes:
ConfigView, LicenceView, LogView, MainView, MessageView, ModuleView, RepositoryView, SwingDialogView, SwingFrameView, UpdateView

public interface IView

Represents a view.

Author:
Baptiste Wicht

Method Summary
 void build()
          Build the graphic user interface.
 void closeDown()
          Close the view.
 void display()
          Display the view.
 java.lang.Object getImpl()
          This method return the real implementation
 IModel getModel()
          Return the model of the view.
 boolean isEnabled()
          Indicate if the view is enabled or not.
 void refresh()
          Refresh the view.
 void sendMessage(java.lang.String message, java.lang.Object value)
          Send a message to the view.
 void setEnabled(boolean enabled)
          Enable or disable the view.
 void setModel(IModel model)
          Set the model of the view.
 void toFirstPlan()
          Display the view in first plan.
 boolean validateContent()
          Validate the view.
 

Method Detail

display

void display()
Display the view.


closeDown

void closeDown()
Close the view.


toFirstPlan

void toFirstPlan()
Display the view in first plan.


build

void build()
Build the graphic user interface.


setEnabled

void setEnabled(boolean enabled)
Enable or disable the view.

Parameters:
enabled - If true, the interface will be enabled else the interface will be disabled

isEnabled

boolean isEnabled()
Indicate if the view is enabled or not.

Returns:
true if the view is enabled else false

sendMessage

void sendMessage(java.lang.String message,
                 java.lang.Object value)
Send a message to the view.

Parameters:
message - The message key.
value - The value sended with the message.

refresh

void refresh()
Refresh the view.


getModel

IModel getModel()
Return the model of the view.

Returns:
The model of the view.

setModel

void setModel(IModel model)
Set the model of the view.

Parameters:
model - The model of the view.

validateContent

boolean validateContent()
Validate the view.

Returns:
true if the data are valid else false.

getImpl

java.lang.Object getImpl()
This method return the real implementation

Returns:
The real implemtation of the view.


Copyright © 2009 JTheque. All Rights Reserved.