public class ScreenWrapper extends ImportWrapper<ScreenData> implements Screen
Wraps function calls to the ScreenData contained.
Modifier and Type | Field and Description |
---|---|
static String |
ANNOTATION_LINK
Annotation link name for this type of object
|
data
Constructor and Description |
---|
ScreenWrapper(DataManager dm,
String name,
String description)
Constructor of the ProjectWrapper class.
|
ScreenWrapper(ScreenData screen)
Constructor of the class ScreenWrapper.
|
Modifier and Type | Method and Description |
---|---|
protected String |
annotationLinkType()
Returns the type of annotation link for this object.
|
String |
getDescription()
Gets the screen description
|
String |
getName()
Gets the screen name.
|
List<Plate> |
getPlates()
Returns the plates contained in this screen.
|
String |
getProtocolDescription()
Returns the description of the protocol.
|
String |
getProtocolIdentifier()
Returns the identifier of the protocol.
|
String |
getReagentSetDescription()
Returns the description of the reagent set.
|
String |
getReagentSetIdentifier()
Returns the identifier of the Reagent set.
|
List<Long> |
importImage(ConnectionHandler client,
String path)
Imports one image file to the screen in OMERO.
|
boolean |
importImages(ConnectionHandler client,
String... paths)
Imports all images candidates in the paths to the screen in OMERO.
|
void |
reload(Browser browser)
Reloads the screen from OMERO.
|
void |
setDescription(String description)
Sets the description of the screen.
|
void |
setName(String name)
Sets the name of the screen.
|
void |
setProtocolDescription(String value)
Sets the description of the protocol.
|
void |
setProtocolIdentifier(String value)
Sets the identifier of the protocol.
|
void |
setReagentSetDescription(String value)
Sets the identifier of the reagent.
|
void |
setReagentSetIdentifier(String value)
Sets the identifier of the reagent.
|
addAndReplaceFile, addAndReplaceTable, addKeyValuePair, addTag, addTag, getAnnotations, getFileAnnotations, getMapAnnotations, getMyRating, getTable, getTags, rate, removeLink, unlink
asDataObject, canAnnotate, canChgrp, canChown, canDelete, canEdit, canLink, getCreated, getGroupId, getId, getOwner, getUpdated, saveAndUpdate, toString, wrap, wrap
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
asDataObject, getChildren, getImages, getParents, getPlateAcquisitions, getPlates, getPlates, getWells
addAndReplaceFile, addAndReplaceFile, addAndReplaceTable, addAndReplaceTable, addFile, addKeyValuePair, addTable, addTag, addTag, addTags, copyAnnotationLinks, getAnnotationData, getAnnotations, getFileAnnotations, getKeyValuePairs, getMapAnnotations, getMyRating, getTable, getTables, getTags, getValues, isLinked, link, link, link, linkIfNotLinked, rate, unlink
canAnnotate, canChgrp, canChown, canDelete, canEdit, canLink, distinct, flatten, getCreated, getElementsOf, getGroupId, getId, getOwner, getUpdated, saveAndUpdate
public static final String ANNOTATION_LINK
public ScreenWrapper(DataManager dm, String name, String description) throws ServiceException, AccessException, ExecutionException
dm
- The data manager.name
- Project name.description
- Project description.ServiceException
- Cannot connect to OMERO.AccessException
- Cannot access data.ExecutionException
- A Facility can't be retrieved or instantiated.public ScreenWrapper(ScreenData screen)
screen
- The ScreenData contained in the ScreenWrapper.protected String annotationLinkType()
annotationLinkType
in class AnnotatableWrapper<ScreenData>
public String getName()
getName
in interface RepositoryObject
public void setName(String name)
setName
in interface Screen
name
- The name of the screen. Mustn't be null
.IllegalArgumentException
- If the name is null
.public String getDescription()
getDescription
in interface RepositoryObject
public void setDescription(String description)
setDescription
in interface Screen
description
- The description of the screen.public String getProtocolDescription()
getProtocolDescription
in interface Screen
public void setProtocolDescription(String value)
setProtocolDescription
in interface Screen
value
- The value to set.public String getProtocolIdentifier()
getProtocolIdentifier
in interface Screen
public void setProtocolIdentifier(String value)
setProtocolIdentifier
in interface Screen
value
- The value to set.public String getReagentSetDescription()
getReagentSetDescription
in interface Screen
public void setReagentSetDescription(String value)
setReagentSetDescription
in interface Screen
value
- The value to set.public String getReagentSetIdentifier()
getReagentSetIdentifier
in interface Screen
public void setReagentSetIdentifier(String value)
setReagentSetIdentifier
in interface Screen
value
- The value to set.public void reload(Browser browser) throws ServiceException, AccessException, ExecutionException
reload
in interface RepositoryObject
reload
in interface Screen
browser
- The data browser.ServiceException
- Cannot connect to OMERO.AccessException
- Cannot access data.ExecutionException
- A Facility can't be retrieved or instantiated.public boolean importImages(ConnectionHandler client, String... paths) throws ServiceException, IOException, AccessException
importImages
in interface Screen
importImages
in class ImportWrapper<ScreenData>
client
- The client handling the connection.paths
- Paths to the image files on the computer.ServiceException
- Cannot connect to OMERO.AccessException
- Cannot access data.IOException
- Cannot read file.public List<Long> importImage(ConnectionHandler client, String path) throws ServiceException, AccessException, IOException
importImage
in interface Screen
importImage
in class ImportWrapper<ScreenData>
client
- The client handling the connection.path
- Path to the image file on the computer.ServiceException
- Cannot connect to OMERO.AccessException
- Cannot access data.IOException
- Cannot read file.Copyright © 2020–2023 GReD. All rights reserved.