|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.malai.presentation.Presentation<A,C>
A
- The type of the abstract presentation.C
- The type of the concrecte presentation.public class Presentation<A extends AbstractPresentation,C extends ConcretePresentation>
A presentation contains an abstract presentation and a concrete presentation.
The goal of a presentation is to provide users with data (the abstract presentation) transformed
to be displayable (the concrete presentation).
This file is part of libMalai.
Copyright (c) 2009-2012 Arnaud BLOUIN
libMalan is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software
Foundation; either version 2 of the License, or (at your option) any later version.
libMalan is distributed without any warranty; without even the implied
warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public License for more details.
Field Summary | |
---|---|
protected A |
abstractPresentation
The abstract presentation, i.e. the manipulated data model. |
protected C |
concretePresentation
The concrete presentation, i.e. the representation of the abstract presentation. |
Constructor Summary | |
---|---|
Presentation(A absPres,
C concPres)
Creates a presentation. |
Method Summary | |
---|---|
A |
getAbstractPresentation()
|
C |
getConcretePresentation()
|
boolean |
isModified()
|
void |
reinit()
Reinitialises the presentation (its concrete and abstract presentations). |
void |
setModified(boolean modified)
Sets the Modifiable object as modified. |
void |
update()
Updates the presentation. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected A extends AbstractPresentation abstractPresentation
protected C extends ConcretePresentation concretePresentation
Constructor Detail |
---|
public Presentation(A absPres, C concPres)
absPres
- The abstract presentation, i.e. the manipulated data model.concPres
- The concrete presentation, i.e. the representation of the abstract presentation.
java.lang.IllegalArgumentException
- If one of the given argument is null.Method Detail |
---|
public void setModified(boolean modified)
Modifiable
setModified
in interface Modifiable
modified
- True: the element is will tagged as modified.public boolean isModified()
isModified
in interface Modifiable
public A getAbstractPresentation()
public C getConcretePresentation()
public void update()
public void reinit()
reinit
in interface Reinitialisable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |