Options
All
  • Public
  • Public/Protected
  • All
Menu

Class PrintMarkupContext

Hierarchy

Index

Constructors

constructor

Properties

Static BINARY_CHUNK_SIZE

BINARY_CHUNK_SIZE: number = 256 * 1024

Accessors

actionSource

buffer

dialogAlias

  • get dialogAlias(): string
  • Get the dialog alias

    Returns string

dialogRedirection

entityRec

entityRecDef

entityRecNow

  • Get the current version of the entity record, with any pending changes present

    Returns EntityRec

error

formDef

hasError

  • get hasError(): boolean
  • Returns whether or not this pane loaded properly

    Returns boolean

isDestroyed

  • get isDestroyed(): boolean

isFirstReadComplete

  • get isFirstReadComplete(): boolean
  • Returns whether or not the buffers contain valid data via a successful read operation.

    Returns boolean

isReadMode

  • get isReadMode(): boolean
  • Returns whether or not this Editor is in 'read' mode

    Returns boolean

isRefreshNeeded

  • get isRefreshNeeded(): boolean
  • Returns whether or not the data in this pane is out of date

    Returns boolean

isWriteMode

  • get isWriteMode(): boolean
  • Returns whether or not this property is 'writable'

    Returns boolean

lastRefreshTime

  • get lastRefreshTime(): Date
  • set lastRefreshTime(time: Date): void
  • Get the last time this pane's data was refreshed

    Returns Date

  • Get the last time this pane's data was refreshed

    Parameters

    • time: Date

    Returns void

menuDefs

Private offlineCapable

  • get offlineCapable(): boolean

paneDef

  • Get the underlying @{link PaneDef} associated with this Context

    Returns PaneDef

paneRef

  • get paneRef(): number
  • set paneRef(paneRef: number): void

paneTitle

  • get paneTitle(): string
  • Get the title of this Pane

    Returns string

parentContext

printMarkupDef

sessionContext

settings

viewDescs

Methods

binaryAt

changePaneMode

findMenuDefAt

  • findMenuDefAt(actionId: string): MenuDef
  • Find a menu def on this Pane with the given actionId

    Parameters

    • actionId: string

    Returns MenuDef

formatForRead

  • formatForRead(prop: Prop, propName: string): string
  • Get a string representation of this property suitable for 'reading'

    Parameters

    • prop: Prop
    • propName: string

    Returns string

formatForWrite

  • formatForWrite(prop: Prop, propName: string): string
  • Get a string representation of this property suitable for 'writing'

    Parameters

    • prop: Prop
    • propName: string

    Returns string

getAvailableValues

  • getAvailableValues(propName: string): Future<Array<Object>>
  • Get the possible values for a 'constrained value' property

    Parameters

    • propName: string

    Returns Future<Array<Object>>

getSelectedViewId

Private initialize

  • initialize(): void

isBinary

isReadModeFor

  • isReadModeFor(propName: string): boolean
  • Returns whether or not this property is read-only

    Parameters

    • propName: string

    Returns boolean

openView

parseValue

  • parseValue(formattedValue: any, propName: string): any
  • Parses a value to prepare for 'writing' back to the server

    Parameters

    • formattedValue: any
    • propName: string

    Returns any

performMenuAction

  • Perform the action associated with the given MenuDef on this EditorPane. Given that the Editor could possibly be destroyed as a result of this action, any provided pending writes will be saved if present.

    Parameters

    Returns Future<NavRequest>

processSideEffects

  • processSideEffects(propertyName: string, value: any): Future<void>
  • Properties whose PropDef.canCauseSideEffects value is true, may change other underlying values in the model. This method will update those underlying values, given the property name that is changing, and the new value. This is frequently used with EditorContext.getAvailableValues. When a value is seleted, other properties available values may change. (i.e. Country, State, City dropdowns)

    Parameters

    • propertyName: string
    • value: any

    Returns Future<void>

propDefAtName

  • propDefAtName(propName: string): PropDef
  • Get the propery definition for a property name

    Parameters

    • propName: string

    Returns PropDef

read

  • Read (load) the EntityRec assocated with this Editor The record must be read at least once to initialize the Context

    Returns Future<EntityRec>

readBinaries

Protected readBinary

requestedAccuracy

  • requestedAccuracy(): number

requestedTimeoutSeconds

  • requestedTimeoutSeconds(): number

setBinaryPropWithDataUrl

  • setBinaryPropWithDataUrl(name: string, dataUrl: string): void

setBinaryPropWithEncodedData

  • setBinaryPropWithEncodedData(name: string, encodedData: string, mimeType: string): void
  • Set a binary property with base64 encoded data

    Parameters

    • name: string
    • encodedData: string
    • mimeType: string

    Returns void

setPropValue

  • setPropValue(name: string, value: any): any
  • Set the value of a property in this {@link EntityRecord}. Values may be already constructed target types (CodeRef, TimeValue, Date, etc.) or primitives, in which case the values will be parsed and objects constructed as necessary.

    Parameters

    • name: string
    • value: any

    Returns any

write

writeAttachment

writeAttachments

writeBinaries

Static resolveSettingsFromNavRequest

Generated using TypeDoc