Interface IWidget
- All Superinterfaces:
IWritable,Serializable
- All Known Subinterfaces:
IBaseDesignManualTask,IBlock,IButton,IContainer,IDesignAbortTask,IDesignAction,IDesignAndJoin,IDesignAnnotation,IDesignApplicationManualTask,IDesignBlock,IDesignCellBlock,IDesignComponent,IDesignConnectorTreatmentTask,IDesignContentComponent,IDesignElement,IDesignEmbeddedWorkflowTask,IDesignEndTask,IDesignField,IDesignFieldLabel,IDesignFieldTreatmentTask,IDesignForm,IDesignFormBlock,IDesignLineBlock,IDesignLink,IDesignManualTask,IDesignParallel,IDesignProperty,IDesignRoleTreatmentTask,IDesignScriptTreatmentTask,IDesignSectionBlock,IDesignStartTask,IDesignStateTreatmentTask,IDesignTableBlock,IDesignTask,IDesignTest,IDesignTreatmentGroupTask,IDesignTreatmentTask,IDesignWorkflow,IFieldComponent,INamedContainer,INamedWidget,InputConnectionPoint,ISelectionSupport,IText,OutputConnectionPoint
- All Known Implementing Classes:
com.axemble.vdp.ui.framework.widgets.components.sys.base.BaseComponent,BaseField,com.axemble.vdp.ui.framework.widgets.components.sys.base.BaseFieldComponent,com.axemble.vdp.ui.framework.widgets.components.sys.base.BaseInputComponent,BaseNavigation,BaseToolProvider.NamedWidget,BaseWorkflowField,com.axemble.vdp.ui.framework.composites.base.CtlAbstractNavigation,com.axemble.vdp.ui.framework.widgets.CtlInputWidget,CustomSelectionComponent,FileSizeInputComponent,LightBoxField,LocalizedTextField,PeriodSelectionRangeDatePickerField,SelectionRangeDatePickerField,SelectionRangeTimePickerField,SelectListCustomInputComponent,UrlSelectorField,com.axemble.vdp.ui.framework.foundation.Widget
Widget interface
- Author:
- bchapoton
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddActionListener(IAnyActionListener listener) Add a new listenervoidaddChangeListener(IChangeListener listener) Add a new listenervoidCalled after easysite initializationgetCtrlTemplate(String templateFileName) getCtrlTemplateWriter(String templateFileName) getParam()Get the widget parent blockgetStaticString(String entryID) Retrieve the string to display via its keygetStaticString(String entryID, String arg1) getStaticString(String entryID, String arg1, String arg2) getStaticString(String entryID, String arg1, String arg2, String arg3) Get widget sysnamebooleanReturns true if the list has a action listener, false otherwise.booleanReturns true if the list has a change listener, false otherwise.booleanisHidden()Get if widget is hiddenvoidrefresh()Refresh the WidgetvoidRefresh the WidgetremoveActionListener(IAnyActionListener listener) Removes anIAnyActionListenerfrom the Widget.voidRemoves all actionListeners from the Widget.removeChangeListener(IChangeListener listener) Removes anIChangeListenerfrom the Widget.voidRemoves all changeListeners from the Widget.render()Render the widgetRender the widget in mobile contextvoidsetHidden(boolean isHidden) Set if widget is hiddenvoidsetParentBlock(IBlock parentBlock) Set the widget parent blockvoidsetSysname(String sysname) Set the widget sysName
-
Method Details
-
render
Render the widget- Returns:
- writableWidget
- Throws:
RenderException
-
getParentBlock
IBlock getParentBlock()Get the widget parent block- Returns:
- parentBlock
-
setParentBlock
Set the widget parent block- Parameters:
parentBlock-
-
getSysname
String getSysname()Get widget sysname- Returns:
- sysName
-
setSysname
Set the widget sysName- Parameters:
sysname-
-
isHidden
boolean isHidden()Get if widget is hidden- Returns:
- isHidden
-
setHidden
void setHidden(boolean isHidden) Set if widget is hidden- Parameters:
isHidden-
-
afterInit
void afterInit()Called after easysite initialization -
refresh
void refresh()Refresh the Widget -
addChangeListener
Add a new listener- Parameters:
listener-
-
removeChangeListener
Removes anIChangeListenerfrom the Widget.- Parameters:
listener- theIChangeListenerto remove.
-
removeChangeListeners
void removeChangeListeners()Removes all changeListeners from the Widget. -
hasChangeListeners
boolean hasChangeListeners()Returns true if the list has a change listener, false otherwise.- Returns:
- true if the list has a change listener, false otherwise.
-
getStaticString
-
getStaticString
-
getStaticString
-
getStaticString
-
getStaticString
Retrieve the string to display via its key- Parameters:
entryID-- Returns:
-
addActionListener
Add a new listener- Parameters:
listener-
-
removeActionListener
Removes anIAnyActionListenerfrom the Widget.- Parameters:
listener- theIAnyActionListenerto remove.
-
removeActionListeners
void removeActionListeners()Removes all actionListeners from the Widget. -
hasActionListeners
boolean hasActionListeners()Returns true if the list has a action listener, false otherwise.- Returns:
- true if the list has a action listener, false otherwise.
-
renderMobile
Render the widget in mobile context- Returns:
- Throws:
RenderException
-
refreshWidgets
void refreshWidgets()Refresh the Widget -
getParam
Object getParam() -
getCtrlTemplate
- Throws:
RenderException
-
getCtrlTemplateWriter
- Throws:
RenderException
-