Commit 040b94f6 authored by piotr.gawron's avatar piotr.gawron
Browse files

export column names changed

parent dbab29ae
package lcsb.mapviewer.services.utils.data;
import lcsb.mapviewer.model.map.reaction.Reaction;
import lcsb.mapviewer.model.map.species.Species;
/**
* This enum defines which columns are available in export function.
*
* @author Piotr Gawron
*
*/
public enum ExportColumn {
/**
* Name of the species.
*/
NAME("Name", Species.class), //
/**
* Name of compartment.
*/
COMPARTMENT_NAME("Compartment", Species.class), //
/**
* Name of compartment.
*/
POSITION_TO_COMPARTMENT("Position to compartment", Species.class), //
/**
* Name of pathway.
*/
COMPONENT_NAME("Component", Species.class), //
/**
* Type of the species.
*/
TYPE("Type", Species.class), //
/**
* Identifier.
*/
ID("Id", Object.class), //
/**
* Complex in which element is localized.
*/
COMPLEX("Parent complex", Species.class), //
/**
* Complex in which element is localized.
*/
SUBMODEL("Submodel", Species.class), //
/**
* Reaction identifier.
*/
REACTION_ID("Reaction id", Reaction.class), //
/**
* Reaction type.
*/
REACTION_TYPE("Reaction type", Reaction.class), //
/**
* Information if reaction is reversible.
*/
REACTION_REVERSIBLE("Reversible", Reaction.class), //
/**
* Every reaction is split into two elements interactions.
*/
REACTION_TWO_ELEMENT("Split reaction to two element interaction", Reaction.class);
/**
* Default constructor that creates enum entry.
*
* @param title
* {@link #title}
* @param clazz
* {@link #clazz}
*/
ExportColumn(String title, Class<?> clazz) {
this.title = title;
this.clazz = clazz;
}
/**
* Human readable title.
*/
private String title;
/**
* Class for which this column should be accessible.
*/
private Class<?> clazz;
/**
*
* @return {@link #title}
*/
public String getTitle() {
return title;
}
/**
*
*
* @return {@link #clazz}
*/
public Class<?> getClazz() {
return clazz;
}
}
package lcsb.mapviewer.services.utils.data;
import lcsb.mapviewer.model.map.reaction.Reaction;
import lcsb.mapviewer.model.map.species.Species;
/**
* This enum defines which columns are available in export function.
*
* @author Piotr Gawron
*
*/
public enum ExportColumn {
/**
* Name of the species.
*/
NAME("Name", Species.class), //
/**
* Name of compartment.
*/
COMPARTMENT_NAME("Compartment", Species.class), //
/**
* Name of compartment.
*/
POSITION_TO_COMPARTMENT("Position to compartment", Species.class), //
/**
* Name of pathway.
*/
COMPONENT_NAME("Pathway", Species.class), //
/**
* Type of the species.
*/
TYPE("Type", Species.class), //
/**
* Identifier.
*/
ID("Id", Object.class), //
/**
* Complex in which element is localized.
*/
COMPLEX("Parent complex", Species.class), //
/**
* Complex in which element is localized.
*/
SUBMODEL("Submodel", Species.class), //
/**
* Reaction identifier.
*/
REACTION_ID("Reaction id", Reaction.class), //
/**
* Reaction type.
*/
REACTION_TYPE("Reaction type", Reaction.class), //
/**
* Information if reaction is reversible.
*/
REACTION_REVERSIBLE("Reversible", Reaction.class), //
/**
* Every reaction is split into two elements interactions.
*/
REACTION_TWO_ELEMENT("Split reaction to two element interaction", Reaction.class);
/**
* Default constructor that creates enum entry.
*
* @param title
* {@link #title}
* @param clazz
* {@link #clazz}
*/
ExportColumn(String title, Class<?> clazz) {
this.title = title;
this.clazz = clazz;
}
/**
* Human readable title.
*/
private String title;
/**
* Class for which this column should be accessible.
*/
private Class<?> clazz;
/**
*
* @return {@link #title}
*/
public String getTitle() {
return title;
}
/**
*
*
* @return {@link #clazz}
*/
public Class<?> getClazz() {
return clazz;
}
}
......@@ -114,18 +114,18 @@ public class ExportBean extends AbstractManagedBean {
/**
* List of selected species (node) types to be exported.
*/
private List<String> selectedSpeciesType = new ArrayList<String>();
private List<String> selectedSpeciesType = new ArrayList<>();
/**
* List of selected species (node) fields to be exported.
*/
private List<String> selectedSpeciesColumn = new ArrayList<String>();
private List<String> selectedSpeciesColumn = new ArrayList<>();
/**
* List of selected species (node) types to be exported in export network
* mode.
*/
private List<String> selectedNetworkType = new ArrayList<String>();
private List<String> selectedNetworkType = new ArrayList<>();
/**
* Network export file type.
......@@ -140,12 +140,12 @@ public class ExportBean extends AbstractManagedBean {
/**
* List of species (nodes) columns.
*/
private List<String> speciesColumnList = new ArrayList<String>();
private List<String> speciesColumnList = new ArrayList<>();
/**
* List of file types for network export.
*/
private List<String> networkFileTypeList = new ArrayList<String>();
private List<String> networkFileTypeList = new ArrayList<>();
/**
* Part of the map (in polygon format) to be exported.
......@@ -165,7 +165,7 @@ public class ExportBean extends AbstractManagedBean {
/**
* List of model names.
*/
private List<String> models = new ArrayList<String>();
private List<String> models = new ArrayList<>();
/**
* List with information about available {@link AbstractImageGenerator}
......@@ -182,32 +182,32 @@ public class ExportBean extends AbstractManagedBean {
/**
* List of {@link MiriamType} annotations to include in network export.
*/
private DualListModel<Pair<MiriamType, String>> networkAvailableMiriam = new DualListModel<Pair<MiriamType, String>>();
private DualListModel<Pair<MiriamType, String>> networkAvailableMiriam = new DualListModel<>();
/**
* List of components (compartments) to include in network export.
*/
private DualListModel<String> networkIncludedComponent = new DualListModel<String>();
private DualListModel<String> networkIncludedComponent = new DualListModel<>();
/**
* List of components (compartments) to exclude in network export.
*/
private DualListModel<String> networkExcludedComponent = new DualListModel<String>();
private DualListModel<String> networkExcludedComponent = new DualListModel<>();
/**
* List of {@link MiriamType} annotations to include in element export.
*/
private DualListModel<Pair<MiriamType, String>> elementAvailableMiriam = new DualListModel<Pair<MiriamType, String>>();
private DualListModel<Pair<MiriamType, String>> elementAvailableMiriam = new DualListModel<>();
/**
* List of components (compartments) to include in element export.
*/
private DualListModel<String> elementIncludedComponent = new DualListModel<String>();
private DualListModel<String> elementIncludedComponent = new DualListModel<>();
/**
* List of components (compartments) to exclude in element export.
*/
private DualListModel<String> elementExcludedComponent = new DualListModel<String>();
private DualListModel<String> elementExcludedComponent = new DualListModel<>();
/**
* Map between name of the node type and class.
......@@ -217,12 +217,12 @@ public class ExportBean extends AbstractManagedBean {
/**
* Map between name of the column and column object.
*/
private Map<String, ExportColumn> speciesColumnMap = new LinkedHashMap<String, ExportColumn>();
private Map<String, ExportColumn> speciesColumnMap = new LinkedHashMap<>();
/**
* Map between name of the file type and file type.
*/
private Map<String, ExportFileType> networkFileTypeMap = new LinkedHashMap<String, ExportFileType>();
private Map<String, ExportFileType> networkFileTypeMap = new LinkedHashMap<>();
/**
* List of publications for current model. If <code>null</code> then data is
......
......@@ -41,12 +41,12 @@
<h:outputText value="#{miriam.left.commonName} (#{miriam.right})" style="background-color: #{miriam.right>0?'#00FF00':'#FFFFFF'}"/>
</p:column>
</p:pickList>
<h:outputLabel value="Included compartments: " />
<h:outputLabel value="Included compartments/pathways: " />
<p:pickList value="#{exportMB.elementIncludedComponent}" var="comp" itemLabel="#{comp}" itemValue="#{comp}" >
<f:facet name="sourceCaption">Available</f:facet>
<f:facet name="targetCaption">Used</f:facet>
</p:pickList>
<h:outputLabel value="Excluded compartments: " />
<h:outputLabel value="Excluded compartments/pathways: " />
<p:pickList value="#{exportMB.elementExcludedComponent}" var="comp" itemLabel="#{comp}" itemValue="#{comp}" >
<f:facet name="sourceCaption">Available</f:facet>
<f:facet name="targetCaption">Used</f:facet>
......@@ -69,12 +69,12 @@
<h:outputText value="#{miriam.left.commonName} (#{miriam.right})" style="background-color: #{miriam.right>0?'#00FF00':'#FFFFFF'}"/>
</p:column>
</p:pickList>
<h:outputLabel value="Included compartments: " />
<h:outputLabel value="Included compartments/pathways: " />
<p:pickList value="#{exportMB.networkIncludedComponent}" var="comp" itemLabel="#{comp}" itemValue="#{comp}" >
<f:facet name="sourceCaption">Available</f:facet>
<f:facet name="targetCaption">Used</f:facet>
</p:pickList>
<h:outputLabel value="Excluded compartments: " />
<h:outputLabel value="Excluded compartments/pathways: " />
<p:pickList value="#{exportMB.networkExcludedComponent}" var="comp" itemLabel="#{comp}" itemValue="#{comp}" >
<f:facet name="sourceCaption">Available</f:facet>
<f:facet name="targetCaption">Used</f:facet>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment