public interface CDAction extends RichTextRecord<LSIG>
Modifier and Type | Interface and Description |
---|---|
static class |
CDAction.Flag |
static class |
CDAction.Type |
Modifier and Type | Method and Description |
---|---|
default byte[] |
getActionData() |
default String |
getActionFormula()
Retrieves the formula for this action as a string.
|
default int |
getActionLength() |
default String |
getActionLotusScript()
Retrieves the LotusScript for this action as a string.
|
CDAction.Type |
getActionType() |
default byte[] |
getCompiledHideWhenFormula()
Retrieves the compiled hide-when formula for this action as a byte array.
|
Set<CDAction.Flag> |
getFlags() |
LSIG |
getHeader() |
default String |
getHideWhenFormula()
Retrieves the hide-when formula for this action as a string.
|
int |
getHideWhenFormulaLength() |
int |
getIconIndex() |
int |
getShareId() |
default String |
getTitle() |
int |
getTitleLength() |
default CDAction |
setActionData(byte[] actionData) |
default CDAction |
setActionFormula(String formula)
Sets the action's code to the provided formula language string.
|
default CDAction |
setActionLotusScript(String script)
Sets the action's code to the provided LotusScript string.
|
CDAction |
setActionType(CDAction.Type type)
Sets the type for this action.
|
CDAction |
setFlags(Collection<CDAction.Flag> flags) |
default CDAction |
setHideWhenFormula(String formula)
Sets the action's hide-when formula to the provided string.
|
CDAction |
setHideWhenFormulaLength(int formulaLength) |
CDAction |
setIconIndex(int iconIndex) |
CDAction |
setShareId(int shareId) |
default CDAction |
setTitle(String title) |
CDAction |
setTitleLength(int titleLength) |
getCDRecordLength, getData, getDataWithoutHeader, getPayloadLength, getRecordHeaderLength, getType, getTypeValue
getVariableData, resize, resizeVariableData
LSIG getHeader()
getHeader
in interface RichTextRecord<LSIG>
CDAction.Type getActionType()
CDAction setActionType(CDAction.Type type)
This type is also set implicitly by setActionFormula(String)
and setActionLotusScript(String)
.
When setting the type explicitly, you are responsible for setting setActionData(byte[])
to an appropriate
value.
type
- the new type for the actionint getIconIndex()
CDAction setIconIndex(int iconIndex)
Set<CDAction.Flag> getFlags()
CDAction setFlags(Collection<CDAction.Flag> flags)
int getTitleLength()
CDAction setTitleLength(int titleLength)
int getHideWhenFormulaLength()
CDAction setHideWhenFormulaLength(int formulaLength)
int getShareId()
CDAction setShareId(int shareId)
default String getTitle()
default int getActionLength()
default byte[] getActionData()
default CDAction setActionData(byte[] actionData)
default String getActionFormula()
UnsupportedOperationException
- if the action's type is not CDAction.Type.RUN_FORMULA
default CDAction setActionFormula(String formula)
CDAction.Type.RUN_FORMULA
.formula
- the formula-language string to setdefault String getActionLotusScript()
UnsupportedOperationException
- if the action's type is not CDAction.Type.RUN_SCRIPT
default CDAction setActionLotusScript(String script)
CDAction.Type.RUN_SCRIPT
.script
- the LotusScript string to setdefault byte[] getCompiledHideWhenFormula()
default CDAction setHideWhenFormula(String formula)
formula
- the formula-language string to setdefault String getHideWhenFormula()
Copyright © 2019–2021 HCL. All rights reserved.