public abstract class LayoutSupport<T extends LayoutTemplate>
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
defaultLayoutFormat |
protected java.util.List<T> |
layoutTemplates |
protected java.util.List<java.lang.String> |
specialTokens |
Constructor and Description |
---|
LayoutSupport() |
Modifier and Type | Method and Description |
---|---|
abstract java.lang.String |
getDefaultLayoutFormat() |
T |
getDefaultLayoutTemplate() |
T |
getLayoutTemplateByCodeName(java.lang.String templateName) |
T |
getLayoutTemplateByCountry(java.lang.String templateName) |
T |
getLayoutTemplateByDisplayName(java.lang.String templateName) |
T |
getLayoutTemplateByName(java.lang.String templateName) |
java.util.List<T> |
getLayoutTemplates() |
java.util.List<java.lang.String> |
getSpecialTokens() |
void |
setDefaultLayoutFormat(java.lang.String defaultLayoutFormat) |
void |
setLayoutTemplates(java.util.List<T> layoutTemplates) |
void |
setSpecialTokens(java.util.List<java.lang.String> specialTokens) |
protected java.lang.String defaultLayoutFormat
protected java.util.List<T extends LayoutTemplate> layoutTemplates
protected java.util.List<java.lang.String> specialTokens
public java.util.List<T> getLayoutTemplates()
public void setLayoutTemplates(java.util.List<T> layoutTemplates)
layoutTemplates
- The layoutTemplates to set.public T getDefaultLayoutTemplate()
public T getLayoutTemplateByName(java.lang.String templateName)
public T getLayoutTemplateByCodeName(java.lang.String templateName)
public T getLayoutTemplateByCountry(java.lang.String templateName)
public T getLayoutTemplateByDisplayName(java.lang.String templateName)
public java.util.List<java.lang.String> getSpecialTokens()
public void setSpecialTokens(java.util.List<java.lang.String> specialTokens)
specialTokens
- The specialTokens to set.public abstract java.lang.String getDefaultLayoutFormat()
public void setDefaultLayoutFormat(java.lang.String defaultLayoutFormat)
defaultLayoutFormat
- The defaultLayoutFormat to set.Copyright © 2018 OpenMRS Inc.. All Rights Reserved.