com.loribel.commons.business.impl
Class GB_BOPropertyRef

java.lang.Object
  extended bycom.loribel.commons.business.impl.GB_BOPropertyRef
All Implemented Interfaces:
GB_BOProperty, GB_BOPropertySimple, GB_IconsOwner, GB_IndexOwner, GB_LabelIconOwner, GB_LabelInfoOwner, GB_LabelsDescOwner, GB_NameOwner, GB_NodeConfigOwner, GB_TsOwner, GB_TypeOwner

public class GB_BOPropertyRef
extends java.lang.Object
implements GB_BOProperty

Implementation of a GB_BOProperty using a refId to refer to an other property.

Author:
Gregory Borelli

Nested Class Summary
 
Nested classes inherited from class com.loribel.commons.business.abstraction.GB_BOProperty
GB_BOProperty.PERSISTENCE_XML, GB_BOProperty.SEMANTIC
 
Constructor Summary
GB_BOPropertyRef(java.lang.String a_refId)
           
 
Method Summary
 java.lang.String getBoType()
           
 org.w3c.dom.Element getConfigNode()
          Returns the XML Node of the config.
 java.lang.Object getDefaultValue()
          Getter for defaultValue.
 java.lang.String getDeprecatedMsg()
           
 java.lang.String getDescription()
           
 java.lang.String getDescription(java.lang.String a_name, java.lang.String a_lng, boolean a_useDefault)
           
 java.lang.String getDisplayFormat()
          Getter for displayFormat.
 java.lang.String getEditFormat()
          Getter for editFormat.
 java.lang.String getEditorName()
          Returns a name of the editor.
 java.lang.String getEditRegex()
          Getter for editRegex.
 int getEnumItemCount()
           
 GB_BOEnumItem[] getEnumItems()
           
 GB_BOEnumValues getEnumValues()
           
 java.lang.String getGroupName()
          Getter for groupName.
 java.lang.String getHistoryId()
          Returns the historyId.
 javax.swing.Icon getIcon()
          Getter for icon.
 javax.swing.Icon getIcon(java.lang.String a_name)
          Returns an icon
 int getIndex()
           
 java.lang.String getLabel()
           
 java.lang.String getLabel(java.lang.String a_name, java.lang.String a_lng, boolean a_useDefault)
           
 GB_LabelIcon getLabelIcon()
          Return a GB_LabelIcon.
 java.lang.String getLabelInfo()
          Returns String to document object, use into wait dialog for example.
 int getMaxSize()
          Getter for maxSize.
 java.lang.Object getMaxValue()
          Getter for maxValue.
 int getMinSize()
          Getter for minSize.
 java.lang.Object getMinValue()
          Getter for minValue.
 java.lang.String getName()
           
 int getPersistenceXml()
           
 int getPreferredSize()
          Returns the number to use to build preferred size.
 GB_BOProperty getProperty()
           
 GB_BOProperty getPropertyBase()
           
 java.lang.String getPropertyIdLink()
           
 java.lang.String getRefId()
          Returns the ref id (BOName.propertyName) if the property is defined by reference.
 java.lang.String getRevelant()
           
 java.lang.String getSemantic()
          Returns the semantics of the property.
 java.lang.String getStyle()
           
 long getTs()
           
 java.lang.Class getType()
          Getter for type.
 java.lang.String getUnit()
          Getter for unit.
 java.lang.String getValidationRegex()
          Getter for validationRegex.
 boolean isAutoValidation()
           
 boolean isBusinessObject()
          Getter for flagBusinessObject.
 boolean isCalculated()
          Getter for flagCalculated.
 boolean isEnumeration()
          Getter for flagEnum.
 boolean isGroup()
          Getter for flagGroup.
 boolean isLabel()
           
 boolean isLineWrap()
          Getter for flagLineWrap.
 boolean isNotUse()
          Getter for flagNotUse.
 boolean isOptional()
          Getter for flagOptional.
 boolean isPassword()
          Getter for flagPassword.
 boolean isPersistent()
          Returns true if the property is persistent.
 boolean isPropertyMap()
          Getter for flagPropertyMap.
 boolean isPropertyMulti()
          Returns true if the property can have multiple values.
 boolean isReadOnly()
          Getter for flagReadOnly.
 boolean isScrollable()
          Getter for flagScrollable.
 boolean isVisible()
          Getter for flagVisible.
 void setIndex(int a_index)
           
 void setName(java.lang.String a_name)
           
 void setPropertyOrigin(GB_BOProperty a_propertyBase)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GB_BOPropertyRef

public GB_BOPropertyRef(java.lang.String a_refId)
Method Detail

getBoType

public java.lang.String getBoType()
Specified by:
getBoType in interface GB_BOProperty

