Class InterfacesTable.InheritanceLine
java.lang.Object
org.libreoffice.ide.eclipse.core.wizards.pages.InterfacesTable.InheritanceLine
- All Implemented Interfaces:
ITableElement
- Enclosing class:
- InterfacesTable
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 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanDefines whether the column cell corresponding to the property can be modified.org.eclipse.swt.graphics.ImageReturns the column image corresponding to the property.Returns the column label corresponding to the property.String[]Returns the column value corresponding to the property.booleanvoidsetInterfaceName(String interfaceName) Set the interface name.voidsetOptional(boolean optional) Set whether the inheritance is optional or not.voidSets the column value corresponding to the property.
-
Field Details
-
OPTIONAL
- See Also:
-
NAME
- See Also:
-
-
Constructor Details
-
InheritanceLine
public InheritanceLine()
-
-
Method Details
-
getInterfaceName
- Returns:
- the interface name
-
isOptional
public boolean isOptional()- Returns:
trueif the inheritance is optional
-
setInterfaceName
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-trueif the inheritance is optional.
-
getImage
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
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
- Specified by:
getPropertiesin interfaceITableElement- Returns:
- the line properties in the columns order.
-
canModify
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
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
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
-