Class JsonTabItem<GROUP_BOX extends IGroupBox>
java.lang.Object
org.eclipse.scout.rt.ui.html.json.AbstractJsonAdapter<T>
org.eclipse.scout.rt.ui.html.json.AbstractJsonPropertyObserver<T>
org.eclipse.scout.rt.ui.html.json.AbstractJsonWidget<FORM_FIELD>
org.eclipse.scout.rt.ui.html.json.form.fields.JsonFormField<COMPOSITE_FIELD>
org.eclipse.scout.rt.ui.html.json.form.fields.JsonCompositeField<GROUP_BOX,IFormField>
org.eclipse.scout.rt.ui.html.json.form.fields.groupbox.JsonGroupBox<GROUP_BOX>
org.eclipse.scout.rt.ui.html.json.form.fields.tabbox.JsonTabItem<GROUP_BOX>
- Type Parameters:
GROUP_BOX
-
- All Implemented Interfaces:
IJsonAdapter<GROUP_BOX>
,IJsonObject
,IJsonContextMenuOwner
There is no Scout model-class for a TabItem. We simply use the GroupBox class in that case. Problem with that
approach is, that the GroupBox does not have a "marked" property. That's why the JSON Layer must store that state. In
a future Scout release we should create a new AbstractTabItem class extending GroupBox, adding the missing property.
Than we could move a lot of code from here to the new model class.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.eclipse.scout.rt.ui.html.json.AbstractJsonWidget
AbstractJsonWidget.P_WidgetListener
Nested classes/interfaces inherited from class org.eclipse.scout.rt.ui.html.json.AbstractJsonPropertyObserver
AbstractJsonPropertyObserver.P_PropertyChangeListener
-
Field Summary
Fields inherited from class org.eclipse.scout.rt.ui.html.json.AbstractJsonWidget
EVENT_REVEAL, EVENT_SCROLL_TO_TOP
Fields inherited from interface org.eclipse.scout.rt.ui.html.json.menu.IJsonContextMenuOwner
PROP_CURRENT_MENU_TYPES, PROP_MENUS, PROP_MENUS_VISIBLE
-
Constructor Summary
ConstructorDescriptionJsonTabItem
(GROUP_BOX model, IUiSession uiSession, String id, IJsonAdapter<?> parent) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
protected void
Override this method in order to attach listeners on the Scout model object.Returns a string used to identify the object-type in the JSON output (JSON attribute 'objectType').protected void
protected void
handleModelPropertyChange
(String propertyName, Object oldValue, Object newValue) This method is called, when a PropertyChangeEvent from the model occurs and no JsonProperty is registered for the given propertyName.protected void
protected void
initJsonProperties
(GROUP_BOX model) protected boolean
updateMarker
(int markStrategy) Methods inherited from class org.eclipse.scout.rt.ui.html.json.form.fields.groupbox.JsonGroupBox
handleUiPropertyChange
Methods inherited from class org.eclipse.scout.rt.ui.html.json.form.fields.JsonCompositeField
getModelFields, getModelFieldsPropertyName
Methods inherited from class org.eclipse.scout.rt.ui.html.json.form.fields.JsonFormField
attachChildAdapters, detachModel, disposeChildAdapters, handleModelContextMenuChanged, handleModelContextMenuCurrentMenuTypesChanged, handleModelContextMenuVisibleChanged, handleModelPropertyChange, menuTypesToJson, toJson
Methods inherited from class org.eclipse.scout.rt.ui.html.json.AbstractJsonWidget
handleModelReveal, handleModelScrollTopTop, handleModelWidgetEvent, scrollOptionsToJson
Methods inherited from class org.eclipse.scout.rt.ui.html.json.AbstractJsonPropertyObserver
addCustomJsonProperty, addPropertyChangeEvent, addPropertyChangeEvent, addPropertyEventFilterCondition, addPropertyEventFilterCondition, cleanUpEventFilters, filterPropertyChangeEvent, getCustomJsonProperties, getJsonProperty, handleLazyJsonProperties, init, putJsonProperty, removeCustomJsonProperty, removeJsonProperty, responseAlreadyContainsPropertyChangeEvent
Methods inherited from class org.eclipse.scout.rt.ui.html.json.AbstractJsonAdapter
addActionEvent, addActionEvent, addActionEvent, addPropertyChangeEvent, attachAdapter, attachAdapter, attachAdapters, attachAdapters, attachGlobalAdapter, attachGlobalAdapter, attachGlobalAdapters, attachGlobalAdapters, dispose, getAdapter, getAdapter, getAdapters, getAdapters, getGlobalAdapter, getGlobalAdapter, getId, getModel, getObjectTypeVariant, getParent, getUiSession, handleUiEvent, handleUiPropertyChange, hasAncestor, isDisposed, isInitialized, processBufferedEvents, putAdapterIdProperty, putAdapterIdProperty, putAdapterIdsProperty, putAdapterIdsProperty, putProperty, registerAsBufferedEventsAdapter, replaceActionEvent, toString, unregisterAsBufferedEventsAdapter
-
Field Details
-
PROP_MARKED
- See Also:
-
-
Constructor Details
-
JsonTabItem
-
-
Method Details
-
getObjectType
Description copied from interface:IJsonAdapter
Returns a string used to identify the object-type in the JSON output (JSON attribute 'objectType').- Specified by:
getObjectType
in interfaceIJsonAdapter<GROUP_BOX extends IGroupBox>
- Overrides:
getObjectType
in classJsonGroupBox<GROUP_BOX extends IGroupBox>
-
initJsonProperties
- Overrides:
initJsonProperties
in classJsonGroupBox<GROUP_BOX extends IGroupBox>
-
attachModel
protected void attachModel()Description copied from class:AbstractJsonAdapter
Override this method in order to attach listeners on the Scout model object. At this point a JsonAdapter instance has been already created for the model object. The default implementation does nothing.- Overrides:
attachModel
in classJsonFormField<GROUP_BOX extends IGroupBox>
-
handleModelPropertyChange
Description copied from class:AbstractJsonPropertyObserver
This method is called, when a PropertyChangeEvent from the model occurs and no JsonProperty is registered for the given propertyName. Note that you must check if the property-change-event has been filtered by using theAbstractJsonPropertyObserver.filterPropertyChangeEvent(PropertyChangeEvent)
method before you add an event to the JSON response. The default implementation does nothing.- Overrides:
handleModelPropertyChange
in classAbstractJsonPropertyObserver<GROUP_BOX extends IGroupBox>
-
updateMarker
protected boolean updateMarker(int markStrategy) -
handleModelSaveNeededChanged
protected void handleModelSaveNeededChanged() -
handleModelEmptyChanged
protected void handleModelEmptyChanged() -
addMarkedPropertyChangeEvent
protected void addMarkedPropertyChangeEvent()
-