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 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 implementITableElementinterface
-
-
Constructor Summary
Constructors Constructor Description InheritanceLine()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancanModify(java.lang.String pProperty)Defines whether the column cell corresponding to the property can be modified.org.eclipse.swt.graphics.ImagegetImage(java.lang.String pProperty)Returns the column image corresponding to the property.java.lang.StringgetInterfaceName()java.lang.StringgetLabel(java.lang.String pProperty)Returns the column label corresponding to the property.java.lang.String[]getProperties()java.lang.ObjectgetValue(java.lang.String pProperty)Returns the column value corresponding to the property.booleanisOptional()voidsetInterfaceName(java.lang.String pInterfaceName)Set the interface name.voidsetOptional(boolean pOptional)Set whether the inheritance is optional or not.voidsetValue(java.lang.String pProperty, java.lang.Object pValue)Sets the column value corresponding to the property.
-
-
-
Field Detail
-
OPTIONAL
public static final java.lang.String OPTIONAL
- See Also:
- Constant Field Values
-
NAME
public static final java.lang.String NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
getInterfaceName
public java.lang.String getInterfaceName()
- Returns:
- the interface name
-
isOptional
public boolean isOptional()
- Returns:
trueif 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-trueif 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:
getImagein interfaceITableElement- 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:
getLabelin interfaceITableElement- Parameters:
pProperty- the property designating the column- Returns:
- the label for the column
-
getProperties
public java.lang.String[] getProperties()
- Specified by:
getPropertiesin interfaceITableElement- 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:
canModifyin interfaceITableElement- Parameters:
pProperty- the property designating the column- Returns:
trueif the cell is editable.
-
getValue
public java.lang.Object getValue(java.lang.String pProperty)
Returns the column value corresponding to the property.- Specified by:
getValuein interfaceITableElement- 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:
setValuein interfaceITableElement- Parameters:
pProperty- the property designating the columnpValue- the new value for the column
-
-