|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sibvisions.rad.ui.celleditor.AbstractStyledCellEditor
com.sibvisions.rad.ui.celleditor.AbstractInplaceCellEditor
com.sibvisions.rad.ui.celleditor.AbstractComboCellEditor
com.sibvisions.rad.ui.celleditor.AbstractLinkedCellEditor
public abstract class AbstractLinkedCellEditor
The AbstractLinkedCellEditor
is an ILinkedCellEditor
implementation, which provides a base implementation.
Field Summary | |
---|---|
protected ICondition |
additionalCondition
The additional condition. |
protected boolean |
autoTableHeaderVisibility
True, if header should be visible depending of column number. |
protected ColumnView |
columnView
The ColumnView . |
protected java.lang.String |
displayReferencedColumnName
The name of the display referenced column. |
protected ReferenceDefinition |
linkReference
The link reference. |
protected IDimension |
popupSize
The size used for the popup. |
protected ColumnMapping |
searchColumnMapping
The ColumnMapping . |
protected boolean |
searchTextAnywhere
If the text should be searched anywhere. |
protected boolean |
sortByColumnName
If the values should be sorted by column name. |
protected boolean |
tableHeaderVisible
If the table header should be visible. |
protected boolean |
tableReadOnly
If the table should be read-only. |
protected boolean |
validationEnabled
If only values from the table are allowed. |
Fields inherited from class com.sibvisions.rad.ui.celleditor.AbstractComboCellEditor |
---|
autoOpenPopup |
Fields inherited from class com.sibvisions.rad.ui.celleditor.AbstractInplaceCellEditor |
---|
preferredEditorMode |
Fields inherited from class com.sibvisions.rad.ui.celleditor.AbstractStyledCellEditor |
---|
horizontalAlignment, verticalAlignment |
Fields inherited from interface javax.rad.ui.celleditor.IInplaceCellEditor |
---|
DOUBLE_CLICK, SINGLE_CLICK |
Fields inherited from interface javax.rad.ui.IAlignmentConstants |
---|
ALIGN_BOTTOM, ALIGN_CENTER, ALIGN_DEFAULT, ALIGN_LEFT, ALIGN_RIGHT, ALIGN_STRETCH, ALIGN_TOP |
Constructor Summary | |
---|---|
protected |
AbstractLinkedCellEditor()
Creates a new instance of AbstractLinkedCellEditor . |
Method Summary | |
---|---|
ICondition |
getAdditionalCondition()
Gets the additional condition, that is combined with And. |
ColumnView |
getColumnView()
Returns the ColumnView displayed by this control. |
java.lang.String |
getDisplayReferencedColumnName()
Gets the name of the referenced column that is used for displaying values. |
protected java.lang.String |
getDisplayValue(IDataRow pDataRow,
java.lang.String pColumnName)
Gets the correct display value for the given row and column. |
ReferenceDefinition |
getLinkReference()
Gets reference definition that defines the link. |
IDimension |
getPopupSize()
Gets the size of the Popup window using a Dimension object. |
ColumnMapping |
getSearchColumnMapping()
Gets search columns for which should be searched in the linked cell. |
boolean |
isDirectCellEditor()
Defines, if the editor should edit directly in complex controls. |
boolean |
isSearchTextAnywhere()
True, if the text is searched anywhere. |
boolean |
isSortByColumnName()
True, if the linked cell editor should sort by the column name it is editing. |
boolean |
isTableHeaderVisible()
The header of a table can't be hidden. |
boolean |
isTableReadonly()
Gets whether the table in the popup readonly. |
boolean |
isValidationEnabled()
Gets true, if only values from the table are allowed. |
void |
setAdditionalCondition(ICondition pCondition)
Sets the additional condition, that is combined with And. |
void |
setColumnView(ColumnView pColumnView)
Sets the ColumnView displayed by this control. |
void |
setDisplayReferencedColumnName(java.lang.String pDisplayReferencedColumnName)
Sets the name of the referenced column that is used for displaying values. |
void |
setLinkReference(ReferenceDefinition pReferenceDefinition)
Sets reference definition that defines the link. |
void |
setPopupSize(IDimension pPopupSize)
Sets the size of the Popup window using a Dimension object. |
void |
setSearchColumnMapping(ColumnMapping pSearchColumnNames)
Sets search columns for which should be searched in the linked cell. |
void |
setSearchTextAnywhere(boolean pSearchTextAnywhere)
True, if the text is searched anywhere. |
void |
setSortByColumnName(boolean pSortByColumnName)
True, if the linked cell editor should sort by the column name it is editing. |
void |
setTableHeaderVisible(boolean pTableHeaderVisible)
Does nothing, the header of a table can't be hidden. |
void |
setTableReadonly(boolean pTableReadonly)
Sets the table in the popup readonly. |
void |
setValidationEnabled(boolean pValidationEnabled)
Sets true, if only values from the table are allowed. |
Methods inherited from class com.sibvisions.rad.ui.celleditor.AbstractComboCellEditor |
---|
isAutoOpenPopup, setAutoOpenPopup |
Methods inherited from class com.sibvisions.rad.ui.celleditor.AbstractInplaceCellEditor |
---|
getPreferredEditorMode, setPreferredEditorMode |
Methods inherited from class com.sibvisions.rad.ui.celleditor.AbstractStyledCellEditor |
---|
getHorizontalAlignment, getVerticalAlignment, setHorizontalAlignment, setVerticalAlignment |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface javax.rad.ui.celleditor.IComboCellEditor |
---|
isAutoOpenPopup, setAutoOpenPopup |
Methods inherited from interface javax.rad.ui.celleditor.IInplaceCellEditor |
---|
getPreferredEditorMode, setPreferredEditorMode |
Methods inherited from interface javax.rad.model.ui.ICellEditor |
---|
createCellEditorHandler |
Methods inherited from interface javax.rad.ui.IAlignmentConstants |
---|
getHorizontalAlignment, getVerticalAlignment, setHorizontalAlignment, setVerticalAlignment |
Field Detail |
---|
protected boolean autoTableHeaderVisibility
protected ICondition additionalCondition
protected ColumnView columnView
ColumnView
.
protected java.lang.String displayReferencedColumnName
protected ReferenceDefinition linkReference
protected IDimension popupSize
protected ColumnMapping searchColumnMapping
ColumnMapping
.
protected boolean searchTextAnywhere
protected boolean sortByColumnName
protected boolean tableHeaderVisible
protected boolean tableReadOnly
protected boolean validationEnabled
Constructor Detail |
---|
protected AbstractLinkedCellEditor()
AbstractLinkedCellEditor
.
Method Detail |
---|
public ICondition getAdditionalCondition()
getAdditionalCondition
in interface ILinkedCellEditor
public ColumnView getColumnView()
getColumnView
in interface ILinkedCellEditor
ILinkedCellEditor.setColumnView(javax.rad.model.ColumnView)
public java.lang.String getDisplayReferencedColumnName()
null
if no display referenced column name is set and
the editors default behavior decides what is displayed.
getDisplayReferencedColumnName
in interface ILinkedCellEditor
null
if not set.public ReferenceDefinition getLinkReference()
getLinkReference
in interface ILinkedCellEditor
public IDimension getPopupSize()
Dimension
object.
Null means, that the Popup window opens with preferredSize.
getPopupSize
in interface ILinkedCellEditor
public ColumnMapping getSearchColumnMapping()
getSearchColumnMapping
in interface ILinkedCellEditor
public boolean isSearchTextAnywhere()
isSearchTextAnywhere
in interface ILinkedCellEditor
public boolean isSortByColumnName()
isSortByColumnName
in interface ILinkedCellEditor
public boolean isTableHeaderVisible()
isTableHeaderVisible
in interface ILinkedCellEditor
false
.public boolean isTableReadonly()
isTableReadonly
in interface ILinkedCellEditor
public boolean isValidationEnabled()
isValidationEnabled
in interface ILinkedCellEditor
public void setAdditionalCondition(ICondition pCondition)
setAdditionalCondition
in interface ILinkedCellEditor
pCondition
- the additional condition.public void setColumnView(ColumnView pColumnView)
setColumnView
in interface ILinkedCellEditor
pColumnView
- the ColumnViewILinkedCellEditor.getColumnView()
public void setDisplayReferencedColumnName(java.lang.String pDisplayReferencedColumnName)
setDisplayReferencedColumnName
in interface ILinkedCellEditor
pDisplayReferencedColumnName
- the name of the display referenced column.public void setLinkReference(ReferenceDefinition pReferenceDefinition)
setLinkReference
in interface ILinkedCellEditor
pReferenceDefinition
- the link reference definition.public void setPopupSize(IDimension pPopupSize)
Dimension
object.
Null means, that the Popup window opens with preferredSize.
setPopupSize
in interface ILinkedCellEditor
pPopupSize
- the Popup size of.public void setSearchColumnMapping(ColumnMapping pSearchColumnNames)
setSearchColumnMapping
in interface ILinkedCellEditor
pSearchColumnNames
- search columns for which should be searched in the linked cell.public void setSearchTextAnywhere(boolean pSearchTextAnywhere)
setSearchTextAnywhere
in interface ILinkedCellEditor
pSearchTextAnywhere
- True, if the text is searched anywhere.public void setSortByColumnName(boolean pSortByColumnName)
setSortByColumnName
in interface ILinkedCellEditor
pSortByColumnName
- true, if the linked cell editor should sort by the column name it is editing.public void setTableHeaderVisible(boolean pTableHeaderVisible)
setTableHeaderVisible
in interface ILinkedCellEditor
pTableHeaderVisible
- ignored.public void setTableReadonly(boolean pTableReadonly)
setTableReadonly
in interface ILinkedCellEditor
pTableReadonly
- sets the table in the popup readonly.public void setValidationEnabled(boolean pValidationEnabled)
setValidationEnabled
in interface ILinkedCellEditor
pValidationEnabled
- true, if only values from the table are allowed.public boolean isDirectCellEditor()
isDirectCellEditor
in interface ICellEditor
isDirectCellEditor
in class AbstractComboCellEditor
ICellEditorHandler
.protected java.lang.String getDisplayValue(IDataRow pDataRow, java.lang.String pColumnName) throws ModelException
pDataRow
- the data rowpColumnName
- the column
ModelException
- if it fails.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |