Package com.im.ijc.core.api.views
Interface IJCWidget
-
- All Known Subinterfaces:
IJCWidget.DesignerHandle
,IJCWidget.RendererProvider
public interface IJCWidget
A widget displayed in an IJC view.It can be bound to one or more fields or can be static. An example of static widget is a label or containers for other widgets which are not bound to any fields. Bound widgets are typically associated with one field but can use more than that (cf. table, sheet or charts).
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
IJCWidget.ActionsProvider
static interface
IJCWidget.Cacheable
Interface helper to reset cached renderer's widget.static interface
IJCWidget.Configurable
Interface helper to save renderer's widget customizable settings.static interface
IJCWidget.Customizable<S>
static interface
IJCWidget.DesignerHandle
Part ofIJCWidget
which is supposed to be used for the communication between view (and related IJC infrastructure) and the widget.static interface
IJCWidget.Downloadable
Extension ofIJCWidget
which allows to download files (formats like pdf, doc, image) loaded in binary-data fields.static interface
IJCWidget.Editable
Extension ofIJCWidget
which allows to invoke start editing of selected data.static interface
IJCWidget.EventManager
Provides event triggers accessible by external actions.static interface
IJCWidget.GroupCustomizable<N extends org.openide.nodes.Node>
Support for widget customization performed on multi-selection of widgets.static interface
IJCWidget.HyperlinkAble
Interface helper to follow hyperlinks on/from renderer's widget.static interface
IJCWidget.Popupable
Definition of popup for browse mode.static interface
IJCWidget.Queryable
Implementation of query support provided in widget lookup.static interface
IJCWidget.RendererCallback
Interface to set widget callback to renderer.static interface
IJCWidget.RendererProvider
static interface
IJCWidget.Updateable
Interface helper to update renderer's widget.static interface
IJCWidget.Viewable
Extension ofIJCWidget
which allows to show detail of the selected data.static interface
IJCWidget.WidgetContainerHandle
Interface helper providing data about container widget.
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
PROP_BOUND_FIELDS
Fired whenfields bound
to the widget have changed.static java.lang.String
PROP_SELECTED_FIELDS
Property name used when selected fields are changed.static java.lang.String
PROP_VERTEX_STATE
Fired whenactive VertexState
of the widget has changed.static java.lang.String
PROP_VIEW_MODE
Fired whenview mode
has changed.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addPropertyChangeListener(java.beans.PropertyChangeListener listener)
java.util.List<? extends com.im.df.api.ddl.DFField>
getBoundFields()
Returns fields bound by this widgets.AbstractViewTopComponent
getForm()
Returns form or grid view to which this widget belongs.java.lang.String
getID()
org.openide.util.Lookup
getLookup()
Widget lookup contains implementation of inner interfaces that define various capabilities of this widget.java.util.List<? extends com.im.df.api.ddl.DFField>
getSelectedFields()
Return currently selected fields in this widget.com.im.df.api.dml.DFResultSet.VertexState
getVertexState()
Widget can be bound tofield
s from more then oneDFResultSet.VertexState
.com.im.df.api.dml.DFResultSet.VertexState
getVertexState(com.im.df.api.ddl.DFField field)
Returns VertexState which is mapped to anentity
which contains the given field.com.im.df.api.ddl.DFView
getView()
Returns view to which this widget belongs.ViewMode
getViewMode()
boolean
isMultipleRow()
void
removePropertyChangeListener(java.beans.PropertyChangeListener listener)
-
-
-
Field Detail
-
PROP_VIEW_MODE
static final java.lang.String PROP_VIEW_MODE
Fired whenview mode
has changed.- See Also:
- Constant Field Values
-
PROP_BOUND_FIELDS
static final java.lang.String PROP_BOUND_FIELDS
Fired whenfields bound
to the widget have changed.- See Also:
- Constant Field Values
-
PROP_VERTEX_STATE
static final java.lang.String PROP_VERTEX_STATE
Fired whenactive VertexState
of the widget has changed.- See Also:
- Constant Field Values
-
PROP_SELECTED_FIELDS
static final java.lang.String PROP_SELECTED_FIELDS
Property name used when selected fields are changed. E.g. when column selection in the table widget has changed.- See Also:
- Constant Field Values
-
-
Method Detail
-
getViewMode
ViewMode getViewMode()
- Returns:
- active
mode
of this widget. The mode is changed when user switches it in IJC session, for example by clicking on Design or Browse mode buttons. SeePROP_VIEW_MODE
property if you are interested in listening on changes.
-
getID
java.lang.String getID()
- Returns:
- unique identifier of this widget. The context of uniqueness is currently within the
view
to which the designer handle belongs.
-
getView
com.im.df.api.ddl.DFView getView()
Returns view to which this widget belongs.- Returns:
- the view
-
getBoundFields
java.util.List<? extends com.im.df.api.ddl.DFField> getBoundFields()
Returns fields bound by this widgets.- Returns:
- List of fields. Might be empty but never returns
null
.
-
getForm
AbstractViewTopComponent getForm()
Returns form or grid view to which this widget belongs.- Returns:
- the view
-
isMultipleRow
boolean isMultipleRow()
- Returns:
- whether a widget is capable of displaying values from more then one row. Example of such widgets are tables, charts, molecule matrix, etc. On the opposite side are e.g. text fields, checkboxes, ..., which are examples of single row only widgets.
-
getVertexState
com.im.df.api.dml.DFResultSet.VertexState getVertexState()
Widget can be bound tofield
s from more then oneDFResultSet.VertexState
. This method returns "master"VertexState
of the widget. Which is selected as masterVertexState
depends on semantics of particular widget implementations.- Returns:
- this IJCWidget's master
VertexState
. Might benull
. - See Also:
getVertexState(DFField)
-
getVertexState
com.im.df.api.dml.DFResultSet.VertexState getVertexState(com.im.df.api.ddl.DFField field)
Returns VertexState which is mapped to anentity
which contains the given field.- Parameters:
field
- the field for which VertexState is to be found- Returns:
- the VertexState. Might be
null
. - See Also:
getVertexState()
-
getSelectedFields
java.util.List<? extends com.im.df.api.ddl.DFField> getSelectedFields()
Return currently selected fields in this widget. What exactly are those depends on individual widgets implementations. For example table might return fields representing columns for currently selected cells. Text field might simply return the field it represents.This property can change, so listen to
PROP_SELECTED_FIELDS
property changes if you need it.- Returns:
- currently selected fields
-
getLookup
org.openide.util.Lookup getLookup()
Widget lookup contains implementation of inner interfaces that define various capabilities of this widget.- Returns:
- the lookup
-
addPropertyChangeListener
void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
-
removePropertyChangeListener
void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
-
-