public abstract class OdsxPresentableElement extends FwkColumnAccess implements OdsxPresentableElementInterface, OdsxChangeListenerInterface
| Property Keyword | Datatype | Default | Description |
|---|---|---|---|
| OdsxATFFilter.Text.Create | String | OdsxATFFilter.Text.Create | Command text for the command that dumps to ATF. |
| OdsxPresentableElement.Command.Classes | colon seperated list of classnames. | null | Additional commands for each element. Each command can throw a RuntimeException if the element should not have the command. It is possible to define a constructor that receives directly the presentable element as controller. s.a. OdsxDumpMeasurementCommand |
,
Serialized FormFwkColumnAccess.FwkSubColumnAccessFwkInfoBusImmediateAccess.ElementConsumer| Modifier and Type | Field and Description |
|---|---|
protected java.util.HashMap |
beQueries
The map to store the base element queries.
|
protected java.awt.Color |
color
The display color of the object.
|
java.awt.Color |
DEFAULT_COLOR
The default color.
|
protected java.lang.Object |
defaultObject
The default object to be administrated.
|
protected OdsxFilterInterface |
odsFilter
The selector filter.
|
protected static java.lang.String |
SEPARATOR |
protected java.lang.Object |
value
The value object
|
static java.lang.String |
version
The revision number.
|
average, averageIsValid, columnName, CONSIDER_FLAGS, DESCRIPTION_COLUMN_NAME, icon, lower, minPositiveValue, observer, producer, range_lock, rangeIsValid, shortName, standardDeviation, standardDeviationIsValid, unit, upperchildren, properties, validchangeManager, suspendChangeManagersourceauthor, buildnr, className, company, copyright, creationDate, dateFormatString, description, eMail, FWK_ICON, FWK_ICON_ARRAY, FWK_ICON_BG, FWK_ICON_BG_ARRAY, FWK_ICON_BG_LARGE, FWK_ICON_BG_LARGE_ARRAY, FWK_ICON_LARGE, FWK_ICON_LARGE_ARRAY, ICON, iconCount, iconKey, internetAddress, name, titleNameAUTHOR, BUILDNR, COMPANY, COPYRIGHT, DATE_FORMAT, DEFAULT_ICON, DESCRIPTION, INTERNET, LARGE_ICON, LARGE_KEY_EXT, LARGE_OPAQUE_ICON, LARGE_OPAQUE_KEY_EXT, OPAQUE_ICON, OPAQUE_KEY_EXT, RCS_DATE_FORMAT, SUPPORT_EMAIL, TITLE_NAMEDATAARRAY_KEY, DEFINED_BIT, INVALID, NOT_MODIFIED_BIT, VALID, VALID_BIT, VISIBLE_BITINFOBUS_SOURCE| Modifier | Constructor and Description |
|---|---|
protected |
OdsxPresentableElement()
The constructor.
|
protected |
OdsxPresentableElement(java.lang.String value)
The constructor receiving a string object.
|
| Modifier and Type | Method and Description |
|---|---|
void |
delete(boolean flag)
Delete the element.
|
protected void |
finalize() |
java.lang.String |
getBaseName()
Get the base type identifier.
|
FwkCommandInterface[] |
getCommands()
Retrieve the command array.
|
int[] |
getDimensions()
Get the dimension of the item.
|
java.util.Vector<OdsxPresentableElementInterface> |
getElements()
Get the child elements of this element.
|
FwkIconInterface |
getIcon()
Return the icon of the column.
|
java.lang.String |
getIdentificationString()
Get the identification of the element.
|
java.lang.Object |
getItemByCoordinates(int[] coord)
Get the value by coordinates.
|
java.lang.String |
getODSVersion()
Get the ODS version of the element
|
OdsxFilterInterface |
getOdsxFilter()
Retrieve the filter of this element.
|
java.lang.String |
getPresentationString()
Retrieves the representation string.
|
java.lang.String |
getPresentationString(java.util.Locale l)
Retrieves the representation string.
|
java.lang.String |
getPresentationString(java.util.Locale locale,
OdsxFilterInterface filter)
Return the string representation of an application element.
|
void |
getPresentationString(java.io.Writer w,
java.lang.String spec,
java.util.Locale l,
OdsxFilterInterface f)
Print out the presentation into a writer.
|
java.util.Vector<OdsxPresentableElementInterface> |
getRelatedElements()
Get the related elements of this element.
|
ApplicationRelation[] |
getRelations()
Get the relation type to the given element.
|
ApplicationRelation[] |
getRelations(OdsxPresentableElementInterface elem)
Get the relation type to the given element.
|
AoSession |
getSession()
Get the root object of the element.
|
java.lang.String |
getShortName(int length)
Retrieves a short name from element.
|
java.lang.Object |
getValueAsObject()
Get the value as object.
|
java.lang.String |
getValueAsString()
Get the vale as string.
|
java.lang.String |
getVersion()
Return the version string of the FWK component.
|
boolean |
isTheSame(OdsxPresentableElementInterface elem)
Return a boolean whether the given element is the element as the incoming one.
|
boolean |
matchBaseElement(java.lang.String baseElementName)
Ask for base element instance.
|
void |
odsChanged(OdsxChangeEventInterface event)
Invoked when ods change.
|
void |
release()
Release the item.
|
void |
setItemByCoordinates(int[] coord,
java.lang.Object item)
Set a new value at the specified coordinate.
|
void |
setOdsxFilter(OdsxFilterInterface odsFilter)
Set the filter of this element.
|
void |
setValueAsObject(java.lang.Object value)
Set the value of the item.
|
javax.infobus.ArrayAccess |
subdivide(int[] start,
int[] end)
Subdivide the array.
|
java.lang.String |
toString()
Get the string presentation of the presentable.
|
boolean |
valueIsA(java.lang.Class clazz)
Return a boolean whether the value is a subclass of the given class.
|
createEmptyColumn, dependsOn, determineRange, getAverage, getAverageFlag, getColumnName, getCommands, getCount, getFlagAt, getFlags, getIndex, getIndexRange, getMaximum, getMinimum, getMinPositiveValue, getNativeDatatype, getNativeValues, getNativeValues, getProperty, getScale, getShortName, getStandardDeviation, getStandardDeviationFlag, getTransferData, getTransferDataFlavors, getUnitString, getValueAt, getValues, independentColumns, isDataFlavorSupported, isImplicit, isIndependent, main, reshape, setColumnName, setFlagAt, setFlags, setIndependent, setItemByCoordinates, setItemByCoordinates, setItemByCoordinates, setItemByCoordinates, setItemByCoordinates, setItemByCoordinates, setName, setScale, setValue, setValueAtaddChild, addChildListener, containsChild, fireChildAdded, fireChildRemoved, getAllChildren, getAllChildren, getChildren, getChildren, getChildrenCount, hasChildren, hasValidValues, isGroup, removeAllChildren, removeChild, removeChild, removeChildListener, setChildren, setProperty, setValidValuesaddDataItemChangeListener, fireItemAdded, fireItemDeleted, fireItemRevoked, fireItemValueChanged, getName, getPropertyGroup, getSource, isChangeManagerSuspended, removeDataItemChangeListener, setPropertyGroup, suspendChangeManageraddCommand, addCommand, addToGroup, addToGroup, addVetoableChangeListener, addVetoableChangeListener, clearCommands, commandsAvailable, compareTo, deleteGroup, destroyController, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, getAuthor, getBuild, getCommand, getCompany, getCompanyInternetAddress, getCopyright, getCreationDate, getCreationDate, getDateFormatString, getDescription, getFwkMimeTypes, getGroup, getIcon, getIconKey, getIconKey, getPersistentObjectNames, getSupportEMail, getTitle, getTitleName, getVetoableChangeArray, getVetoableChangeListenerArray, getVetoableChangeListenerArray, groupExists, removeCommand, removeFromGroup, removeVetoableChangeListener, removeVetoableChangeListener, setAuthor, setBuild, setCommands, setCompany, setCompanyInternetAddress, setCopyright, setCreationDate, setDateFormatString, setDescription, setDescriptor, setDescriptor, setIcon, setIcon, setIconKey, setIconKey, setSource, setSupportEMail, setTitleNameaddPropertyChangeListener, addPropertyChangeListener, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getPropertyChangeArray, getPropertyChangeListenerArray, getPropertyChangeListenerArray, isPropertyChangeEventSuspended, removePropertyChangeListener, removePropertyChangeListener, suspendPropertyChangeEventsgetClassName, lostOwnership, setClassName, setCreationDategetNiceVersionclone, equals, getClass, hashCode, notify, notifyAll, wait, wait, waitgetShortName, isValidgetName, hasValidValues, isGroup, setProperty, setValidValuesgetAuthor, getBuild, getClassName, getCompany, getCompanyInternetAddress, getCopyright, getCreationDate, getCreationDate, getDateFormatString, getDescription, getIcon, getIconKey, getIconKey, getSupportEMail, getTitle, getTitleName, setAuthor, setBuild, setClassName, setCompany, setCompanyInternetAddress, setCopyright, setCreationDate, setCreationDate, setDateFormatString, setDescription, setDescriptor, setIcon, setIcon, setIconKey, setIconKey, setName, setSupportEMail, setTitleNamegetTransferData, getTransferDataFlavors, isDataFlavorSupportedaddChild, addChildListener, containsChild, getAllChildren, getAllChildren, getChildren, getChildren, getChildrenCount, hasChildren, removeAllChildren, removeChild, removeChild, removeChildListener, setChildrenaddDataItemChangeListener, removeDataItemChangeListeneraddPropertyChangeListener, addPropertyChangeListener, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getPropertyChangeArray, getPropertyChangeListenerArray, getPropertyChangeListenerArray, isPropertyChangeEventSuspended, removePropertyChangeListener, removePropertyChangeListener, setSource, suspendPropertyChangeEventsaddCommand, addCommand, addToGroup, addToGroup, clearCommands, commandsAvailable, deleteGroup, getCommand, getGroup, groupExists, removeCommand, removeFromGroup, setCommandsisChangeManagerSuspended, suspendChangeManagergetPersistentObjectNamesdestroyControlleraddVetoableChangeListener, addVetoableChangeListener, getVetoableChangeArray, getVetoableChangeListenerArray, getVetoableChangeListenerArray, removeVetoableChangeListener, removeVetoableChangeListenerprotected static final java.lang.String SEPARATOR
public final java.awt.Color DEFAULT_COLOR
public static final java.lang.String version
protected java.lang.Object defaultObject
protected java.lang.Object value
protected OdsxFilterInterface odsFilter
protected java.awt.Color color
protected java.util.HashMap beQueries
protected OdsxPresentableElement()
protected OdsxPresentableElement(java.lang.String value)
public java.lang.String getVersion()
FwkInterfacegetVersion in interface FwkInterfacegetVersion in class FwkColumnAccessprotected void finalize()
throws java.lang.Throwable
finalize in class java.lang.Objectjava.lang.Throwablepublic boolean isTheSame(OdsxPresentableElementInterface elem)
isTheSame in interface OdsxPresentableElementInterfaceelem - The element to be compared topublic void setOdsxFilter(OdsxFilterInterface odsFilter)
setOdsxFilter in interface OdsxPresentableElementInterfaceodsFilter - the filter.public OdsxFilterInterface getOdsxFilter()
getOdsxFilter in interface OdsxPresentableElementInterfacepublic java.lang.String getBaseName()
getBaseName in interface OdsxPresentableElementInterfacepublic FwkIconInterface getIcon()
getIcon in interface FwkDescriptionInterfacegetIcon in class FwkPersistenceFwkPersistence.setIcon(FwkIconInterface)public java.lang.String getValueAsString()
getValueAsString in interface javax.infobus.ImmediateAccessgetValueAsString in class FwkColumnAccesspublic java.lang.Object getItemByCoordinates(int[] coord)
getItemByCoordinates in interface javax.infobus.ArrayAccessgetItemByCoordinates in class FwkColumnAccesscoord - The coordinates of the values to be returned.public int[] getDimensions()
getDimensions in interface javax.infobus.ArrayAccessgetDimensions in class FwkColumnAccesspublic javax.infobus.ArrayAccess subdivide(int[] start,
int[] end)
subdivide in interface javax.infobus.ArrayAccesssubdivide in class FwkColumnAccessstart - The starting coordinates.end - The starting coordinates.public void setItemByCoordinates(int[] coord,
java.lang.Object item)
throws FwkException
setItemByCoordinates in interface javax.infobus.ArrayAccesssetItemByCoordinates in class FwkColumnAccesscoord - The coordinates where the new value should be placed.value - The new value.FwkExceptionpublic void setValueAsObject(java.lang.Object value)
throws FwkException
setValueAsObject in interface OdsxPresentableElementInterfacevalue - the new value.FwkExceptionpublic java.lang.Object getValueAsObject()
getValueAsObject in interface OdsxPresentableElementInterfacegetValueAsObject in interface javax.infobus.ImmediateAccessgetValueAsObject in class FwkColumnAccesspublic java.lang.String getPresentationString()
getPresentationString in interface FwkDescriptionInterfacegetPresentationString in interface FwkPresentationInterfacegetPresentationString in class FwkDescriptionpublic java.lang.String getPresentationString(java.util.Locale l)
getPresentationString in interface FwkDescriptionInterfacegetPresentationString in interface FwkPresentationInterfacegetPresentationString in interface javax.infobus.ImmediateAccessgetPresentationString in class FwkColumnAccessl - The Locale object or null.f - An ODSFilterInterface object.public java.lang.String getPresentationString(java.util.Locale locale,
OdsxFilterInterface filter)
getPresentationString in interface OdsxPresentableElementInterfaceae - The application element to be added.locale - The locale.public java.lang.String getODSVersion()
getODSVersion in interface OdsxPresentableElementInterfacepublic java.lang.String toString()
toString in class FwkColumnAccesspublic void getPresentationString(java.io.Writer w,
java.lang.String spec,
java.util.Locale l,
OdsxFilterInterface f)
throws java.io.IOException
getPresentationString in interface OdsxPresentableElementInterfacew - The writer.spec - This string allows the caller to specify the kind of output.
This implementation does not pay attention on this value.
Overwrite this method to evaluate it.l - The Locale object or null.f - An ODSFilterInterface object.java.io.IOExceptionpublic java.util.Vector<OdsxPresentableElementInterface> getElements()
getElements in interface OdsxPresentableElementInterfacepublic java.util.Vector<OdsxPresentableElementInterface> getRelatedElements()
getRelatedElements in interface OdsxPresentableElementInterfacepublic ApplicationRelation[] getRelations()
getRelations in interface OdsxPresentableElementInterfacepublic AoSession getSession()
getSession in interface OdsxPresentableElementInterfacepublic ApplicationRelation[] getRelations(OdsxPresentableElementInterface elem)
getRelations in interface OdsxPresentableElementInterfaceelem - The element to that the relation should be determined.public java.lang.String getShortName(int length)
getShortName in interface OdsxPresentableElementInterfacelength - the maximum length of the name.public java.lang.String getIdentificationString()
getIdentificationString in interface OdsxPresentableElementInterfacepublic FwkCommandInterface[] getCommands()
getCommands in interface FwkInstructionInterfacegetCommands in class FwkPersistencepublic void delete(boolean flag)
delete in interface OdsxPresentableElementInterfaceflag - true if the element should be deleted with references.public boolean matchBaseElement(java.lang.String baseElementName)
matchBaseElement in interface OdsxPresentableElementInterfacepublic boolean valueIsA(java.lang.Class clazz)
valueIsA in interface OdsxPresentableElementInterfaceclazz - The class to be implemented by the value.public void release()
release in interface FwkColumnDataObserverInterfacerelease in interface FwkInterfacerelease in interface javax.infobus.DataItemrelease in class FwkColumnAccesspublic void odsChanged(OdsxChangeEventInterface event)
odsChanged in interface OdsxChangeListenerInterfaceevent - the change event.