public class FactorWizardHandler extends Object
Modifier and Type | Field and Description |
---|---|
protected FactorWizardUI |
factorWizardUI |
Constructor and Description |
---|
FactorWizardHandler(FactorWizardUI factorWizardUI) |
Modifier and Type | Method and Description |
---|---|
void |
addContinuousEquationFactor(Factor f,
boolean exist) |
void |
addContinuousFactor(String name,
String comment,
String path,
ContinuousDomain domain,
boolean exist)
Ajout d'un facteur continue de type (min/max).
|
void |
addDiscreteEquationFactor(String name,
String comment,
String path,
List<Object> values,
boolean exist) |
protected void |
addDiscreteFactor(DiscreteDomain domain,
String name,
String comment,
String path,
List<Object> values,
boolean exist) |
void |
addDiscreteFactor(String name,
String comment,
String path,
List<Object> values,
boolean exist) |
void |
addDiscreteRuleFactor(String name,
String comment,
String path,
List<Object> values,
boolean exist) |
protected void |
addFactor(Factor f) |
void |
addTabs(FactorWizardUI factorWizardUI)
Rafraichit l'assistant de facteur pour modifier le nombre de valeurs
(onglet) d'un composant discret.
|
protected void |
afterInit() |
protected ContinuousPanel |
getContinuousPanel(Object value,
org.nuiton.topia.persistence.TopiaEntityContextable bean,
String property)
Retourne le componant permettant de mettre en facteur continue
une valeur.
|
protected JComponent |
getEditorWithValue(FactorWizardUI factorWizardUI,
Factor factor,
Domain domain,
Object value)
Renvoie un componsant gaphique initialisé avec la valeur
qui est enregistré dans le domain.
|
protected FactorGroup |
getFactorGroup() |
protected ContinuousPanel |
getNewContinuousComponent(FactorWizardUI factorWizardUI,
String factorPath)
Return new continuous component inited with value defined by factor path.
|
protected JComponent |
getNewDiscreteComponent(FactorWizardUI factorWizardUI)
Return new discrete component inited with value defined by factor path.
|
protected SimulationParameter |
getParameters() |
protected org.nuiton.topia.TopiaContext |
getTopiaContext(FactorWizardUI factorWizardUI)
Return opened topia context that need to be closed.
|
protected ContinuousPanel |
getTypeContinousComponent(FactorWizardUI factorWizardUI,
Class type,
Object value)
Get new special component for typed parameters.
|
protected JComponent |
getTypeDiscreteComponent(FactorWizardUI factorWizardUI,
Class type,
Object value)
Get new special component for typed parameters.
|
void |
initExistingFactor(FactorWizardUI factorWizardUI,
Factor factor)
Appelé suite a un double clic sur l'arbre des facteurs pour modifier un
facteur.
|
void |
initNewFactor(FactorWizardUI factorWizardUI,
org.nuiton.topia.persistence.TopiaEntityContextable bean,
String property)
Initialize un nouveau wizard avec lorsque l'utilisateur clic sur
un layer sont le sous composant accepte la mise en facteur.
|
void |
remove(FactorWizardUI factorWizardUI)
Remove current factor.
|
protected void |
removeFactor(FactorGroup factorGroup,
String factorPath)
Recursive remove for factor in factor group by path.
|
void |
removeFactor(String factorPath)
Remove factor in factor group tree by path.
|
void |
save(FactorWizardUI factorWizardUI)
Save current factor.
|
protected void |
saveContinue(String name,
String comment,
String path,
ContinuousPanel panel,
boolean exist)
Save a continous factor.
|
protected void |
saveDiscret(String name,
String comment,
String path,
Component[] components,
boolean exist)
Save a discret factor.
|
protected FactorWizardUI factorWizardUI
public FactorWizardHandler(FactorWizardUI factorWizardUI)
protected void afterInit()
protected org.nuiton.topia.TopiaContext getTopiaContext(FactorWizardUI factorWizardUI) throws org.nuiton.topia.TopiaException
org.nuiton.topia.TopiaException
public void initNewFactor(FactorWizardUI factorWizardUI, org.nuiton.topia.persistence.TopiaEntityContextable bean, String property)
factorWizardUI
- factorWizardUIbean
- bean in current uiproperty
- bean property to editpublic void initExistingFactor(FactorWizardUI factorWizardUI, Factor factor)
factorWizardUI
- view to initfactor
- factor factor to editprotected JComponent getEditorWithValue(FactorWizardUI factorWizardUI, Factor factor, Domain domain, Object value)
factorWizardUI
- context for context value (RegionStorage)value
- type to get editorfactor
- factor for path valuedomain
- domain for domain typeprotected ContinuousPanel getContinuousPanel(Object value, org.nuiton.topia.persistence.TopiaEntityContextable bean, String property)
value
- value (must be continuable)bean
- bean (in case of equation)property
- bean property (in case of equation)public void addTabs(FactorWizardUI factorWizardUI)
factorWizardUI
- factorWizardUIprotected JComponent getNewDiscreteComponent(FactorWizardUI factorWizardUI)
factorWizardUI
- factorWizardUIprotected ContinuousPanel getNewContinuousComponent(FactorWizardUI factorWizardUI, String factorPath)
factorWizardUI
- (to use topia context)factorPath
- factor pathprotected JComponent getTypeDiscreteComponent(FactorWizardUI factorWizardUI, Class type, Object value)
factorWizardUI
- type
- protected ContinuousPanel getTypeContinousComponent(FactorWizardUI factorWizardUI, Class type, Object value)
factorWizardUI
- type
- type to get componentpublic void save(FactorWizardUI factorWizardUI)
factorWizardUI
- factorWizardUIprotected void saveContinue(String name, String comment, String path, ContinuousPanel panel, boolean exist)
name
- factor namecomment
- commentpath
- factor pathpanel
- panelexist
- existprotected void saveDiscret(String name, String comment, String path, Component[] components, boolean exist)
name
- comment
- path
- components
- exist
- public void remove(FactorWizardUI factorWizardUI)
factorWizardUI
- factorWizardUIprotected void addFactor(Factor f)
public void addContinuousFactor(String name, String comment, String path, ContinuousDomain domain, boolean exist)
name
- comment
- path
- domain
- exist
- public void addDiscreteFactor(String name, String comment, String path, List<Object> values, boolean exist)
public void addDiscreteRuleFactor(String name, String comment, String path, List<Object> values, boolean exist)
public void addDiscreteEquationFactor(String name, String comment, String path, List<Object> values, boolean exist)
protected void addDiscreteFactor(DiscreteDomain domain, String name, String comment, String path, List<Object> values, boolean exist)
public void addContinuousEquationFactor(Factor f, boolean exist)
public void removeFactor(String factorPath)
factorPath
- factor path to removeprotected void removeFactor(FactorGroup factorGroup, String factorPath)
factorGroup
- factor group to search tofactorPath
- factor path to removeprotected FactorGroup getFactorGroup()
protected SimulationParameter getParameters()
Copyright © 1999–2020 CodeLutin. All rights reserved.