Package com.cosylab.vdct.vdb
Class VDBPort
- java.lang.Object
-
- com.cosylab.vdct.vdb.VDBPort
-
- All Implemented Interfaces:
Descriptable,LinkSource,ChangableVisibility,InspectableProperty
public class VDBPort extends Object implements InspectableProperty, Descriptable, ChangableVisibility, LinkSource
RO property of port represented on HL (template instance is parent)- Author:
- Matej
-
-
Field Summary
Fields Modifier and Type Field Description protected Stringcommentprotected static StringdefaultDescriptionprotected Stringdescriptionprotected Stringnameprotected Stringtargetprotected intvisibilityprotected PortvisibleObject-
Fields inherited from interface com.cosylab.vdct.inspector.InspectableProperty
ALWAYS_VISIBLE, NEVER_VISIBLE, NON_DEFAULT_VISIBLE, UNDEFINED_VISIBILITY
-
-
Constructor Summary
Constructors Constructor Description VDBPort(VDBTemplate template, DBPort port)Insert the method's description here.VDBPort(VDBTemplate template, String name, String target, String description)Insert the method's description here.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanallowsOtherValues()Insert the method's description here.StringcheckValueValidity(String value)Returns null if this value is valid, else the error message.StringgetComment()Returns the comment.StringgetDescription()Sets the target.PatterngetEditPattern()Insert the method's description here.StringgetFullName()Returns the name.IntegergetGuiGroup()Returns the gui group index as an Integer or null if no gui group info available.StringgetHelp()Insert the method's description here.StringgetInitValue()Insert the method's description here.StringgetName()Returns the name.StringgetPortDefinition(String templateInstanceName)Returns port nameStringgetRealDescription()Returns the description.String[]getSelectableValues()Insert the method's description here.StringgetTarget()Returns the target.VDBTemplategetTemplate()Returns the template.StringgetToolTipText()Insert the method's description here.intgetType()Returns type of the source (INPUT, OUTPUT, FORWARD, PORT or MACRO).StringgetValue()Insert the method's description here.intgetVisibility()Insert the method's description here.PortgetVisibleObject()Returns the visibleObject.booleanhasDefaultValue()booleanhasValidity()booleanisEditable()Insert the method's description here.booleanisSeparator()Insert the method's description here.booleanisValid()Insert the method's description here.voidpopupEvent(Component component, int x, int y)Insert the method's description here.voidsetComment(String comment)Sets the comment.voidsetDescription(String description)Sets the description.voidsetName(String name)Sets the name.voidsetTemplate(VDBTemplate template)Sets the template.voidsetValue(String value)Insert the method's description here.voidsetValueSilently(String newValue)Insert the method's description here.voidsetVisibility(int visibility)Insert the method's description here.voidsetVisibleObject(Port visibleObject)Sets the visibleObject.
-
-
-
Constructor Detail
-
VDBPort
public VDBPort(VDBTemplate template, DBPort port)
Insert the method's description here.- Parameters:
template- templateport- port
-
VDBPort
public VDBPort(VDBTemplate template, String name, String target, String description)
Insert the method's description here.- Parameters:
template- templatetarget- targetname- namedescription- description
-
-
Method Detail
-
getName
public String getName()
Returns the name.- Specified by:
getNamein interfaceInspectableProperty- Returns:
- String
-
getFullName
public String getFullName()
Returns the name.- Specified by:
getFullNamein interfaceLinkSource- Returns:
- String
-
getTarget
public String getTarget()
Returns the target.- Returns:
- String
-
setName
public void setName(String name)
Sets the name.- Parameters:
name- The name to set
-
getDescription
public String getDescription()
Sets the target.- Specified by:
getDescriptionin interfaceDescriptable- Returns:
- java.lang.String
-
getRealDescription
public String getRealDescription()
Returns the description.- Returns:
- String
-
setDescription
public void setDescription(String description)
Sets the description.- Specified by:
setDescriptionin interfaceDescriptable- Parameters:
description- The description to set
-
getPortDefinition
public String getPortDefinition(String templateInstanceName)
Returns port name- Parameters:
templateInstanceName- The name of the template instance- Returns:
- something
-
getComment
public String getComment()
Returns the comment.- Returns:
- String
-
setComment
public void setComment(String comment)
Sets the comment.- Parameters:
comment- The comment to set
-
allowsOtherValues
public boolean allowsOtherValues()
Description copied from interface:InspectablePropertyInsert the method's description here. Creation date: (11.1.2001 21:34:58)- Specified by:
allowsOtherValuesin interfaceInspectableProperty- Returns:
- boolean
- See Also:
InspectableProperty.allowsOtherValues()
-
getEditPattern
public Pattern getEditPattern()
Description copied from interface:InspectablePropertyInsert the method's description here. Creation date: (11.1.2001 21:30:04)- Specified by:
getEditPatternin interfaceInspectableProperty- Returns:
- java.lang.String
- See Also:
InspectableProperty.getEditPattern()
-
getHelp
public String getHelp()
Description copied from interface:InspectablePropertyInsert the method's description here. Creation date: (26.1.2001 15:01:28)- Specified by:
getHelpin interfaceInspectableProperty- Returns:
- java.lang.String
- See Also:
InspectableProperty.getHelp()
-
getInitValue
public String getInitValue()
Description copied from interface:InspectablePropertyInsert the method's description here. Creation date: (11.1.2001 21:29:48)- Specified by:
getInitValuein interfaceInspectableProperty- Returns:
- java.lang.String
- See Also:
InspectableProperty.getInitValue()
-
getSelectableValues
public String[] getSelectableValues()
Description copied from interface:InspectablePropertyInsert the method's description here. Creation date: (11.1.2001 21:36:10)- Specified by:
getSelectableValuesin interfaceInspectableProperty- Returns:
- java.lang.String[]
- See Also:
InspectableProperty.getSelectableValues()
-
getToolTipText
public String getToolTipText()
Description copied from interface:InspectablePropertyInsert the method's description here. Creation date: (11.1.2001 21:30:04)- Specified by:
getToolTipTextin interfaceInspectableProperty- Returns:
- java.lang.String
- See Also:
InspectableProperty.getToolTipText()
-
getValue
public String getValue()
Description copied from interface:InspectablePropertyInsert the method's description here. Creation date: (11.1.2001 21:29:48)- Specified by:
getValuein interfaceInspectableProperty- Specified by:
getValuein interfaceLinkSource- Returns:
- java.lang.String
- See Also:
InspectableProperty.getValue()
-
getVisibility
public int getVisibility()
Description copied from interface:InspectablePropertyInsert the method's description here. Creation date: (11.1.2001 21:30:04)- Specified by:
getVisibilityin interfaceInspectableProperty- Returns:
- int
- See Also:
InspectableProperty.getVisibility()
-
isEditable
public boolean isEditable()
Description copied from interface:InspectablePropertyInsert the method's description here. Creation date: (11.1.2001 21:28:51)- Specified by:
isEditablein interfaceInspectableProperty- Returns:
- boolean
- See Also:
InspectableProperty.isEditable()
-
isSeparator
public boolean isSeparator()
Description copied from interface:InspectablePropertyInsert the method's description here. Creation date: (11.1.2001 21:44:32)- Specified by:
isSeparatorin interfaceInspectableProperty- Returns:
- boolean
- See Also:
InspectableProperty.isSeparator()
-
isValid
public boolean isValid()
Description copied from interface:InspectablePropertyInsert the method's description here. Creation date: (11.1.2001 21:28:51)- Specified by:
isValidin interfaceInspectableProperty- Returns:
- boolean
- See Also:
InspectableProperty.isValid()
-
popupEvent
public void popupEvent(Component component, int x, int y)
Description copied from interface:InspectablePropertyInsert the method's description here. Creation date: (11.1.2001 21:30:04)- Specified by:
popupEventin interfaceInspectableProperty- Parameters:
component- java.awt.Componentx- xy- y- See Also:
InspectableProperty.popupEvent(Component, int, int)
-
setValueSilently
public void setValueSilently(String newValue)
Insert the method's description here. Creation date: (9.12.2000 18:11:46)- Specified by:
setValueSilentlyin interfaceLinkSource- Parameters:
newValue- java.lang.String
-
setValue
public void setValue(String value)
Description copied from interface:InspectablePropertyInsert the method's description here. Creation date: (11.1.2001 21:30:04)- Specified by:
setValuein interfaceInspectableProperty- Specified by:
setValuein interfaceLinkSource- Parameters:
value- java.lang.String- See Also:
InspectableProperty.setValue(String)
-
getTemplate
public VDBTemplate getTemplate()
Returns the template.- Returns:
- VDBTemplate
-
setTemplate
public void setTemplate(VDBTemplate template)
Sets the template.- Parameters:
template- The template to set
-
setVisibility
public void setVisibility(int visibility)
Description copied from interface:ChangableVisibilityInsert the method's description here.- Specified by:
setVisibilityin interfaceChangableVisibility- Parameters:
visibility- visibility- See Also:
ChangableVisibility.setVisibility(int)
-
getType
public int getType()
Description copied from interface:LinkSourceReturns type of the source (INPUT, OUTPUT, FORWARD, PORT or MACRO).- Specified by:
getTypein interfaceLinkSource- Returns:
- int
- See Also:
LinkSource.getType()
-
getVisibleObject
public Port getVisibleObject()
Returns the visibleObject.- Returns:
- Port
-
setVisibleObject
public void setVisibleObject(Port visibleObject)
Sets the visibleObject.- Parameters:
visibleObject- The visibleObject to set
-
hasDefaultValue
public boolean hasDefaultValue()
- Specified by:
hasDefaultValuein interfaceInspectableProperty- Returns:
- something
-
hasValidity
public boolean hasValidity()
- Specified by:
hasValidityin interfaceInspectableProperty- Returns:
- something
-
checkValueValidity
public String checkValueValidity(String value)
Description copied from interface:InspectablePropertyReturns null if this value is valid, else the error message.- Specified by:
checkValueValidityin interfaceInspectableProperty- Parameters:
value- value- Returns:
- something
-
getGuiGroup
public Integer getGuiGroup()
Description copied from interface:InspectablePropertyReturns the gui group index as an Integer or null if no gui group info available.- Specified by:
getGuiGroupin interfaceInspectableProperty- Returns:
- something
-
-