public class NetworkChartController extends DefaultWidgetController
| Modifier and Type | Field and Description |
|---|---|
protected org.codehaus.jackson.map.ObjectMapper |
mapper |
static String |
MODEL_INIT_DATA |
static String |
MODEL_NETWORK_EDGES |
static String |
MODEL_NETWORK_NODES |
static String |
SETTING_CHART_OPTIONS |
static String |
SETTING_DATA_MANIPULATION_HANDLER |
static String |
SETTING_NETWORK_POPULATOR |
static String |
SETTING_VIEW_EVENT_HANDLER |
static String |
SOCKET_IN_INIT_DATA |
static String |
SOCKET_IN_UPDATE_OBJECT |
| Constructor and Description |
|---|
NetworkChartController() |
| Modifier and Type | Method and Description |
|---|---|
Options |
getChartOptions() |
protected DataManipulationHandler |
getDataManipulationHandler() |
NetworkChart |
getNetworkChart() |
protected NetworkPopulator |
getNetworkPopulator() |
protected ViewEventHandler |
getViewEventHandler() |
protected void |
handleEvent(CockpitEvent event,
Consumer consumer) |
void |
handleObjectsDeletedEvent(CockpitEvent event) |
void |
handleObjectsUpdatedEvent(CockpitEvent event) |
void |
initData(Object initData) |
void |
initialize(org.zkoss.zk.ui.Component comp)
Override this method to do initialization stuff for your widget, like initialize widget settings, restore view
state from viewmodel, etc.
|
protected void |
initializeDataManipulationListeners(DataManipulationHandler dataManipulationHandler,
NetworkChartContext context) |
protected void |
initializeViewEventListeners(ViewEventHandler viewEventHandler,
NetworkChartContext context) |
protected void |
initModel() |
protected List |
joinCollections(Collection... collections) |
protected void |
resetModel() |
protected void |
restoreNetworkFromModel() |
void |
setNetworkChart(NetworkChart networkChart) |
protected void |
storeNetworkUpdateInModel(NetworkUpdates updatesToStore)
Persists network updates in model
|
void |
updateObject(Object objectToUpdate) |
doAfterCompose, doBeforeCompose, doBeforeComposeChildren, executeOperation, getDragAndDropStrategy, getLabel, getLabel, getModel, getValue, getWidgetDragAndDropStrategyRepository, getWidgetInstanceManager, getWidgetRoot, getWidgetSettings, getWidgetslot, getWidgetTitle, getWidgetUtils, initDragAndDropAwareness, initWidgetSetting, initWidgetSetting, initWidgetSetting, initWidgetSetting, initWidgetSetting, invokeListenerMethod, onSocketInput, preInitialize, sendOutput, sendOutputAfterOperation, sendOutputAfterOperation, sendOutputAfterOperation, setValue, setWidgetInstanceManager, setWidgetTitlescanEventListenersalert, didActivate, getPage, willClone, willPassivatepublic static final String SOCKET_IN_INIT_DATA
public static final String SOCKET_IN_UPDATE_OBJECT
public static final String SETTING_CHART_OPTIONS
public static final String SETTING_NETWORK_POPULATOR
public static final String SETTING_VIEW_EVENT_HANDLER
public static final String SETTING_DATA_MANIPULATION_HANDLER
public static final String MODEL_INIT_DATA
public static final String MODEL_NETWORK_NODES
public static final String MODEL_NETWORK_EDGES
protected final transient org.codehaus.jackson.map.ObjectMapper mapper
public void initialize(org.zkoss.zk.ui.Component comp)
DefaultWidgetControllerDefaultWidgetController.doAfterCompose(Component) everytime your widget
view is created. See GenericForwardComposer.doAfterCompose(Component) for more details.initialize in class DefaultWidgetControllerprotected void initModel()
protected void resetModel()
protected void restoreNetworkFromModel()
protected List joinCollections(Collection... collections)
public void initData(Object initData)
public void updateObject(Object objectToUpdate)
public void handleObjectsUpdatedEvent(CockpitEvent event)
public void handleObjectsDeletedEvent(CockpitEvent event)
protected void handleEvent(CockpitEvent event, Consumer consumer)
protected void initializeViewEventListeners(ViewEventHandler viewEventHandler, NetworkChartContext context)
protected void initializeDataManipulationListeners(DataManipulationHandler dataManipulationHandler, NetworkChartContext context)
protected void storeNetworkUpdateInModel(NetworkUpdates updatesToStore)
updatesToStore - protected NetworkPopulator getNetworkPopulator()
NetworkPopulator which is responsible for providing initial data to network chart.protected ViewEventHandler getViewEventHandler()
ViewEventHandler which is responsible for handling network events: click, doubleClick, selection and
deselection of node and edge.protected DataManipulationHandler getDataManipulationHandler()
DataManipulationHandler which is responsible for manipulating network structure.public void setNetworkChart(NetworkChart networkChart)
public NetworkChart getNetworkChart()
Copyright © 2018. All rights reserved.