com.im.ijc.widgets.abstractwidget
Class AbstractWidget<CS>
java.lang.Object
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 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> |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractWidget
public AbstractWidget(String factoryId,
DFView view)
AbstractWidget
protected AbstractWidget(String factoryId,
DFView view,
CS settings)
- Parameters:
factoryId - view - settings - settings object or null
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