public class P2DTextModel extends P2DComponentModel implements P2DTextModelInterface
| Modifier and Type | Field and Description |
|---|---|
protected float |
alignment
The alignment value.
|
protected P2DAttributorInterface |
attributor
The attributor.
|
static int |
HEIGHT
The text area height.
|
protected FwkArrayInterface |
text
The test string of the object.
|
static java.lang.String |
TEXT_AREA_IDENT
The keyword of the pane hashtable and the command ident string.
|
static java.lang.String |
TEXT_TEXT_KEY
The property keyword for the popupmneu text menuitem text and pane title.
|
static java.lang.String |
TEXT_TOOLTIP_KEY
The property keyword for the color pane tooltip.
|
static java.lang.String |
version |
static int |
WIDTH
The text area width.
|
appearance, background, BACKGROUND_COLOR_IDENT, BACKGROUND_COLOR_TEXT_KEY, BACKGROUND_COLOR_TOOLTIP_KEY, BACKGROUND_VISIBLE_TEXT_KEY, boundingBox, COLOR_IDENT, COLOR_TEXT_KEY, COLOR_TOOLTIP_KEY, containerMap, decorated, FONT_IDENT, FONT_TEXT_KEY, FONT_TOOLTIP_KEY, frame, FRAME_COLOR_IDENT, FRAME_COLOR_TEXT_KEY, FRAME_COLOR_TOOLTIP_KEY, internalMouseListenerActive, PROPERTIES_TEXT_KEY, ratioFix, staticPanes, VISIBLE_TEXT_KEYinfoBusMemberSupportchangeManager, properties, 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, ICON, iconCount, iconKey, internetAddress, name, titleNameINFOBUS_SOURCEAUTHOR, 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| Constructor and Description |
|---|
P2DTextModel() |
| Modifier and Type | Method and Description |
|---|---|
protected java.util.HashMap |
createDialogPanes(P2DComponentInterface component)
Create the static dialogpanes for components.
|
float |
getAlignment(P2DTextInterface component)
Get the alignment value.
|
FwkArrayInterface |
getAttributedText(P2DTextInterface component)
Get the attributed string of the text.
|
P2DAttributorInterface |
getAttributor(P2DComponentInterface component)
Get the title attributor.
|
FwkCommandInterface[] |
getCommands(P2DComponentInterface component)
Get the commands of the component.
|
java.util.HashMap |
getDialogPanes(P2DComponentInterface component)
Retrieves the property dialog panes in a hashtable.
|
java.util.HashMap |
getDialogPaneValues(P2DComponentInterface component)
Retrieves the property dialog pane values.
|
java.lang.String |
getLine(P2DTextInterface component,
int index)
Retrieves a line according to the specified index.
|
int |
getSize(P2DTextInterface component)
Retrieves the sioze of the array.
|
java.lang.String |
getText(P2DTextInterface component)
Retrievs the text array of the object.
|
FwkArrayInterface |
getTextArray(P2DTextInterface component)
Retrievs the text array of the object.
|
void |
initialize()
Initialize the model.
|
void |
release()
Release object.
|
void |
setAlignment(P2DTextInterface component,
float ali)
Set the alignment of the text.
|
void |
setAttributor(P2DComponentInterface component,
P2DAttributorInterface attributor)
Set the title attributor.
|
void |
setDialogPaneValues(P2DComponentInterface component,
java.util.HashMap values)
Sets the property dialog pane values for the component.
|
void |
setText(P2DTextInterface component,
java.lang.String t)
Sets the text of the object.
|
void |
setTextArray(P2DTextInterface component,
FwkArrayInterface arr)
Sets the text array of the object.
|
addDialogPane, boundsAcceptable, calculateBoundingBoxRelativeTo, closestIntersection, configure, contains, contains, containsAllChildren, containsAllChildren, frameHasHandles, getActive, getActiveHandle, getAllArmedComponents, getAllArmedComponents, getAppearance, getArea, getBackground, getBackgroundColor, getBackgroundTransparency, getBackgroundVisible, getBoundingBox, getChild, getChild, getClip, getColor, getContainerMap, getDashArray, getDashPhase, getDecorated, getDialogPane, getDialogPaneValue, getEndCap, getFill, getFont, getFrame, getFrameColor, getFrameHandlesVisible, getFrameLinesVisible, getFrameTransparency, getFrameVisible, getHeight, getInverseTransform, getLineJoin, getLineWidth, getLower, getLower, getMiterLimit, getRatioFix, getRectangle, getScaledHeight, getScaledLower, getScaledLower, getScaledUpper, getScaledUpper, getScaledWidth, getShortName, getStroke, getTransform, getTransform, getTranslation, getTransparency, getUpper, getUpper, getVersion, getVisible, getWidth, getXFactor, getXOffset, getYFactor, getYOffset, hasActiveChild, install, intersects, intersects, intersects, intersects, inverseTransformPoint, isInside, isInside, isInside, isInternalMouseListenerActive, isVisible, move, registerContainer, release, removeDialogPane, resetActiveHandle, revalidate, scaleStroke, scaleStroke, setActive, setActiveHandle, setAppearance, setBackgroundColor, setBackgroundTransparency, setBackgroundVisible, setBoundingBox, setClip, setClip, setColor, setContainerMap, setDashArray, setDashPhase, setDecorated, setEndCap, setFill, setFont, setFrameColor, setFrameHandlesVisible, setFrameLinesVisible, setFrameTransparency, setFrameVisible, setHeight, setInternalMouseListenerActive, setLineJoin, setLineWidth, setLower, setMiterLimit, setOffset, setRatioFix, setScale, setStroke, setTransform, setTransform, setTranslation, setTransparency, setUpper, setVisible, setWidth, setXScale, setYScale, transformPoint, transformPoint, uninstall, unregisterContaineraddInfoBusPropertyListener, addInfoBusVetoableListener, finalize, getInfoBus, getInfoBusName, getMemberName, isConnected, joinInfoBus, removeInfoBusPropertyListener, removeInfoBusVetoableListener, setInfoBus, setInfoBusName, setMemberName, setNameaddDataItemChangeListener, fireItemAdded, fireItemDeleted, fireItemRevoked, fireItemValueChanged, getName, getProperty, getPropertyGroup, getSource, isChangeManagerSuspended, removeDataItemChangeListener, setProperty, setPropertyGroup, suspendChangeManageraddCommand, addCommand, addToGroup, addToGroup, addVetoableChangeListener, addVetoableChangeListener, clearCommands, commandsAvailable, compareTo, deleteGroup, destroyController, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, getAuthor, getBuild, getCommand, getCommands, getCommands, getCompany, getCompanyInternetAddress, getCopyright, getCreationDate, getCreationDate, getDateFormatString, getDescription, getFwkMimeTypes, getGroup, getIcon, 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, getPresentationString, getPresentationString, getTransferData, getTransferDataFlavors, isDataFlavorSupported, lostOwnership, setClassName, setCreationDate, toStringgetNiceVersionclone, equals, getClass, hashCode, notify, notifyAll, wait, wait, waitaddDialogPane, boundsAcceptable, calculateBoundingBoxRelativeTo, configure, containsAllChildren, containsAllChildren, frameHasHandles, getActive, getActiveHandle, getAllArmedComponents, getAllArmedComponents, getAppearance, getBackground, getBackgroundColor, getBackgroundTransparency, getBackgroundVisible, getBoundingBox, getChild, getChild, getContainerMap, getDecorated, getDialogPane, getDialogPaneValue, getFrame, getFrameColor, getFrameHandlesVisible, getFrameLinesVisible, getFrameTransparency, getFrameVisible, getHeight, getRatioFix, getShortName, getTransform, getWidth, hasActiveChild, install, isInside, isInside, isInternalMouseListenerActive, registerContainer, removeDialogPane, resetActiveHandle, revalidate, scaleStroke, scaleStroke, setActive, setActiveHandle, setAppearance, setBackgroundColor, setBackgroundTransparency, setBackgroundVisible, setBoundingBox, setContainerMap, setDecorated, setFrameColor, setFrameHandlesVisible, setFrameLinesVisible, setFrameTransparency, setFrameVisible, setInternalMouseListenerActive, setRatioFix, setTransform, transformPoint, transformPoint, uninstall, unregisterContainergetInfoBusName, getMemberName, isConnected, setInfoBusName, setMemberNamefireItemAdded, fireItemDeleted, fireItemRevoked, fireItemValueChanged, getProperty, getPropertyGroup, setProperty, setPropertyGroup, suspendChangeManagergetCommands, getPersistentObjectNamesdestroyControlleraddPropertyChangeListener, addPropertyChangeListener, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getPropertyChangeArray, getPropertyChangeListenerArray, getPropertyChangeListenerArray, isPropertyChangeEventSuspended, removePropertyChangeListener, removePropertyChangeListener, setSource, suspendPropertyChangeEventsaddVetoableChangeListener, addVetoableChangeListener, getVetoableChangeArray, getVetoableChangeListenerArray, getVetoableChangeListenerArray, removeVetoableChangeListener, removeVetoableChangeListenergetAuthor, getBuild, getClassName, getCompany, getCompanyInternetAddress, getCopyright, getCreationDate, getCreationDate, getDateFormatString, getDescription, getIcon, getIcon, getIconKey, getIconKey, getName, getPresentationString, getPresentationString, getSupportEMail, getTitle, getTitleName, setAuthor, setBuild, setClassName, setCompany, setCompanyInternetAddress, setCopyright, setCreationDate, setCreationDate, setDateFormatString, setDescription, setDescriptor, setIcon, setIcon, setIconKey, setIconKey, setName, setSupportEMail, setTitleNamegetTransferData, getTransferDataFlavors, isDataFlavorSupportedaddCommand, addCommand, addToGroup, addToGroup, clearCommands, commandsAvailable, deleteGroup, getCommand, getCommands, getGroup, groupExists, removeCommand, removeFromGroup, setCommandsgetPresentationString, getPresentationStringgetVersionpublic static final java.lang.String version
public static final java.lang.String TEXT_TEXT_KEY
public static final java.lang.String TEXT_TOOLTIP_KEY
public static final java.lang.String TEXT_AREA_IDENT
public static final int WIDTH
public static final int HEIGHT
protected FwkArrayInterface text
protected float alignment
protected P2DAttributorInterface attributor
public void initialize()
initialize in interface P2DModelInterfaceinitialize in class P2DComponentModelpublic void release()
release in interface FwkInterfacerelease in interface javax.infobus.DataItemrelease in class P2DComponentModelpublic void setText(P2DTextInterface component, java.lang.String t)
setText in interface P2DTextModelInterfacet - The new text of the object.public void setTextArray(P2DTextInterface component, FwkArrayInterface arr)
setTextArray in interface P2DTextModelInterfacearr - The new text array of the object.public java.lang.String getText(P2DTextInterface component)
getText in interface P2DTextModelInterfacepublic int getSize(P2DTextInterface component)
getSize in interface P2DTextModelInterfacepublic java.lang.String getLine(P2DTextInterface component, int index)
getLine in interface P2DTextModelInterfaceindex - The line number to be retireved.public FwkArrayInterface getTextArray(P2DTextInterface component)
getTextArray in interface P2DTextModelInterfacepublic FwkArrayInterface getAttributedText(P2DTextInterface component)
getAttributedText in interface P2DTextModelInterfacepublic void setAlignment(P2DTextInterface component, float ali)
setAlignment in interface P2DTextModelInterfaceali - The alignment value. 0 mean left and 1 is rigth aligned,public float getAlignment(P2DTextInterface component)
getAlignment in interface P2DTextModelInterfaceprotected java.util.HashMap createDialogPanes(P2DComponentInterface component)
createDialogPanes in class P2DComponentModelpublic java.util.HashMap getDialogPaneValues(P2DComponentInterface component)
getDialogPaneValues in interface P2DModelInterfacegetDialogPaneValues in class P2DComponentModelcomponent - The component that belongs to that model.public void setDialogPaneValues(P2DComponentInterface component, java.util.HashMap values)
setDialogPaneValues in interface P2DModelInterfacesetDialogPaneValues in class P2DComponentModelvalues - The hashtable with ident/value pairs.component - The component that belongs to that model.public java.util.HashMap getDialogPanes(P2DComponentInterface component)
getDialogPanes in interface P2DModelInterfacegetDialogPanes in class P2DComponentModelcomponent - The component that belongs to that model.public FwkCommandInterface[] getCommands(P2DComponentInterface component)
getCommands in interface P2DModelInterfacegetCommands in class P2DComponentModelcomponent - The component that belongs to that model.public void setAttributor(P2DComponentInterface component, P2DAttributorInterface attributor)
setAttributor in interface P2DTextModelInterfaceattributor - The title attributorpublic P2DAttributorInterface getAttributor(P2DComponentInterface component)
getAttributor in interface P2DTextModelInterface