com.im.ijc.widgets/1 5.9.1

com.im.ijc.widgets.abstractwidget
Class AbstractWidget<CS>

java.lang.Object
  extended by com.im.ijc.widgets.abstractwidget.AbstractWidget<CS>
All Implemented Interfaces:
IJCWidget, IJCWidget.Customizable<CS>, IJCWidget.DesignerHandle
Direct Known Subclasses:
AbstractBindingWidget, AbstractTableWidget, StaticWidget

public abstract class AbstractWidget<CS>
extends Object
implements IJCWidget.DesignerHandle, IJCWidget.Customizable<CS>


Nested Class Summary
 
Nested classes/interfaces inherited from interface com.im.ijc.core.api.views.IJCWidget
IJCWidget.Breakable, IJCWidget.Cacheable, IJCWidget.Configurable, IJCWidget.Customizable<S>, IJCWidget.DesignerHandle, IJCWidget.Editable, IJCWidget.GroupCustomizable<N extends Node>, IJCWidget.HyperlinkAble, IJCWidget.Popupable, IJCWidget.Queryable, IJCWidget.Releaseable, IJCWidget.RendererCallback, IJCWidget.RendererProvider, IJCWidget.Updateable, IJCWidget.Viewable, IJCWidget.WidgetContainerHandle<S>
 
Field Summary
 
Fields inherited from interface com.im.ijc.core.api.views.IJCWidget
PROP_BOUND_FIELDS, PROP_SELECTED_FIELDS, PROP_VERTEX_STATE, PROP_VIEW, PROP_VIEW_MODE
 
Fields inherited from interface com.im.ijc.core.api.views.IJCWidget.Customizable
PROP_SETTINGS
 
Constructor Summary
  AbstractWidget(String factoryId, DFView view)
           
protected AbstractWidget(String factoryId, DFView view, CS settings)
           
 
Method Summary
 void addPropertyChangeListener(PropertyChangeListener listener)
           
protected  void firePropertyChange(String propName, Object oldValue, Object newValue)
           
protected  WidgetBorder getBorder()
           
 String getFactoryId()
           
 AbstractViewTopComponent getForm()
           
 FormDataBean getFormData()
           
 Lookup getLookup()
          Lookup that always contains this instance and additional objects added by subclasses.
 DFView getView()
           
 ViewMode getViewMode()
           
 CS getWidgetSettings()
           
protected  InstanceContent instanceContent()
          Accessor to an instance content to modify widget's lookup.
protected abstract  void modeChanged(ViewMode oldMode, ViewMode newMode)
           
<T> void
putUniquelyIntoLookup(T item)
          Adds given item into the widget's lookup.
 void removePropertyChangeListener(PropertyChangeListener listener)
           
protected  void setSettings(CS settings)
           
 void setViewMode(ViewMode viewMode)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.im.ijc.core.api.views.IJCWidget.DesignerHandle
bind, doBind, getBrowseModeComponent, getBuildModeRenderer, isFocusable, isRebindable, setVertexState
 
Methods inherited from interface com.im.ijc.core.api.views.IJCWidget
getBoundFields, getSelectedFields, getVertexState, isMultipleRow
 
Methods inherited from interface com.im.ijc.core.api.views.IJCWidget.Customizable
customizeUISettings
 

Constructor Detail

AbstractWidget

public AbstractWidget(String factoryId,
                      DFView view)

AbstractWidget

protected AbstractWidget(String factoryId,
                         DFView view,
                         CS settings)
Parameters:
factoryId -
view -
settings - settings object or null
Method Detail

getLookup

public Lookup getLookup()
Lookup that always contains this instance and additional objects added by subclasses.

Specified by:
getLookup in interface IJCWidget

instanceContent

protected InstanceContent instanceContent()
Accessor to an instance content to modify widget's lookup.


putUniquelyIntoLookup

public <T> void putUniquelyIntoLookup(T item)
Adds given item into the widget's lookup. If there was previously item with the same type it is removed. If there were more then one of such items the IllegalStateException is thrown.

Type Parameters:
T - item's type
Parameters:
item - item to be added

getWidgetSettings

public CS getWidgetSettings()
Specified by:
getWidgetSettings in interface IJCWidget.Customizable<CS>

getBorder

protected WidgetBorder getBorder()

setSettings

protected void setSettings(CS settings)

firePropertyChange

protected final void firePropertyChange(String propName,
                                        Object oldValue,
                                        Object newValue)

addPropertyChangeListener

public final void addPropertyChangeListener(PropertyChangeListener listener)
Specified by:
addPropertyChangeListener in interface IJCWidget

removePropertyChangeListener

public final void removePropertyChangeListener(PropertyChangeListener listener)
Specified by:
removePropertyChangeListener in interface IJCWidget

getFactoryId

public final String getFactoryId()
Specified by:
getFactoryId in interface IJCWidget.DesignerHandle

getView

public final DFView getView()
Specified by:
getView in interface IJCWidget

getViewMode

public final ViewMode getViewMode()
Specified by:
getViewMode in interface IJCWidget

setViewMode

public final void setViewMode(ViewMode viewMode)
Specified by:
setViewMode in interface IJCWidget.DesignerHandle

modeChanged

protected abstract void modeChanged(ViewMode oldMode,
                                    ViewMode newMode)

getForm

public final AbstractViewTopComponent getForm()
Specified by:
getForm in interface IJCWidget

getFormData

public final FormDataBean getFormData()
Specified by:
getFormData in interface IJCWidget.DesignerHandle

com.im.ijc.widgets/1 5.9.1