class FileInputWidget
view source
extends WidgetBase
extends EventListener
Upload widget.
new FileInputWidget(opts : Object)
Parameters
opts | Object | instantiation options |
opts.appHash | number | internal app hash |
opts.appWidget | ApplicationWidget | early ApplicationWidget link |
opts.auiTag | number | internal aui tag id |
opts.inTable | boolean | internal is in table |
opts.inMatrix | boolean | internal is in matrix |
opts.inFirstTableRow | boolean | internal |
opts.inScrollGrid | boolean | internal is in a scroll grid |
opts.ignoreLayout | boolean | ignore layout char measurer |
addClass(className : string)
[inherits from WidgetBase]
detach()
[inherits from WidgetBase]
Detach the widget from the dom
emit(type : string, arguments… : any)
[inherits from EventListener]
getApplicationIdentifier()
: (string)
[inherits from WidgetBase]
Get the unique identifier of the application
Returns
getApplicationWidget()
: (ApplicationWidget)
[inherits from WidgetBase]
Get Application Widget related to the widget
Returns
getBuildParameters()
: (Object)
[inherits from WidgetBase]
Returns build parameters
Returns
getClassName()
: (string)
[inherits from WidgetBase]
Get the main class name of the widget
Returns
getDialogType()
: (string)
[inherits from WidgetBase]
return widget current dialog type
Returns
getElement()
: (HTMLElement)
[inherits from WidgetBase]
Get the root element of the widget
Returns
getEnd()
: (string)
[inherits from WidgetBase]
Get end (for reversed mode)
Returns
getFormWidget()
: (FormWidget)
[inherits from WidgetBase]
Get the Form Widget related to the widget
Returns
getLayoutEngine()
: (LayoutEngineBase)
[inherits from WidgetBase]
Get the widget's layout engine
Returns
getLayoutInformation()
: (LayoutInformation)
[inherits from WidgetBase]
Get the widget's layout information
Returns
getName()
: (string)
[inherits from WidgetBase]
Get the name of the widget class
Returns
getParentWidget()
: (WidgetGroupBase)
[inherits from WidgetBase]
Get the parent widget
Returns
getStart()
: (string)
[inherits from WidgetBase]
Get start (for reversed mode)
Returns
getStyle(selector : string, property : string, appliesOnRoot : boolean)
: (any)
[inherits from WidgetBase]
getTableWidgetBase()
: (TableWidgetBase)
[inherits from WidgetBase]
Get the table Widget base class related to the widget
Returns
getTitle()
: (string)
[inherits from WidgetBase]
Get the title of the widget
Returns
getUniqueIdentifier()
: (string)
[inherits from WidgetBase]
Get the unique identifier of the widget
Returns
getUserInterfaceWidget()
: (UserInterfaceWidget)
[inherits from WidgetBase]
Get the UI widget related to the widget
Returns
getWindowWidget()
: (WindowWidget)
[inherits from WidgetBase]
Get the Window Widget related to the widget
Returns
hasClass(className : string)
[inherits from WidgetBase]
hasFocus()
: (boolean)
[inherits from WidgetBase]
Check if widget node has focus (class gbc_Focus)
Returns
hasVMFocus()
: (boolean)
[inherits from WidgetBase]
Check if widget node has VM focus
Returns
ignoreLayout()
: (boolean)
[inherits from WidgetBase]
Does the widget ignore layouting
Returns
isAllowMultipleFiles()
: (boolean)
Check if multiple files can be uploaded at once
Returns
isChildOf(parent : WidgetBase)
: (boolean)
[inherits from WidgetBase]
Check if this widget is a child of a given one
Parameters
parent | WidgetBase | the reference parent widget |
Returns
isDestroyed()
: (boolean)
[inherits from EventListener]
Returns if the node is destroyed
Returns
isEnabled()
: (boolean)
[inherits from WidgetBase]
Check if widget is enabled
Returns
isFocusable()
: (boolean)
[inherits from WidgetBase]
Returns if the widget is focusable
Returns
isHidden()
: (boolean)
[inherits from WidgetBase]
Check if the widget is hidden
Returns
isInMatrix()
: (boolean)
[inherits from WidgetBase]
Check if the widget is in a matrix
Returns
isInTable()
: (boolean)
[inherits from WidgetBase]
Check if the widget is in a table
Returns
isNoBorder()
: (boolean)
[inherits from WidgetBase]
Check if the widget is displayed without border
Returns
isReversed()
: (boolean)
[inherits from WidgetBase]
Check if arabic mode is enabled
Returns
isVisible()
: (boolean)
[inherits from WidgetBase]
Check if the widget is visible
Returns
loseFocus()
[inherits from WidgetBase]
Called before setFocus to notify previous focused widget
loseVMFocus()
[inherits from WidgetBase]
Called before setting VM focus to notify previous VM focused widget
removeClass(className : string)
[inherits from WidgetBase]
replaceWith(widget : WidgetBase)
[inherits from WidgetBase]
setDialogType(dialogType : string)
[inherits from WidgetBase]
Set widget current dialog type. Can be Input, Input Array, Display, Display Array or Construct
Parameters
dialogType | string | Dialog type |
setEnabled(enabled : boolean)
[inherits from WidgetBase]
Defines the enabled status of the widget
Parameters
enabled | boolean | true if the widget allows user interaction, false otherwise. |
setFocus(fromMouse : boolean, stayOnSameWidget : boolean)
[inherits from WidgetBase]
setFocusable(focusable : boolean)
[inherits from WidgetBase]
setHidden(hidden : boolean)
[inherits from WidgetBase]
Defines if the widget should be hidden or not
Parameters
hidden | boolean | true if the widget is hidden, false otherwise |
setNoBorder(noBorder : boolean)
[inherits from WidgetBase]
Remove or add borders to the widget
Parameters
noBorder | boolean | true if the widget has no border class, false otherwise |
setParentWidget(widget : WidgetGroupBase, options : Object)
[inherits from WidgetBase]
Defines the parent widget
Parameters
widget | WidgetGroupBase | the widget to use as parent |
options | Object | possible options |
options.noLayoutInvalidation | boolean | won't affect parent layout |
setReverse(rtl : boolean)
[inherits from WidgetBase]
setTitle(title : string)
[inherits from WidgetBase]
toggleClass(className : string, switcher : boolean)
[inherits from WidgetBase]
translate()
[inherits from WidgetBase]
Translate the widget