Class InterfacesTable.InheritanceLine

java.lang.Object
org.libreoffice.ide.eclipse.core.wizards.pages.InterfacesTable.InheritanceLine
All Implemented Interfaces:
ITableElement
Enclosing class:
InterfacesTable

public class InterfacesTable.InheritanceLine extends 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 Details

  • Constructor Details

    • InheritanceLine

      public InheritanceLine()
  • Method Details

    • getInterfaceName

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

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

      public void setInterfaceName(String interfaceName)
      Set the interface name.
      Parameters:
      interfaceName - the interface name of the inheritance
    • setOptional

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

      public org.eclipse.swt.graphics.Image getImage(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 String getLabel(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 String[] getProperties()
      Specified by:
      getProperties in interface ITableElement
      Returns:
      the line properties in the columns order.
    • canModify

      public boolean canModify(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 Object getValue(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(String pProperty, 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