public abstract class AbstractBaseDetailsPart extends java.lang.Object implements DetailsPart
| Modifier and Type | Field and Description |
|---|---|
protected Display |
display |
protected DataItemHolder |
item |
protected Shell |
shell |
protected DataItemValue |
value |
| Constructor and Description |
|---|
AbstractBaseDetailsPart() |
| Modifier and Type | Method and Description |
|---|---|
void |
createPart(Composite parent)
create the details area
|
void |
dispose() |
protected boolean |
getBooleanAttribute(java.lang.String name) |
protected java.lang.Number |
getNumberAttribute(java.lang.String name,
java.lang.Number defaultValue) |
protected DataItemValue |
getValue() |
protected boolean |
hasAttribute(java.lang.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(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 Display display
protected DataItemHolder item
protected DataItemValue value
protected Shell shell
protected void setShell(Shell shell)
public void createPart(Composite parent)
DetailsPartcreatePart in interface DetailsPartparent - the parent compositepublic void setDataItem(DataItemHolder item)
DetailsPartsetDataItem in interface DetailsPartitem - the data itempublic void dispose()
public void updateData(DataItemValue value)
DetailsPartWill be called in the display thread
updateData in interface DetailsPartvalue - 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(java.lang.String name)
protected DataItemValue getValue()
protected java.lang.Number getNumberAttribute(java.lang.String name,
java.lang.Number defaultValue)
protected boolean hasAttribute(java.lang.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 (c) IBH SYSTEMS GmbH and others 2010, 2013.
All rights reserved. This program and the accompanying materials
are made available under the terms of the
Eclipse Public License v1.0