Package com.im.ijc.core.api.views
Interface IJCWidget.DesignerHandle
-
- All Superinterfaces:
IJCWidget
- Enclosing interface:
- IJCWidget
public static interface IJCWidget.DesignerHandle extends IJCWidget
Part ofIJCWidgetwhich is supposed to be used for the communication between view (and related IJC infrastructure) and the widget. It is not aimed for a direct usage by API clients.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.im.ijc.core.api.views.IJCWidget
IJCWidget.ActionsProvider, IJCWidget.Cacheable, IJCWidget.Configurable, IJCWidget.Customizable<S>, IJCWidget.DesignerHandle, IJCWidget.Downloadable, IJCWidget.Editable, IJCWidget.EventManager, IJCWidget.GroupCustomizable<N extends org.openide.nodes.Node>, IJCWidget.HyperlinkAble, IJCWidget.Popupable, IJCWidget.Queryable, IJCWidget.RendererCallback, IJCWidget.RendererProvider, IJCWidget.Updateable, IJCWidget.Viewable, IJCWidget.WidgetContainerHandle
-
-
Field Summary
-
Fields inherited from interface com.im.ijc.core.api.views.IJCWidget
PROP_BOUND_FIELDS, PROP_SELECTED_FIELDS, PROP_VERTEX_STATE, PROP_VIEW_MODE
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidactivate(com.im.df.api.friend.data.ViewDataProvider vdp)This method is called by an owner of a widget at the beginning of the life-cycle of the widget.javax.swing.JComponentgetBrowseModeComponent()javax.swing.JComponentgetBuildModeRenderer()Should not be called in case theDesignerHandleimplements evenDesignerContainerHandle.java.lang.StringgetFactoryId()FormDataBeangetFormData()booleanisFocusable()booleanisRebindable()voidrebind(DesignerHandleDescriptor newDescriptor)This method notifies widget that it was bound (or re-bound) to the given fields and/or that its settings have changed.voidrelease()This method is called by an owner of a widget at the end of the life-cycle of the widget.voidresume()Called when widget is about to be shown again in UI.voidsetViewMode(ViewMode viewMode)Notifies widget that the mode of the view has changed (e.g.voidsuspend()Called when widget will be hidden in UI.com.chemaxon.ijc.form.api.AbstractWidgettoFormsModel()Retrieves Forms Model representation of this IJC widget.-
Methods inherited from interface com.im.ijc.core.api.views.IJCWidget
addPropertyChangeListener, getBoundFields, getForm, getID, getLookup, getSelectedFields, getVertexState, getVertexState, getView, getViewMode, isMultipleRow, removePropertyChangeListener
-
-
-
-
Method Detail
-
getBrowseModeComponent
javax.swing.JComponent getBrowseModeComponent()
- Returns:
- the component used in the browse mode
-
getBuildModeRenderer
javax.swing.JComponent getBuildModeRenderer()
Should not be called in case theDesignerHandleimplements evenDesignerContainerHandle.- Returns:
- the component used in build mode
-
setViewMode
void setViewMode(ViewMode viewMode)
Notifies widget that the mode of the view has changed (e.g. by user from "Design" mode to "Browse" mode). Widget is supposed to take appropriate actions, like change its content, border, etc.- Parameters:
viewMode- the view mode
-
isRebindable
boolean isRebindable()
- Returns:
- bind field(s) to widget action is enabled for widgets that return
true.
-
rebind
void rebind(DesignerHandleDescriptor newDescriptor)
This method notifies widget that it was bound (or re-bound) to the given fields and/or that its settings have changed. Widget should respond accordingly. If the given list is empty then widget becomes unbound.- Parameters:
newDescriptor- fields to which widget was just bound together with the new settings; might benullin which case widget becomes unbound- Since:
- 14.10.20
-
isFocusable
boolean isFocusable()
-
getFactoryId
java.lang.String getFactoryId()
-
getFormData
FormDataBean getFormData()
-
toFormsModel
com.chemaxon.ijc.form.api.AbstractWidget toFormsModel()
Retrieves Forms Model representation of this IJC widget.- Returns:
- FormsModel widget
- Since:
- 18.23.0
-
activate
void activate(com.im.df.api.friend.data.ViewDataProvider vdp)
This method is called by an owner of a widget at the beginning of the life-cycle of the widget. E.g. when a view owning the widget was opened, widget is given an opportunity to perform initialization steps. It is called only once per widget life-cycle.- Parameters:
vdp- TheViewDataProviderwhich will serve this widget with data.- Since:
- 14.10.20
-
release
void release()
This method is called by an owner of a widget at the end of the life-cycle of the widget. E.g. when a view owning the widget is being closed, widget is given an opportunity to perform clean-up like unregistering listeners, etc. It is called only once per widget life-cycle.- Since:
- 6.0
-
suspend
void suspend()
Called when widget will be hidden in UI.- Since:
- 6.0
- See Also:
resume()
-
resume
void resume()
Called when widget is about to be shown again in UI.- Since:
- 6.0
- See Also:
suspend()
-
-