Class CmsAliasErrorColumn
- java.lang.Object
-
- com.google.gwt.user.cellview.client.Column<R,V>
-
- org.opencms.ade.sitemap.client.alias.A_CmsAliasTableColumn<org.opencms.gwt.shared.alias.CmsAliasTableRow,com.google.gwt.safehtml.shared.SafeHtml,CmsAliasCellTable>
-
- org.opencms.ade.sitemap.client.alias.simple.CmsAliasErrorColumn
-
- All Implemented Interfaces:
com.google.gwt.cell.client.HasCell<org.opencms.gwt.shared.alias.CmsAliasTableRow,com.google.gwt.safehtml.shared.SafeHtml>
,com.google.gwt.user.client.ui.HasAlignment
,com.google.gwt.user.client.ui.HasHorizontalAlignment
,com.google.gwt.user.client.ui.HasVerticalAlignment
public class CmsAliasErrorColumn extends A_CmsAliasTableColumn<org.opencms.gwt.shared.alias.CmsAliasTableRow,com.google.gwt.safehtml.shared.SafeHtml,CmsAliasCellTable>
The class for the column of the alias editor table which is used to display validation errors.
-
-
Constructor Summary
Constructors Constructor Description CmsAliasErrorColumn()
Creates a new instance.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addToTable(CmsAliasCellTable table)
Adds the column to the table.java.lang.String
getCellStyleNames(com.google.gwt.cell.client.Cell.Context context, org.opencms.gwt.shared.alias.CmsAliasTableRow object)
static java.util.Comparator<org.opencms.gwt.shared.alias.CmsAliasTableRow>
getComparator()
Gets the comparator which should be used for this column.com.google.gwt.safehtml.shared.SafeHtml
getValue(org.opencms.gwt.shared.alias.CmsAliasTableRow row)
protected static java.lang.String
getValueInternal(org.opencms.gwt.shared.alias.CmsAliasTableRow row)
Static helper method to get the value to display in the column from a row.void
initSortHandler(com.google.gwt.user.cellview.client.ColumnSortEvent.ListHandler<org.opencms.gwt.shared.alias.CmsAliasTableRow> sortHandler)
Initializes the sort handler to use this column.-
Methods inherited from class com.google.gwt.user.cellview.client.Column
getCell, getDataStoreName, getFieldUpdater, getHorizontalAlignment, getVerticalAlignment, isDefaultSortAscending, isSortable, onBrowserEvent, render, setCellStyleNames, setDataStoreName, setDefaultSortAscending, setFieldUpdater, setHorizontalAlignment, setSortable, setVerticalAlignment
-
-
-
-
Constructor Detail
-
CmsAliasErrorColumn
public CmsAliasErrorColumn()
Creates a new instance.
-
-
Method Detail
-
getComparator
public static java.util.Comparator<org.opencms.gwt.shared.alias.CmsAliasTableRow> getComparator()
Gets the comparator which should be used for this column.- Returns:
- the comparator used for this column
-
getValueInternal
protected static java.lang.String getValueInternal(org.opencms.gwt.shared.alias.CmsAliasTableRow row)
Static helper method to get the value to display in the column from a row.- Parameters:
row
- the row- Returns:
- the value to display
-
addToTable
public void addToTable(CmsAliasCellTable table)
Description copied from class:A_CmsAliasTableColumn
Adds the column to the table.Subclasses can override this to also set e.g. the column width
- Specified by:
addToTable
in classA_CmsAliasTableColumn<org.opencms.gwt.shared.alias.CmsAliasTableRow,com.google.gwt.safehtml.shared.SafeHtml,CmsAliasCellTable>
- See Also:
A_CmsAliasTableColumn.addToTable(com.google.gwt.user.cellview.client.CellTable)
-
getCellStyleNames
public java.lang.String getCellStyleNames(com.google.gwt.cell.client.Cell.Context context, org.opencms.gwt.shared.alias.CmsAliasTableRow object)
- Overrides:
getCellStyleNames
in classcom.google.gwt.user.cellview.client.Column<org.opencms.gwt.shared.alias.CmsAliasTableRow,com.google.gwt.safehtml.shared.SafeHtml>
- See Also:
Column.getCellStyleNames(com.google.gwt.cell.client.Cell.Context, java.lang.Object)
-
getValue
public com.google.gwt.safehtml.shared.SafeHtml getValue(org.opencms.gwt.shared.alias.CmsAliasTableRow row)
- Specified by:
getValue
in interfacecom.google.gwt.cell.client.HasCell<org.opencms.gwt.shared.alias.CmsAliasTableRow,com.google.gwt.safehtml.shared.SafeHtml>
- Specified by:
getValue
in classcom.google.gwt.user.cellview.client.Column<org.opencms.gwt.shared.alias.CmsAliasTableRow,com.google.gwt.safehtml.shared.SafeHtml>
- See Also:
Column.getValue(java.lang.Object)
-
initSortHandler
public void initSortHandler(com.google.gwt.user.cellview.client.ColumnSortEvent.ListHandler<org.opencms.gwt.shared.alias.CmsAliasTableRow> sortHandler)
Description copied from class:A_CmsAliasTableColumn
Initializes the sort handler to use this column.- Overrides:
initSortHandler
in classA_CmsAliasTableColumn<org.opencms.gwt.shared.alias.CmsAliasTableRow,com.google.gwt.safehtml.shared.SafeHtml,CmsAliasCellTable>
- Parameters:
sortHandler
- the sort handler- See Also:
A_CmsAliasTableColumn.initSortHandler(com.google.gwt.user.cellview.client.ColumnSortEvent.ListHandler)
-
-