getDefaultValue

public java.lang.Object getDefaultValue()
Description copied from interface: GB_BOProperty
Getter for defaultValue.

Specified by:
getDefaultValue in interface GB_BOProperty

getDeprecatedMsg

public java.lang.String getDeprecatedMsg()
Specified by:
getDeprecatedMsg in interface GB_BOProperty

getDescription

public java.lang.String getDescription()
Specified by:
getDescription in interface GB_BOPropertySimple

getDescription

public java.lang.String getDescription(java.lang.String a_name,
                                       java.lang.String a_lng,
                                       boolean a_useDefault)
Specified by:
getDescription in interface GB_LabelsDescOwner

getDisplayFormat

public java.lang.String getDisplayFormat()
Description copied from interface: GB_BOProperty
Getter for displayFormat.

Specified by:
getDisplayFormat in interface GB_BOProperty

getEditFormat

public java.lang.String getEditFormat()
Description copied from interface: GB_BOProperty
Getter for editFormat.

Specified by:
getEditFormat in interface GB_BOProperty

getEditorName

public java.lang.String getEditorName()
Description copied from interface: GB_BOProperty
Returns a name of the editor.

Specified by:
getEditorName in interface GB_BOProperty

getEditRegex

public java.lang.String getEditRegex()
Description copied from interface: GB_BOProperty
Getter for editRegex.

Specified by:
getEditRegex in interface GB_BOProperty

getEnumItemCount

public int getEnumItemCount()
Specified by:
getEnumItemCount in interface GB_BOProperty

getEnumItems

public GB_BOEnumItem[] getEnumItems()
Specified by:
getEnumItems in interface GB_BOPropertySimple

getEnumValues

public GB_BOEnumValues getEnumValues()
Specified by:
getEnumValues in interface GB_BOProperty

getGroupName

public java.lang.String getGroupName()
Description copied from interface: GB_BOProperty
Getter for groupName.

Specified by:
getGroupName in interface GB_BOProperty

getHistoryId

public java.lang.String getHistoryId()
Description copied from interface: GB_BOProperty
Returns the historyId.

Specified by:
getHistoryId in interface GB_BOProperty

getIcon

public javax.swing.Icon getIcon()
Description copied from interface: GB_BOProperty
Getter for icon.

Specified by:
getIcon in interface GB_BOProperty

getIcon

public javax.swing.Icon getIcon(java.lang.String a_name)
Description copied from interface: GB_IconsOwner
Returns an icon

Specified by:
getIcon in interface GB_IconsOwner

getIndex

public int getIndex()
Specified by:
getIndex in interface GB_IndexOwner

getLabel

public java.lang.String getLabel()
Specified by:
getLabel in interface GB_BOPropertySimple

getLabel

public java.lang.String getLabel(java.lang.String a_name,
                                 java.lang.String a_lng,
                                 boolean a_useDefault)
Specified by:
getLabel in interface GB_LabelsDescOwner

getLabelIcon

public GB_LabelIcon getLabelIcon()
Description copied from interface: GB_LabelIconOwner
Return a GB_LabelIcon.

Specified by:
getLabelIcon in interface GB_LabelIconOwner
Returns:
GB_LabelIcon

getLabelInfo

public java.lang.String getLabelInfo()
Description copied from interface: GB_LabelInfoOwner
Returns String to document object, use into wait dialog for example.

Specified by:
getLabelInfo in interface GB_LabelInfoOwner

getMaxSize

public int getMaxSize()
Description copied from interface: GB_BOProperty
Getter for maxSize.

Specified by:
getMaxSize in interface GB_BOProperty

getMaxValue

public java.lang.Object getMaxValue()
Description copied from interface: GB_BOProperty
Getter for maxValue.

Specified by:
getMaxValue in interface GB_BOProperty

getMinSize

public int getMinSize()
Description copied from interface: GB_BOProperty
Getter for minSize.

Specified by:
getMinSize in interface GB_BOProperty

getMinValue

public java.lang.Object getMinValue()
Description copied from interface: GB_BOProperty
Getter for minValue.

Specified by:
getMinValue in interface GB_BOProperty

getName

public java.lang.String getName()
Specified by:
getName in interface GB_NameOwner

getPersistenceXml

public int getPersistenceXml()
Specified by:
getPersistenceXml in interface GB_BOProperty

getPreferredSize

public int getPreferredSize()
Description copied from interface: GB_BOProperty
Returns the number to use to build preferred size. The number can be the number of characters, the number of rows, ... The value -1 == value not used.

Specified by:
getPreferredSize in interface GB_BOProperty

getProperty

public GB_BOProperty getProperty()

getPropertyIdLink

