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.FwkSubColumnAccess
FwkInfoBusImmediateAccess.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, upper
children, properties, valid
changeManager, suspendChangeManager
source
author, 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, titleName
AUTHOR, 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_NAME
DATAARRAY_KEY, DEFINED_BIT, INVALID, NOT_MODIFIED_BIT, VALID, VALID_BIT, VISIBLE_BIT
INFOBUS_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, setValueAt
addChild, addChildListener, containsChild, fireChildAdded, fireChildRemoved, getAllChildren, getAllChildren, getChildren, getChildren, getChildrenCount, hasChildren, hasValidValues, isGroup, removeAllChildren, removeChild, removeChild, removeChildListener, setChildren, setProperty, setValidValues
addDataItemChangeListener, fireItemAdded, fireItemDeleted, fireItemRevoked, fireItemValueChanged, getName, getPropertyGroup, getSource, isChangeManagerSuspended, removeDataItemChangeListener, setPropertyGroup, suspendChangeManager
addCommand, 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, setTitleName
addPropertyChangeListener, addPropertyChangeListener, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getPropertyChangeArray, getPropertyChangeListenerArray, getPropertyChangeListenerArray, isPropertyChangeEventSuspended, removePropertyChangeListener, removePropertyChangeListener, suspendPropertyChangeEvents
getClassName, lostOwnership, setClassName, setCreationDate
getNiceVersion
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
getShortName, isValid
getName, hasValidValues, isGroup, setProperty, setValidValues
getAuthor, 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, setTitleName
getTransferData, getTransferDataFlavors, isDataFlavorSupported
addChild, addChildListener, containsChild, getAllChildren, getAllChildren, getChildren, getChildren, getChildrenCount, hasChildren, removeAllChildren, removeChild, removeChild, removeChildListener, setChildren
addDataItemChangeListener, removeDataItemChangeListener
addPropertyChangeListener, addPropertyChangeListener, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getPropertyChangeArray, getPropertyChangeListenerArray, getPropertyChangeListenerArray, isPropertyChangeEventSuspended, removePropertyChangeListener, removePropertyChangeListener, setSource, suspendPropertyChangeEvents
addCommand, addCommand, addToGroup, addToGroup, clearCommands, commandsAvailable, deleteGroup, getCommand, getGroup, groupExists, removeCommand, removeFromGroup, setCommands
isChangeManagerSuspended, suspendChangeManager
getPersistentObjectNames
destroyController
addVetoableChangeListener, addVetoableChangeListener, getVetoableChangeArray, getVetoableChangeListenerArray, getVetoableChangeListenerArray, removeVetoableChangeListener, removeVetoableChangeListener
protected 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()
FwkInterface
getVersion
in interface FwkInterface
getVersion
in class FwkColumnAccess
protected void finalize() throws java.lang.Throwable
finalize
in class java.lang.Object
java.lang.Throwable
public boolean isTheSame(OdsxPresentableElementInterface elem)
isTheSame
in interface OdsxPresentableElementInterface
elem
- The element to be compared topublic void setOdsxFilter(OdsxFilterInterface odsFilter)
setOdsxFilter
in interface OdsxPresentableElementInterface
odsFilter
- the filter.public OdsxFilterInterface getOdsxFilter()
getOdsxFilter
in interface OdsxPresentableElementInterface
public java.lang.String getBaseName()
getBaseName
in interface OdsxPresentableElementInterface
public FwkIconInterface getIcon()
getIcon
in interface FwkDescriptionInterface
getIcon
in class FwkPersistence
FwkPersistence.setIcon(FwkIconInterface)
public java.lang.String getValueAsString()
getValueAsString
in interface javax.infobus.ImmediateAccess
getValueAsString
in class FwkColumnAccess
public java.lang.Object getItemByCoordinates(int[] coord)
getItemByCoordinates
in interface javax.infobus.ArrayAccess
getItemByCoordinates
in class FwkColumnAccess
coord
- The coordinates of the values to be returned.public int[] getDimensions()
getDimensions
in interface javax.infobus.ArrayAccess
getDimensions
in class FwkColumnAccess
public javax.infobus.ArrayAccess subdivide(int[] start, int[] end)
subdivide
in interface javax.infobus.ArrayAccess
subdivide
in class FwkColumnAccess
start
- The starting coordinates.end
- The starting coordinates.public void setItemByCoordinates(int[] coord, java.lang.Object item) throws FwkException
setItemByCoordinates
in interface javax.infobus.ArrayAccess
setItemByCoordinates
in class FwkColumnAccess
coord
- The coordinates where the new value should be placed.value
- The new value.FwkException
public void setValueAsObject(java.lang.Object value) throws FwkException
setValueAsObject
in interface OdsxPresentableElementInterface
value
- the new value.FwkException
public java.lang.Object getValueAsObject()
getValueAsObject
in interface OdsxPresentableElementInterface
getValueAsObject
in interface javax.infobus.ImmediateAccess
getValueAsObject
in class FwkColumnAccess
public java.lang.String getPresentationString()
getPresentationString
in interface FwkDescriptionInterface
getPresentationString
in interface FwkPresentationInterface
getPresentationString
in class FwkDescription
public java.lang.String getPresentationString(java.util.Locale l)
getPresentationString
in interface FwkDescriptionInterface
getPresentationString
in interface FwkPresentationInterface
getPresentationString
in interface javax.infobus.ImmediateAccess
getPresentationString
in class FwkColumnAccess
l
- The Locale object or null.f
- An ODSFilterInterface object.public java.lang.String getPresentationString(java.util.Locale locale, OdsxFilterInterface filter)
getPresentationString
in interface OdsxPresentableElementInterface
ae
- The application element to be added.locale
- The locale.public java.lang.String getODSVersion()
getODSVersion
in interface OdsxPresentableElementInterface
public java.lang.String toString()
toString
in class FwkColumnAccess
public void getPresentationString(java.io.Writer w, java.lang.String spec, java.util.Locale l, OdsxFilterInterface f) throws java.io.IOException
getPresentationString
in interface OdsxPresentableElementInterface
w
- 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.IOException
public java.util.Vector<OdsxPresentableElementInterface> getElements()
getElements
in interface OdsxPresentableElementInterface
public java.util.Vector<OdsxPresentableElementInterface> getRelatedElements()
getRelatedElements
in interface OdsxPresentableElementInterface
public ApplicationRelation[] getRelations()
getRelations
in interface OdsxPresentableElementInterface
public AoSession getSession()
getSession
in interface OdsxPresentableElementInterface
public ApplicationRelation[] getRelations(OdsxPresentableElementInterface elem)
getRelations
in interface OdsxPresentableElementInterface
elem
- The element to that the relation should be determined.public java.lang.String getShortName(int length)
getShortName
in interface OdsxPresentableElementInterface
length
- the maximum length of the name.public java.lang.String getIdentificationString()
getIdentificationString
in interface OdsxPresentableElementInterface
public FwkCommandInterface[] getCommands()
getCommands
in interface FwkInstructionInterface
getCommands
in class FwkPersistence
public void delete(boolean flag)
delete
in interface OdsxPresentableElementInterface
flag
- true if the element should be deleted with references.public boolean matchBaseElement(java.lang.String baseElementName)
matchBaseElement
in interface OdsxPresentableElementInterface
public boolean valueIsA(java.lang.Class clazz)
valueIsA
in interface OdsxPresentableElementInterface
clazz
- The class to be implemented by the value.public void release()
release
in interface FwkColumnDataObserverInterface
release
in interface FwkInterface
release
in interface javax.infobus.DataItem
release
in class FwkColumnAccess
public void odsChanged(OdsxChangeEventInterface event)
odsChanged
in interface OdsxChangeListenerInterface
event
- the change event.