public class FTableColumn extends java.lang.Object implements FormElementI, FormElementWithDisplayPropertyI, SchemaLocaleAwareFormElementI
| Modifier and Type | Field and Description |
|---|---|
static int |
CACHE_NEVER |
static int |
CACHE_TXSAVE |
static int |
CACHE_VERSION |
static java.util.regex.Pattern |
COLUMN_DSL |
static ConfigureInfo |
CONFIG |
static java.lang.String |
EMPTY_STRING |
static org.apache.log4j.Logger |
log |
static int |
MAX_MEASUREMENTS |
static int |
MIN_MEASUREMENTS |
static java.util.regex.Pattern |
NUM_WITH_UNIT_RE |
static int |
RETURN_BIG_DECIMAL |
static int |
RETURN_BILD |
static int |
RETURN_FORMATTED_STRING |
static int |
RETURN_OBJECT |
static int |
RETURN_TO_STRING |
static int |
SORT_ASC |
static int |
SORT_DESC |
static int |
SORT_NEVER |
static int |
SORT_NONE |
ALL_ACTIONS, AVAILABLE_ACTION_KIND, CONTEXTMENU_ACTION_KIND, LOCAL_ACTION_KIND, MENU_ACTION_KIND, NO_LOCAL_ACTION_KIND, NO_TOPMDI_ONLY_ACTION_KIND, NOT_AVAILABLE_ACTION_KIND, REFRESH_FROM_SHOW_POPUP, REFRESH_FROM_TRANSACTION, REFRESH_FROM_USER, SHORTCUT_ACTION_KIND, TOOLBAR_ACTION_KIND, TOPMDI_ONLY_ACTION_KIND| Constructor and Description |
|---|
FTableColumn() |
| Modifier and Type | Method and Description |
|---|---|
void |
addFormElementListener(FormElementListenerI f) |
void |
afterSave() |
void |
afterSetValue(java.lang.Object old,
java.lang.Object $new) |
void |
beforeSave() |
void |
beforeSetValue(java.lang.Object old,
java.lang.Object $new) |
void |
bumpIndexAfterPrepend()
Increases the internal column index by one, used only if a new column was inserted before this programatically
|
void |
close() |
void |
configure(electric.xml.Element _element,
FTableConfigurationI _conf,
int _index) |
void |
configure(java.lang.String def,
FTableConfigurationI _conf,
int _index,
electric.xml.Element defDom) |
void |
configureDefaultSorting(EntityI entity) |
void |
delayedRefresh(de.ipcon.form.table.FTableColumn.CachedCell cc,
int row,
BO bo,
java.lang.Object nullValue) |
void |
evictCachedBOIds(java.lang.Long[] boIds) |
void |
flushCaches() |
java.util.LinkedHashMap |
getActions() |
java.util.LinkedHashMap |
getActionsOfKind(int kind) |
java.awt.Color |
getAlternateCellBackground() |
java.awt.Color |
getAlternateCellForeground() |
AnnotatedValue |
getAnnotatedValue(int row,
BO bo,
java.lang.Object nullValue,
int maxMicrosToAsync) |
java.util.HashMap<java.lang.String,MethodLocalizationWrapper> |
getAttributeMap() |
AttributeTypeI |
getAttributeType() |
java.awt.Color |
getCellBackground() |
java.awt.Color |
getCellForeground() |
FTableConfigurationI |
getConf() |
electric.xml.Element |
getConfRoot() |
ClientContextI |
getCtx() |
java.lang.String |
getDebugName() |
java.util.concurrent.ConcurrentSkipListMap |
getDelayedRefreshCache() |
java.lang.String |
getDisplayFormat() |
java.lang.String |
getDisplayProperty() |
java.lang.Class |
getDisplayType() |
electric.xml.Element |
getElement() |
java.util.HashMap |
getElementMap() |
FormContextI |
getFtx() |
javax.swing.table.TableCellRenderer |
getHeaderRenderer() |
int |
getIndex() |
java.lang.Integer |
getJustification() |
int |
getMeanEvaluationTimeMeasurements() |
int |
getMeanEvaluationTimeMicros() |
java.lang.String |
getName() |
javax.swing.table.TableCellRenderer |
getRenderer() |
SchemaI |
getSchema() |
AbstractScript |
getScript() |
int |
getSort() |
int |
getSortLevel() |
java.lang.Integer |
getStyle() |
java.lang.String |
getTitle() |
java.lang.String |
getToolTipFormat() |
java.lang.String |
getToolTipText(java.lang.Object o)
Renders and possibly caches the tooltip-text to be shown for that object
|
int |
getTotalEvaluationTimeMeasured() |
java.lang.String |
getUnitText() |
java.lang.Integer |
getVAlign() |
java.lang.String |
getValueAsString(java.lang.Object o)
Returns the string representation of a cell value using cached lookups.
|
java.lang.String |
getValueAsString(java.lang.Object o,
boolean noCaching)
Returns the string representation of a cell value, optionally bypassing scalar caches.
|
java.lang.String |
getValueAsString(java.lang.Object o,
boolean noCaching,
boolean usedFallback)
Returns the string representation of a cell value with full cache validation.
|
AnnotatedValue |
getValueFromObject(java.lang.Object o,
java.lang.Object nullValue) |
java.lang.String |
getValueFromObjectAsString(java.lang.Object o)
Resolves and formats the column value from a row business object using cache.
|
java.lang.String |
getValueFromObjectAsString(java.lang.Object o,
boolean noCaching)
Resolves and formats the column value from a row business object, forwarding fallback state.
|
java.lang.Integer |
getWidth() |
java.lang.String |
getWidthArg() |
void |
handleCachingA(java.lang.String a) |
void |
handleHeaderRendererClassA(java.lang.String value) |
void |
handleHeaderRendererE(electric.xml.Element _el) |
void |
handleJustificationA(java.lang.String value) |
FormElementI |
handleNewElement(electric.xml.Element e) |
javax.swing.table.TableCellRenderer |
handleRendererClass(java.lang.String value) |
void |
handleRendererClassA(java.lang.String value)
Inits and sets special cell renderer class if the column configuration
requests one.
|
void |
handleRendererE(electric.xml.Element _el)
Inits and sets special cell rendering code if the column configuration
provides such.
|
void |
handleScriptElement(electric.xml.Element el) |
void |
handleSortA(java.lang.String value) |
void |
handleStyleA(java.lang.String value) |
void |
handleVAlignA(java.lang.String value) |
void |
handleWidthA(java.lang.String value) |
boolean |
hasLocalizedAttribute()
Determines if the underlying attribute specifically holds localized string data.
|
boolean |
isAsync() |
boolean |
isCaching() |
boolean |
isClosed() |
boolean |
isDebug() |
boolean |
isDeferredRendering() |
boolean |
isEditable()
Checks whether this form element is currently editable.
|
boolean |
isFormatModel() |
boolean |
isGUIBuilt() |
boolean |
isInputPossible() |
boolean |
isShown() |
boolean |
isSlow() |
boolean |
isSorting() |
boolean |
isVirtual() |
void |
mdiActivate(MDIElementI me)
Invoked when this form element is activated within an MDI environment.
|
void |
mdiClose(MDIElementI me) |
void |
mdiDeactivate(MDIElementI me)
Invoked when this form element is deactivated within an MDI environment.
|
void |
mdiOpen(MDIElementI me) |
void |
postInit() |
void |
postRefresh() |
void |
postRefresh(int from) |
void |
refresh() |
void |
refresh(int from) |
void |
removeFormElementListener(FormElementListenerI f) |
void |
requestFocus() |
AnnotatedValue |
return_BigDecimal(java.lang.Object o) |
AnnotatedValue |
return_Bild(java.lang.Object o)
returns a Bild object at bo.property.
|
AnnotatedValue |
return_formattedString(java.lang.Object o)
Resolves and formats the display value of
o according to displayProperty. |
void |
setAlternateCellBackground(java.awt.Color c) |
void |
setAlternateCellForeground(java.awt.Color c) |
void |
setAsync(boolean $47) |
void |
setCellBackground(java.awt.Color c) |
void |
setCellForeground(java.awt.Color c) |
void |
setConf(FTableConfigurationI $43) |
void |
setDebug(boolean $46) |
void |
setDefaultJustification(java.lang.String just) |
void |
setDeferredRendering(boolean $49) |
void |
setDelayedRefreshCache(java.util.concurrent.ConcurrentSkipListMap $52) |
void |
setDisplayFormat(java.lang.String $32) |
void |
setDisplayProperty(java.lang.String $31) |
void |
setDisplayType(java.lang.Class $44) |
boolean |
setEditable(boolean b)
Sets the editable status of this form element.
|
void |
setElement(electric.xml.Element $42) |
void |
setFormat(java.lang.String s) |
void |
setFormatModel(boolean $45) |
void |
setHeaderRenderer(javax.swing.table.TableCellRenderer $51) |
void |
setJustification(java.lang.Integer $39) |
void |
setMeanEvaluationTimeMeasurements(int $54) |
void |
setMeanEvaluationTimeMicros(int $53) |
void |
setProperty(java.lang.String s) |
void |
setRenderer(javax.swing.table.TableCellRenderer $50) |
void |
setSort(int $40) |
void |
setSortLevel(int $41) |
void |
setStyle(java.lang.Integer $38) |
void |
setTitle(java.lang.String $34) |
void |
setToolTipFormat(java.lang.String $33) |
void |
setTotalEvaluationTimeMeasured(int $55) |
void |
setVAlign(java.lang.Integer $37) |
void |
setVirtual(boolean $48) |
void |
setWidth(java.lang.Integer $35) |
void |
setWidthArg(java.lang.String $36) |
void |
sync() |
java.lang.String |
toString() |
void |
triggerPrefetch(int row,
BO bo) |
boolean |
willCareForChildActions() |
boolean |
willCareForChildRefresh() |
equals, getClass, hashCode, notify, notifyAll, wait, wait, waitisLocaleSwitchingRelevant, isLocaleSwitchingRelevantgetAttributeaddBeanA, addBeanA, addHandleA, addHandleA, addHandleE, addHandleE, applyL10n, getAttribute, getAttribute, getBO, getCurrentLanguageCode, getCurrentLocale, getDefinitionErrorHandler, getElementConsideringIgnored, handleAttributes, handleElement, handleElements, handleElements, handleElements, handleElements, handleError, handleNewElement, handleNewElement, isIgnored, performAdditionalFormElementDefinitionChecks, showError, showError, toDebugNamepublic static final org.apache.log4j.Logger log
public static final int SORT_NEVER
public static final int SORT_NONE
public static final int SORT_ASC
public static final int SORT_DESC
public static final int CACHE_NEVER
public static final int CACHE_VERSION
public static final int CACHE_TXSAVE
public static final int RETURN_OBJECT
public static final int RETURN_TO_STRING
public static final int RETURN_FORMATTED_STRING
public static final int RETURN_BILD
public static final int RETURN_BIG_DECIMAL
public static final ConfigureInfo CONFIG
public static final java.util.regex.Pattern COLUMN_DSL
public static final java.lang.String EMPTY_STRING
public static final java.util.regex.Pattern NUM_WITH_UNIT_RE
public static final int MIN_MEASUREMENTS
public static final int MAX_MEASUREMENTS
public java.lang.String getName()
getName in interface FormElementIpublic java.lang.String getDebugName()
getDebugName in interface FormElementIpublic void close()
close in interface FormElementIpublic void configure(java.lang.String def,
FTableConfigurationI _conf,
int _index,
electric.xml.Element defDom)
public void configure(electric.xml.Element _element,
FTableConfigurationI _conf,
int _index)
public void postInit()
postInit in interface FormElementIpublic void handleRendererClassA(java.lang.String value)
public void handleHeaderRendererClassA(java.lang.String value)
public javax.swing.table.TableCellRenderer handleRendererClass(java.lang.String value)
public void handleScriptElement(electric.xml.Element el)
public AbstractScript getScript()
public void handleRendererE(electric.xml.Element _el)
public void handleHeaderRendererE(electric.xml.Element _el)
public void handleWidthA(java.lang.String value)
public java.lang.Integer getWidth()
public AttributeTypeI getAttributeType()
public boolean isSlow()
public boolean isSorting()
public void configureDefaultSorting(EntityI entity)
public boolean hasLocalizedAttribute()
SchemaLocaleAwareFormElementIThis check verifies if the attribute's type is compatible with
L10nedStringType, indicating that the value itself contains a translated text
which stems from another persistent attribute managing multiple translations (typically
of type L10nStringType).
hasLocalizedAttribute in interface SchemaLocaleAwareFormElementItrue if the attribute is an L10nedString; false otherwise.public void setCellBackground(java.awt.Color c)
public void setAlternateCellBackground(java.awt.Color c)
public java.awt.Color getCellBackground()
public java.awt.Color getAlternateCellBackground()
public void setCellForeground(java.awt.Color c)
public void setAlternateCellForeground(java.awt.Color c)
public java.awt.Color getCellForeground()
public java.awt.Color getAlternateCellForeground()
public void bumpIndexAfterPrepend()
public int getIndex()
public void handleStyleA(java.lang.String value)
public void handleJustificationA(java.lang.String value)
public void handleVAlignA(java.lang.String value)
public void handleSortA(java.lang.String value)
public void handleCachingA(java.lang.String a)
public boolean isCaching()
public void setDefaultJustification(java.lang.String just)
public void setProperty(java.lang.String s)
public void setFormat(java.lang.String s)
public void triggerPrefetch(int row,
BO bo)
public AnnotatedValue getAnnotatedValue(int row, BO bo, java.lang.Object nullValue, int maxMicrosToAsync)
public void delayedRefresh(de.ipcon.form.table.FTableColumn.CachedCell cc,
int row,
BO bo,
java.lang.Object nullValue)
public AnnotatedValue getValueFromObject(java.lang.Object o, java.lang.Object nullValue)
public void flushCaches()
public void evictCachedBOIds(java.lang.Long[] boIds)
public AnnotatedValue return_formattedString(java.lang.Object o)
o according to displayProperty.
Handles Map structures via createFormattedStringFromMap(), formats
scalar types via String.valueOf() and delegates BO instances to describe
via schema with displayFormat and contextual variables. Preserves the original
metadata flags of the resolved AnnotatedValue.
o - the source object (typically a BO) to extract the display value fromAnnotatedValue wrapping the formatted string representation or wrapping nullpublic AnnotatedValue return_Bild(java.lang.Object o)
public AnnotatedValue return_BigDecimal(java.lang.Object o)
public java.lang.String getToolTipText(java.lang.Object o)
public java.lang.String getValueAsString(java.lang.Object o)
o - the raw value to rendernull if o is nullpublic java.lang.String getValueAsString(java.lang.Object o,
boolean noCaching)
o - the raw value to rendernoCaching - if true, bypasses scalar render cache lookupsnull if o is nullpublic java.lang.String getValueAsString(java.lang.Object o,
boolean noCaching,
boolean usedFallback)
Handles BO descriptions with state/locale/fallback validation via CachedDescription,
and caches scalar conversions unless bypassed or disabled.
o - the raw cell value; may be nullnoCaching - if true, skips caching (e.g. during batch exports)usedFallback - whether the value was resolved via language fallbacknull if o is nullpublic java.lang.String getValueFromObjectAsString(java.lang.Object o)
o - the source row objectnull if unresolvedpublic java.lang.String getValueFromObjectAsString(java.lang.Object o,
boolean noCaching)
o - the source row objectnoCaching - if true, bypasses scalar cachingnull if unresolvedpublic java.lang.String getUnitText()
public javax.swing.table.TableCellRenderer getRenderer()
public java.lang.String toString()
toString in class java.lang.Objectpublic boolean setEditable(boolean b)
FormElementIThe return value is critical for the recursive application of the editable status within the form context (ftx). It ensures efficient iteration without redundancy by serving as the value passed down to child elements.
setEditable in interface FormElementIb - true to make the element editable; false otherwise.public boolean isEditable()
FormElementIisEditable in interface FormElementItrue if the element is editable; false otherwise.public void mdiOpen(MDIElementI me)
mdiOpen in interface FormElementIpublic void mdiClose(MDIElementI me)
mdiClose in interface FormElementIpublic void mdiActivate(MDIElementI me)
FormElementIThis method is called when the form element becomes the active, or currently selected, component in its MDI parent. Implementations should handle any necessary updates, refreshes, or setup that needs to occur when the element is brought into focus.
mdiActivate in interface FormElementIme - The MDIElementI that is being activated.public void mdiDeactivate(MDIElementI me)
FormElementIThis method is called when the form element is no longer the active component in its MDI parent. Implementations should handle any necessary cleanup, state saving, or resource release that needs to occur when the element loses focus.
mdiDeactivate in interface FormElementIme - The MDIElementI that is being deactivated.public boolean willCareForChildRefresh()
willCareForChildRefresh in interface FormElementIpublic boolean willCareForChildActions()
willCareForChildActions in interface FormElementIpublic boolean isGUIBuilt()
isGUIBuilt in interface FormElementIpublic void refresh()
refresh in interface FormElementIpublic void refresh(int from)
refresh in interface FormElementIpublic void postRefresh(int from)
postRefresh in interface FormElementIpublic void postRefresh()
public void sync()
sync in interface FormElementIpublic void beforeSave()
beforeSave in interface FormElementIpublic void afterSave()
afterSave in interface FormElementIpublic void beforeSetValue(java.lang.Object old,
java.lang.Object $new)
beforeSetValue in interface FormElementIpublic void afterSetValue(java.lang.Object old,
java.lang.Object $new)
afterSetValue in interface FormElementIpublic boolean isShown()
isShown in interface FormElementIpublic boolean isInputPossible()
isInputPossible in interface FormElementIpublic void requestFocus()
requestFocus in interface FormElementIpublic boolean isClosed()
isClosed in interface FormElementIpublic electric.xml.Element getConfRoot()
getConfRoot in interface FormElementIpublic FormElementI handleNewElement(electric.xml.Element e)
handleNewElement in interface FormElementIpublic FormContextI getFtx()
getFtx in interface FormElementIpublic ClientContextI getCtx()
getCtx in interface FormElementIpublic SchemaI getSchema()
getSchema in interface FormElementIpublic java.util.LinkedHashMap getActions()
getActions in interface FormElementIpublic java.util.LinkedHashMap getActionsOfKind(int kind)
getActionsOfKind in interface FormElementIpublic java.util.HashMap getElementMap()
getElementMap in interface FormElementIpublic java.util.HashMap<java.lang.String,MethodLocalizationWrapper> getAttributeMap()
getAttributeMap in interface FormElementIpublic void addFormElementListener(FormElementListenerI f)
addFormElementListener in interface FormElementIpublic void removeFormElementListener(FormElementListenerI f)
removeFormElementListener in interface FormElementIpublic java.lang.String getDisplayProperty()
getDisplayProperty in interface FormElementWithDisplayPropertyIpublic void setDisplayProperty(java.lang.String $31)
public java.lang.String getDisplayFormat()
public void setDisplayFormat(java.lang.String $32)
public java.lang.String getToolTipFormat()
public void setToolTipFormat(java.lang.String $33)
public java.lang.String getTitle()
public void setTitle(java.lang.String $34)
public void setWidth(java.lang.Integer $35)
public java.lang.String getWidthArg()
public void setWidthArg(java.lang.String $36)
public java.lang.Integer getVAlign()
public void setVAlign(java.lang.Integer $37)
public java.lang.Integer getStyle()
public void setStyle(java.lang.Integer $38)
public java.lang.Integer getJustification()
public void setJustification(java.lang.Integer $39)
public int getSort()
public void setSort(int $40)
public int getSortLevel()
public void setSortLevel(int $41)
public electric.xml.Element getElement()
public void setElement(electric.xml.Element $42)
public FTableConfigurationI getConf()
public void setConf(FTableConfigurationI $43)
public java.lang.Class getDisplayType()
public void setDisplayType(java.lang.Class $44)
public boolean isFormatModel()
public void setFormatModel(boolean $45)
public boolean isDebug()
isDebug in interface FormElementIpublic void setDebug(boolean $46)
public boolean isAsync()
public void setAsync(boolean $47)
public boolean isVirtual()
public void setVirtual(boolean $48)
public boolean isDeferredRendering()
public void setDeferredRendering(boolean $49)
public void setRenderer(javax.swing.table.TableCellRenderer $50)
public javax.swing.table.TableCellRenderer getHeaderRenderer()
public void setHeaderRenderer(javax.swing.table.TableCellRenderer $51)
public java.util.concurrent.ConcurrentSkipListMap getDelayedRefreshCache()
public void setDelayedRefreshCache(java.util.concurrent.ConcurrentSkipListMap $52)
public int getMeanEvaluationTimeMicros()
public void setMeanEvaluationTimeMicros(int $53)
public int getMeanEvaluationTimeMeasurements()
public void setMeanEvaluationTimeMeasurements(int $54)
public int getTotalEvaluationTimeMeasured()
public void setTotalEvaluationTimeMeasured(int $55)
Copyright © 2000-2026 OAshi S.à r.l. All Rights Reserved.