java.lang.Object | |||
↳ | com.pnfsoftware.jeb.core.events.JebEventSource | ||
↳ | com.pnfsoftware.jeb.core.units.AbstractUnit | ||
↳ | com.pnfsoftware.jeb.core.units.AbstractInteractiveUnit |
Skeleton of an interactive unit. Usage of this abstract class is encouraged. This unit provides a default metadata manager.
Implementors must implement their own constructor; the default constructor is used for deserialization only. Example of a typical interactive unit constructor:
public DerivedClass(String name, IUnitProcessor unitProcessor, IUnitCreator parent, IPropertyDefinitionManager pdm) { super(..., name, unitProcessor, parent, pdm); ... }
[Expand]
Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.pnfsoftware.jeb.core.events.JebEventSource
|
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
AbstractInteractiveUnit(String formatType, String name, IUnit parent) | |||||||||||
AbstractInteractiveUnit(String formatType, String name, IUnitProcessor unitProcessor, IUnitCreator parent, IPropertyDefinitionManager pdm) |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
boolean |
canExecuteAction(ActionContext actionContext)
The skeleton implementation returns false.
| ||||||||||
boolean |
executeAction(ActionContext actionContext, IActionData actionData, boolean notify)
The skeleton implementation returns false.
| ||||||||||
boolean |
executeAction(ActionContext actionContext, IActionData actionData)
The skeleton implementation returns
executeAction(actionContext,
actionData, true) . | ||||||||||
List<Integer> |
getAddressActions(String address)
The skeleton implementation returns an empty list.
| ||||||||||
String |
getAddressOfItem(long id)
The skeleton implementation returns null.
| ||||||||||
List<Integer> |
getGlobalActions()
The skeleton implementation returns an empty list.
| ||||||||||
List<Integer> |
getItemActions(long id)
The skeleton implementation returns an empty list.
| ||||||||||
long |
getItemAtAddress(String address)
The skeleton implementation returns 0.
| ||||||||||
Object |
getItemObject(long id)
The skeleton implementation returns null.
| ||||||||||
IMetadataManager |
getMetadataManager()
The skeleton implementation returns an empty metadata manager.
| ||||||||||
List<Long> |
getRelatedItems(long id)
The skeleton implementation returns an empty list.
| ||||||||||
boolean |
isValidAddress(String address)
The default implementation returns true IFF the address can be converted to a valid (non-zero) item id.
| ||||||||||
boolean |
prepareExecution(ActionContext actionContext, IActionData actionData)
The skeleton implementation returns false.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.pnfsoftware.jeb.core.units.AbstractUnit
| |||||||||||
From class
com.pnfsoftware.jeb.core.events.JebEventSource
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface
com.pnfsoftware.jeb.core.IUnitCreator
| |||||||||||
From interface
com.pnfsoftware.jeb.core.IUserDataSupport
| |||||||||||
From interface
com.pnfsoftware.jeb.core.units.IAddressableUnit
| |||||||||||
From interface
com.pnfsoftware.jeb.core.units.IInteractiveUnit
| |||||||||||
From interface
com.pnfsoftware.jeb.core.units.IUnit
| |||||||||||
From interface
com.pnfsoftware.jeb.util.events.IEventSource
|
The skeleton implementation returns false.
actionContext | location context for the action |
---|
The skeleton implementation returns false.
actionContext | context for the action |
---|---|
actionData | data for the action |
notify | true to notify clients if the action was successfully executed and the unit contents has changed |
The skeleton implementation returns
executeAction(actionContext,
actionData, true)
.
actionContext | location context for the action |
---|---|
actionData | data for the action |
The skeleton implementation returns an empty list.
address | the target address |
---|
The skeleton implementation returns null.
id | the item id |
---|
The skeleton implementation returns an empty list.
The skeleton implementation returns an empty list.
id | the target item identifier |
---|
The skeleton implementation returns 0.
address | the address |
---|
The skeleton implementation returns null.
id | the item id |
---|
The skeleton implementation returns an empty metadata manager.
The skeleton implementation returns an empty list.
id | an item id |
---|
The default implementation returns true IFF the address can be converted to a valid (non-zero) item id.
The skeleton implementation returns false.
actionContext | location context for the action |
---|---|
actionData | data for the action |