public class TemplatePanel extends Object
| Modifier and Type | Field and Description |
|---|---|
protected com.extjs.gxt.ui.client.widget.LayoutContainer |
centralContainer |
protected List<ColumnDefinitionView> |
columnsDefined |
protected ConstraintSuggestionLabel |
constraintSuggestionLabel |
protected TdTemplateController |
controller |
protected com.extjs.gxt.ui.client.widget.LayoutContainer |
flexTableContainer |
protected com.google.gwt.user.client.ui.FlexTable |
flexTableTemplate |
protected HtmlLabel |
htmlTitleLabel |
protected int |
numColumns |
protected com.extjs.gxt.ui.client.widget.ContentPanel |
principalContainer |
protected SetColumnTypeDefinition |
setColumnTypeDefinition |
protected com.extjs.gxt.ui.client.widget.ContentPanel |
southContainer |
protected com.extjs.gxt.ui.client.widget.ContentPanel |
tableContainer |
protected TemplateSwitcherInteface |
templateSwitcherInteface |
protected com.extjs.gxt.ui.client.widget.toolbar.ToolBar |
toolbar |
protected ZIndexReference |
zIndexReference |
| Constructor and Description |
|---|
TemplatePanel()
Instantiates a new template panel.
|
TemplatePanel(TemplateSwitcherInteface templateSwitcherInteface,
TdTemplateController controller)
Instantiates a new template panel.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clearCell(int rowIndex,
int columnIndex)
Clear cell.
|
void |
enableColumnTypes(boolean bool)
Enanble column types.
|
void |
enableFilter(boolean bool)
Enable filter.
|
void |
enableFlow(boolean bool)
Enable flow.
|
void |
enableValidateTemplate(boolean b)
Enable validate template.
|
List<ColumnDefinitionView> |
getColumnsDefined()
Gets the columns defined.
|
TdTemplateController |
getController()
Gets the controller.
|
TdFlowModel |
getFlow()
Gets the flow.
|
int |
getNumColumns()
Gets the num columns.
|
com.extjs.gxt.ui.client.widget.LayoutContainer |
getPanel()
Gets the panel.
|
SetColumnTypeDefinition |
getSetColumnTypeDefinition()
Gets the sets the column type definition.
|
TemplateSwitcherInteface |
getTemplateSwitcherInteface() |
com.extjs.gxt.ui.client.widget.toolbar.ToolBar |
getToolbar()
Gets the toolbar.
|
protected void |
initContainers()
Inits the containers.
|
void |
initTableColumns(com.google.gwt.user.client.ui.FlexTable flexTable,
int columnIndex,
int columnsOffset)
Inits the table columns.
|
void |
inizializeTableTemplate()
Initialize this example.
|
void |
inizializeToolBar()
Inizialize tool bar.
|
boolean |
isValidTemplate()
Checks if is valid template.
|
void |
refreshSuggestion(String title,
String text)
Refresh suggestion.
|
void |
refreshSuggestion(String title,
String text,
com.google.gwt.user.client.ui.AbstractImagePrototype img)
Refresh suggestion.
|
void |
setAddFlowAsVisible(boolean bool)
Sets the adds the flow as visible.
|
void |
setBorderAsOnError(boolean bool)
Sets the border as on error.
|
void |
setColumnHeaderValue(int columnIndex,
String headerValue)
Sets the column header value.
|
void |
setEditableHeaderValue(int columnIndex,
boolean b)
Sets the editable header value.
|
void |
setFlowAsReadOnly(boolean bool)
Sets the flow as read only.
|
void |
setVisibleAddRule(int columnIndex,
boolean b)
Sets the visible add rule.
|
void |
setVisibleSuggests(boolean b)
Sets the visible suggests.
|
void |
setVisibleTitle(boolean b)
Sets the title visible.
|
void |
setVisibleToolbar(boolean bool)
Sets the visible toolbar.
|
void |
setWidgetIntoTable(int rowIndex,
int columnIndex,
com.google.gwt.user.client.ui.Widget widget)
Sets the widget into table.
|
void |
validateTemplate()
Validate template.
|
protected com.google.gwt.user.client.ui.FlexTable flexTableTemplate
protected com.extjs.gxt.ui.client.widget.LayoutContainer flexTableContainer
protected int numColumns
protected com.extjs.gxt.ui.client.widget.ContentPanel tableContainer
protected List<ColumnDefinitionView> columnsDefined
protected TemplateSwitcherInteface templateSwitcherInteface
protected SetColumnTypeDefinition setColumnTypeDefinition
protected TdTemplateController controller
protected com.extjs.gxt.ui.client.widget.LayoutContainer centralContainer
protected com.extjs.gxt.ui.client.widget.ContentPanel principalContainer
protected com.extjs.gxt.ui.client.widget.ContentPanel southContainer
protected com.extjs.gxt.ui.client.widget.toolbar.ToolBar toolbar
protected HtmlLabel htmlTitleLabel
protected ConstraintSuggestionLabel constraintSuggestionLabel
protected ZIndexReference zIndexReference
public TemplatePanel()
public TemplatePanel(TemplateSwitcherInteface templateSwitcherInteface, TdTemplateController controller)
templateSwitcherInteface - the template switcher intefacecontroller - the controllerprotected void initContainers()
public TemplateSwitcherInteface getTemplateSwitcherInteface()
public void refreshSuggestion(String title, String text)
title - the titletext - the textpublic void refreshSuggestion(String title, String text, com.google.gwt.user.client.ui.AbstractImagePrototype img)
title - the titletext - the textimg - the imgpublic void setBorderAsOnError(boolean bool)
bool - the new border as on errorpublic void inizializeToolBar()
public com.extjs.gxt.ui.client.widget.toolbar.ToolBar getToolbar()
public SetColumnTypeDefinition getSetColumnTypeDefinition()
public void enableFlow(boolean bool)
bool - the boolpublic void enableFilter(boolean bool)
bool - the boolpublic void enableColumnTypes(boolean bool)
bool - the boolpublic void inizializeTableTemplate()
public void initTableColumns(com.google.gwt.user.client.ui.FlexTable flexTable,
int columnIndex,
int columnsOffset)
flexTable - the flex tablecolumnIndex - the column indexcolumnsOffset - the columns offsetpublic void setWidgetIntoTable(int rowIndex,
int columnIndex,
com.google.gwt.user.client.ui.Widget widget)
rowIndex - the row indexcolumnIndex - the column indexwidget - the widgetpublic void clearCell(int rowIndex,
int columnIndex)
rowIndex - the row indexcolumnIndex - the column indexpublic int getNumColumns()
public com.extjs.gxt.ui.client.widget.LayoutContainer getPanel()
public List<ColumnDefinitionView> getColumnsDefined()
public void validateTemplate()
public boolean isValidTemplate()
public TdFlowModel getFlow()
public void setFlowAsReadOnly(boolean bool)
bool - the new flow as read onlypublic void setAddFlowAsVisible(boolean bool)
bool - the new adds the flow as visiblepublic void setVisibleToolbar(boolean bool)
bool - the new visible toolbarpublic TdTemplateController getController()
public void setVisibleSuggests(boolean b)
b - the new visible suggestspublic void enableValidateTemplate(boolean b)
b - the bpublic void setVisibleAddRule(int columnIndex,
boolean b)
columnIndex - the column indexb - the bpublic void setVisibleTitle(boolean b)
b - the new title visiblepublic void setColumnHeaderValue(int columnIndex,
String headerValue)
columnIndex - the column indexheaderValue - the header valuepublic void setEditableHeaderValue(int columnIndex,
boolean b)
columnIndex - the column indexb - the bCopyright © 2017. All Rights Reserved.