Class InterfacesTable.InheritanceLine

  • All Implemented Interfaces:
    ITableElement
    Enclosing class:
    InterfacesTable

    public class InterfacesTable.InheritanceLine
    extends java.lang.Object
    implements ITableElement
    The interface names are stored in path-like strings, ie: using "::" as separator. This class describes a line in the table and thus has to implement ITableElement interface
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String NAME  
      static java.lang.String OPTIONAL  
    • Constructor Summary

      Constructors 
      Constructor Description
      InheritanceLine()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean canModify​(java.lang.String pProperty)
      Defines whether the column cell corresponding to the property can be modified.
      org.eclipse.swt.graphics.Image getImage​(java.lang.String pProperty)
      Returns the column image corresponding to the property.
      java.lang.String getInterfaceName()  
      java.lang.String getLabel​(java.lang.String pProperty)
      Returns the column label corresponding to the property.
      java.lang.String[] getProperties()
      java.lang.Object getValue​(java.lang.String pProperty)
      Returns the column value corresponding to the property.
      boolean isOptional()  
      void setInterfaceName​(java.lang.String pInterfaceName)
      Set the interface name.
      void setOptional​(boolean pOptional)
      Set whether the inheritance is optional or not.
      void setValue​(java.lang.String pProperty, java.lang.Object pValue)
      Sets the column value corresponding to the property.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • InheritanceLine

        public InheritanceLine()
    • Method Detail

      • getInterfaceName

        public java.lang.String getInterfaceName()
        Returns:
        the interface name
      • isOptional

        public boolean isOptional()
        Returns:
        true if the inheritance is optional
      • setInterfaceName

        public void setInterfaceName​(java.lang.String pInterfaceName)
        Set the interface name.
        Parameters:
        pInterfaceName - the interface name of the inheritance
      • setOptional

        public void setOptional​(boolean pOptional)
        Set whether the inheritance is optional or not.
        Parameters:
        pOptional - true if the inheritance is optional.
      • getImage

        public org.eclipse.swt.graphics.Image getImage​(java.lang.String pProperty)
        Returns the column image corresponding to the property.
        Specified by:
        getImage in interface ITableElement
        Parameters:
        pProperty - the property designating the column
        Returns:
        the image for the column
      • getLabel

        public java.lang.String getLabel​(java.lang.String pProperty)
        Returns the column label corresponding to the property.
        Specified by:
        getLabel in interface ITableElement
        Parameters:
        pProperty - the property designating the column
        Returns:
        the label for the column
      • getProperties

        public java.lang.String[] getProperties()
        Specified by:
        getProperties in interface ITableElement
        Returns:
        the line properties in the columns order.
      • canModify

        public boolean canModify​(java.lang.String pProperty)
        Defines whether the column cell corresponding to the property can be modified.
        Specified by:
        canModify in interface ITableElement
        Parameters:
        pProperty - the property designating the column
        Returns:
        true if the cell is editable.
      • getValue

        public java.lang.Object getValue​(java.lang.String pProperty)
        Returns the column value corresponding to the property.
        Specified by:
        getValue in interface ITableElement
        Parameters:
        pProperty - the property designating the column
        Returns:
        the value for the column
      • setValue

        public void setValue​(java.lang.String pProperty,
                             java.lang.Object pValue)
        Sets the column value corresponding to the property.
        Specified by:
        setValue in interface ITableElement
        Parameters:
        pProperty - the property designating the column
        pValue - the new value for the column