public abstract class AbstractBaseDetailsPart extends Object implements DetailsPart
Modifier and Type | Field and Description |
---|---|
protected org.eclipse.swt.widgets.Display |
display |
protected DataItemHolder |
item |
protected org.eclipse.swt.widgets.Shell |
shell |
protected DataItemValue |
value |
Constructor and Description |
---|
AbstractBaseDetailsPart() |
Modifier and Type | Method and Description |
---|---|
void |
createPart(org.eclipse.swt.widgets.Composite parent)
create the details area
|
void |
dispose() |
protected boolean |
getBooleanAttribute(String name) |
protected Number |
getNumberAttribute(String name,
Number defaultValue) |
protected DataItemValue |
getValue() |
protected boolean |
hasAttribute(String attributeName)
Checks if the current value has the attribute set
|
protected boolean |
isAlarm() |
protected boolean |
isError() |
protected boolean |
isForceActive() |
protected boolean |
isManual() |
protected boolean |
isUnsafe()
Return if the value is unsafe
|
void |
setDataItem(DataItemHolder item)
set to update the item instance
|
protected void |
setShell(org.eclipse.swt.widgets.Shell shell) |
void |
setVisibilityController(VisibilityController visibilityController) |
protected abstract void |
update()
Internal data was updated.
|
void |
updateData(DataItemValue value)
Update data from the data item
|
protected org.eclipse.swt.widgets.Display display
protected DataItemHolder item
protected DataItemValue value
protected org.eclipse.swt.widgets.Shell shell
protected void setShell(org.eclipse.swt.widgets.Shell shell)
public void createPart(org.eclipse.swt.widgets.Composite parent)
DetailsPart
createPart
in interface DetailsPart
parent
- the parent compositepublic void setDataItem(DataItemHolder item)
DetailsPart
setDataItem
in interface DetailsPart
item
- the data itempublic void dispose()
dispose
in interface org.eclipse.ui.services.IDisposable
public void updateData(DataItemValue value)
DetailsPart
Will be called in the display thread
updateData
in interface DetailsPart
value
- the current value or null
if the data item is not connectedprotected abstract void update()
This method is called inside the display thread.
protected boolean isUnsafe()
true
if the value part is unsafe, false
otherwiseprotected boolean isError()
protected boolean isAlarm()
protected boolean isManual()
protected boolean isForceActive()
protected boolean getBooleanAttribute(String name)
protected DataItemValue getValue()
protected boolean hasAttribute(String attributeName)
attributeName
- the attribute name to checktrue
if the current value is available and the
attribute is setpublic void setVisibilityController(VisibilityController visibilityController)
setVisibilityController
in interface DetailsPart
Copyright © 2016 Eclipse NeoSCADA Project. All rights reserved.