Package com.hybris.cockpitng.core.ui
Interface WidgetInstance
-
- All Superinterfaces:
java.io.Serializable
- All Known Implementing Classes:
DefaultWidgetInstance
public interface WidgetInstance extends java.io.SerializableRepresents an instance of a widget in the view. There can be more than one widget instance for a single widget.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.ObjectgetCreator()java.lang.StringgetId()java.lang.ObjectgetModel()WidgetInstancegetParent()java.lang.StringgetPositionInfo()A string with position info.intgetSelectedChildIndex()WidgetInstancegetTemplateRoot()WidgetgetWidget()voidsetSelectedChildIndex(int index)
-
-
-
Method Detail
-
getModel
java.lang.Object getModel()
- Returns:
- The widget model for this instance
-
getPositionInfo
java.lang.String getPositionInfo()
A string with position info. Can be used e.g. by a container renderer to render a child widget at a defined place.
-
getId
java.lang.String getId()
- Returns:
- The id of this instance, usually the id of the
Widgetplus a suffix.
-
getSelectedChildIndex
int getSelectedChildIndex()
-
setSelectedChildIndex
void setSelectedChildIndex(int index)
-
getParent
WidgetInstance getParent()
- Returns:
- The parent instance.
-
getCreator
java.lang.Object getCreator()
- Returns:
- The object which triggered the instance creation.
-
getTemplateRoot
WidgetInstance getTemplateRoot()
- Returns:
- The template ancestor instance, if existing or null otherwise.
-
-