public java.lang.String getPropertyIdLink()
Specified by:
getPropertyIdLink in interface GB_BOProperty

getRefId

public java.lang.String getRefId()
Description copied from interface: GB_BOProperty
Returns the ref id (BOName.propertyName) if the property is defined by reference.

Specified by:
getRefId in interface GB_BOProperty

getRevelant

public java.lang.String getRevelant()
Specified by:
getRevelant in interface GB_BOProperty

getSemantic

public java.lang.String getSemantic()
Description copied from interface: GB_BOProperty
Returns the semantics of the property.

Specified by:
getSemantic in interface GB_BOProperty

getStyle

public java.lang.String getStyle()
Specified by:
getStyle in interface GB_BOProperty

getTs

public long getTs()
Specified by:
getTs in interface GB_TsOwner

getType

public java.lang.Class getType()
Description copied from interface: GB_BOPropertySimple
Getter for type.

Specified by:
getType in interface GB_BOPropertySimple

getUnit

public java.lang.String getUnit()
Description copied from interface: GB_BOProperty
Getter for unit.

Specified by:
getUnit in interface GB_BOProperty

getValidationRegex

public java.lang.String getValidationRegex()
Description copied from interface: GB_BOProperty
Getter for validationRegex.

Specified by:
getValidationRegex in interface GB_BOProperty

isAutoValidation

public boolean isAutoValidation()
Specified by:
isAutoValidation in interface GB_BOProperty

isBusinessObject

public boolean isBusinessObject()
Description copied from interface: GB_BOPropertySimple
Getter for flagBusinessObject.

Specified by:
isBusinessObject in interface GB_BOPropertySimple

isCalculated

public boolean isCalculated()
Description copied from interface: GB_BOPropertySimple
Getter for flagCalculated.

Specified by:
isCalculated in interface GB_BOPropertySimple

isEnumeration

public boolean isEnumeration()
Description copied from interface: GB_BOPropertySimple
Getter for flagEnum.

Specified by:
isEnumeration in interface GB_BOPropertySimple

isGroup

public boolean isGroup()
Description copied from interface: GB_BOProperty
Getter for flagGroup.

Specified by:
isGroup in interface GB_BOProperty

isLabel

public boolean isLabel()
Specified by:
isLabel in interface GB_BOProperty

isLineWrap

public boolean isLineWrap()
Description copied from interface: GB_BOProperty
Getter for flagLineWrap.

Specified by:
isLineWrap in interface GB_BOProperty

isNotUse

public boolean isNotUse()
Description copied from interface: GB_BOProperty
Getter for flagNotUse.

Specified by:
isNotUse in interface GB_BOProperty

isOptional

public boolean isOptional()
Description copied from interface: GB_BOProperty
Getter for flagOptional.

Specified by:
isOptional in interface GB_BOProperty

isPassword

public boolean isPassword()
Description copied from interface: GB_BOProperty
Getter for flagPassword.

Specified by:
isPassword in interface GB_BOProperty

isPersistent

public boolean isPersistent()
Description copied from interface: GB_BOPropertySimple
Returns true if the property is persistent.

Specified by:
isPersistent in interface GB_BOPropertySimple

isPropertyMap

public boolean isPropertyMap()
Description copied from interface: GB_BOProperty
Getter for flagPropertyMap.

Specified by:
isPropertyMap in interface GB_BOProperty

isPropertyMulti

public boolean isPropertyMulti()
Description copied from interface: GB_BOPropertySimple
Returns true if the property can have multiple values.

Specified by:
isPropertyMulti in interface GB_BOPropertySimple

isReadOnly

public boolean isReadOnly()
Description copied from interface: GB_BOProperty
Getter for flagReadOnly.

Specified by:
isReadOnly in interface GB_BOProperty

isScrollable

public boolean isScrollable()
Description copied from interface: GB_BOProperty
Getter for flagScrollable.

Specified by:
isScrollable in interface GB_BOProperty

isVisible

public boolean isVisible()
Description copied from interface: GB_BOProperty
Getter for flagVisible.

Specified by:
isVisible in interface GB_BOProperty

setIndex

public void setIndex(int a_index)

setName

public void setName(java.lang.String a_name)

getConfigNode

public org.w3c.dom.Element getConfigNode()
Description copied from interface: GB_NodeConfigOwner
Returns the XML Node of the config.

Specified by:
getConfigNode in interface GB_NodeConfigOwner

getPropertyBase

public GB_BOProperty getPropertyBase()
Specified by:
getPropertyBase in interface GB_BOProperty

setPropertyOrigin

public void setPropertyOrigin(GB_BOProperty a_propertyBase)


Copyright © 2002-2007 Gregory Borelli [Loribel]. All Rights Reserved.