info.joseluismartin.gui
Interface View<T>

All Superinterfaces:
Binder<T>, ModelHolder<T>
All Known Implementing Classes:
AbstractView, DbConnectionForm, PaginatorView, ReportFileView, ReportFilterView, ReportListView, ReportTypeView, ReportView, TableEditor, TreeView, ViewDialog, ViewFrame

public interface View<T>
extends Binder<T>

Interface for Views

Author:
Jose Luis Martin - (jlm@joseluismartin.info)

Method Summary
 void clear()
          Reset view state to default values
 void enableView(boolean enabled)
          Enable/Disable All controls
 String getErrorMessage()
          Get Error Message
 String getName()
          Gets the view name
 JComponent getPanel()
          Gets the view JComponent
 boolean isDirty()
          Check if user change any controls of view
 boolean validateView()
          validate model
 
Methods inherited from interface info.joseluismartin.gui.Binder
getBindingResult, refresh, update
 
Methods inherited from interface info.joseluismartin.gui.ModelHolder
getModel, setModel
 

Method Detail

getName

String getName()
Gets the view name


getPanel

JComponent getPanel()
Gets the view JComponent


validateView

boolean validateView()
validate model

Returns:
true if there are not binding errors.

getErrorMessage

String getErrorMessage()
Get Error Message

Returns:
String with errors

clear

void clear()
Reset view state to default values


isDirty

boolean isDirty()
Check if user change any controls of view

Returns:
true if any control has changed

enableView

void enableView(boolean enabled)
Enable/Disable All controls



Copyright © 2012 JDAL. All Rights Reserved.