org.jtheque.primary.controller.able
Interface ControllerState

All Known Implementing Classes:
AbstractControllerState

public interface ControllerState

Represents a state of a controller. This is for the controllers of principal datas. The state can change when a user interaction occurs or a state can be changed by an other state.

Author:
Baptiste Wicht

Method Summary
 void apply()
          Apply the state.
 ControllerState cancel()
          Cancel the current state.
 ControllerState create()
          Create a new object.
 ControllerState delete()
          Delete the current data.
 ControllerState manualEdit()
          Edit manually the current data.
 ControllerState save(FormBean infos)
          Save the current data.
 ControllerState view(Data data)
          Display a data.
 

Method Detail

apply

void apply()
Apply the state.


save

ControllerState save(FormBean infos)
Save the current data.

Parameters:
infos - The informations of the interface
Returns:
The new ControllerState or null

cancel

ControllerState cancel()
Cancel the current state.

Returns:
The new ControllerState or null

create

ControllerState create()
Create a new object.

Returns:
The new ControllerState or null

delete

ControllerState delete()
Delete the current data.

Returns:
The new ControllerState or null

manualEdit

ControllerState manualEdit()
Edit manually the current data.

Returns:
The new ControllerState or null

view

ControllerState view(Data data)
Display a data.

Parameters:
data - the data to display.
Returns:
The new ControllerState or null


Copyright © 2010 JTheque. All Rights Reserved.