ilog.tgo.faces.network.component
Class IltFacesNetworkView

java.lang.Object
  extended by javax.faces.component.UIComponent
      extended by javax.faces.component.UIComponentBase
          extended by javax.faces.component.UIGraphic
              extended by ilog.views.faces.component.IlvBasicView
                  extended by ilog.views.faces.component.IlvFacesView
                      extended by ilog.tgo.faces.graph.component.IltFacesGraphView
                          extended by ilog.tgo.faces.network.component.IltFacesNetworkView
All Implemented Interfaces:
IltFacesJTGOConstants, IlvFacesComponent, IlvFacesConstants, IlvFrameworkConstants, Serializable, StateHolder
Direct Known Subclasses:
IltFacesDHTMLNetworkView

public abstract class IltFacesNetworkView
extends IltFacesGraphView

This class defines the basic JTGO Network Faces component.

Since:
JViews 7.5
See Also:
Serialized Form

Field Summary
static String DefaultConfigurationFileName
          The file name of the default faces configuration.
 
Fields inherited from class ilog.views.faces.component.IlvFacesView
MAX_ZOOM_DEFAULT_VALUE, MIN_ZOOM_DEFAULT_VALUE, PAN_FACTOR_DEFAULT_VALUE, ZOOM_FACTOR_DEFAULT_VALUE
 
Fields inherited from class ilog.views.faces.component.IlvBasicView
DEFAULT_OBJECT_FINDER
 
Fields inherited from class javax.faces.component.UIGraphic
COMPONENT_FAMILY, COMPONENT_TYPE
 
Fields inherited from class javax.faces.component.UIComponent
bindings
 
Fields inherited from interface ilog.views.faces.IlvFacesConstants
BUTTON_GROUP_ID, BUTTON_TYPE, CHARTS_BUNDLE, CORE_BUNDLE, CURSOR, DATA, DECODED_PROPERTY, DEFAULT_LINE_COLOR, DELETION_ALLOWED, DIAGRAMMER_BUNDLE, ENABLED, FILL_ON, FORCE_UPDATE_PROPERTIES, FRAMEWORK_BUNDLE, GANTT_BUNDLE, HEIGHT, IMAGE, IMAGE_MODE, INFO_PROVIDER_MB, INT_NOT_DEFINED, ITEM_DISABLED_STYLE_CLASS, ITEM_HIGHLIGHTED_STYLE_CLASS, ITEM_STYLE_CLASS, LINE_COLOR, LINE_WIDTH, MAPS_BUNDLE, MENU_MODEL_ID, MESSAGE, MESSAGE_BOX, MESSAGE_BOX_ID, MOVE_ALLOWED, OBJECT_FINDER, PARAM_COMPID, PARAM_DATA, PARAM_KEY, PARAM_NAMESPACE, PARAM_RESOURCE, PARAM_SERVICE, PARAM_TYPE, POPUP_MENU, POPUP_MENU_FACTORY, POPUP_MENU_FACTORY_CLASS, PORTLET_NAMESPACE, PROJECT, RESOURCES_PATH, RESOURCES_PATH_PREFIX, ROLLOVER_IMAGE, SELECTED, SELECTED_IMAGE, SERVICE_FORWARD, SERVICE_FORWARD_INT, SERVLET, SERVLET_CLASS, SERVLET_URL, STYLE, STYLE_CLASS, TGO_BUNDLE, TITLE, TOGGLE, VALUE, VIEW, VIEW_ID, WIDTH
 
Fields inherited from interface ilog.tgo.faces.IltFacesJTGOConstants
CONTEXT, DATA_SOURCE, DATA_SOURCE_ID, DEFAULT_STYLE_SHEET, EQUIPMENT, NETWORK, OBJECT_ACTION_MB, PROPERTY_ACCESSOR, STYLE_SHEETS
 
Fields inherited from interface ilog.views.faces.IlvFrameworkConstants
ACTION_NAME, AUTO_REFRESH, BOUNDING_BOX, CONSTRAINED_ON_CONTENTS, INTERACTOR, INTERACTOR_ID, MAX_ZOOM_LEVEL, MIN_ZOOM_LEVEL, NB_BUTTONS, ORIENTATION, ORIENTATION_HORIZONTAL, ORIENTATION_VERTICAL, PAN_FACTOR, STATIC_LAYERS_COUNT, TILE_SIZE, VISIBLE_LAYERS, ZOOM_FACTOR, ZOOM_LEVELS
 
Constructor Summary
protected IltFacesNetworkView()
          Creates a new IltFacesNetworkView instance.
 
Method Summary
protected abstract  IlpNetwork createNetworkComponent(String defaultStyleSheet, IlpContext context)
          This method is called only once when creating the underlying IlpNetwork instance.
static String getComponentType()
          Returns the component type identifier for this component.
 String getDefaultStyleSheet()
          Returns the URL of the default style sheet.
 String getFamily()
          

Returns the identifier of the component family to which this component belongs.

 IlpNetwork getNetwork()
          Returns the IlpNetwork instance wrapped by this IltFacesNetworkView instance.
 void setNetwork(IlpNetwork network)
          Sets the IlpNetwork wrapped by this IltFacesNetworkView instance.
 
Methods inherited from class ilog.tgo.faces.graph.component.IltFacesGraphView
getBoundingBox, getBoundingBox, getContext, getDataSource, getDataSourceId, getDefaultObjectFinder, getGraphView, getProject, getStyleSheets, restoreState, saveState, setContext, setDataSource, setDataSourceId, setDefaultStyleSheet, setProject, setStyleSheets, setView, supportsDynamicLayers, updateModel
 
Methods inherited from class ilog.views.faces.component.IlvFacesView
getBoundingBox, getInteractor, getInteractorId, getMaxZoomLevel, getMinZoomLevel, getPanFactor, getStaticLayersCount, getTileSize, getView, getVisibleLayers, getZoomFactor, getZoomLevels, isConstrainedOnContents, processValidators, setBoundingBox, setConstrainedOnContents, setInteractor, setInteractorId, setMaxZoomLevel, setMinZoomLevel, setPanFactor, setStaticLayersCount, setTileSize, setVisibleLayers, setZoomFactor, setZoomLevels
 
Methods inherited from class ilog.views.faces.component.IlvBasicView
clearDecodedPropertyMap, createFacesComponent, getAttributes, getData, getHeight, getMessageBox, getMessageBoxId, getStyle, getStyleClass, getWidth, isDecodedProperty, processUpdates, resetDecodedProperties, setData, setDecodedProperty, setHeight, setMessageBox, setMessageBoxId, setStyle, setStyleClass, setWidth
 
Methods inherited from class javax.faces.component.UIGraphic
getUrl, getValue, getValueBinding, getValueExpression, setUrl, setValue, setValueBinding, setValueExpression
 
Methods inherited from class javax.faces.component.UIComponentBase
addFacesListener, broadcast, decode, encodeBegin, encodeChildren, encodeEnd, findComponent, getChildCount, getChildren, getClientId, getFacesContext, getFacesListeners, getFacet, getFacetCount, getFacets, getFacetsAndChildren, getId, getParent, getRenderer, getRendererType, getRendersChildren, invokeOnComponent, isRendered, isTransient, processDecodes, processRestoreState, processSaveState, queueEvent, removeFacesListener, restoreAttachedState, saveAttachedState, setId, setParent, setRendered, setRendererType, setTransient
 
Methods inherited from class javax.faces.component.UIComponent
encodeAll, getContainerClientId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DefaultConfigurationFileName

public static String DefaultConfigurationFileName
The file name of the default faces configuration. It should be resolved by using the IlpURLAccessService.

Customized instances of IlpNetwork should be declared in the following way:

   IlpNetwork myNetwork = new IlpNetwork(IltFacesNetworkView.DefaultConfigurationFileName, myContext);
 

Constructor Detail

IltFacesNetworkView

protected IltFacesNetworkView()
Creates a new IltFacesNetworkView instance.

Method Detail

setNetwork

public void setNetwork(IlpNetwork network)
Sets the IlpNetwork wrapped by this IltFacesNetworkView instance.

Parameters:
network - The IlpNetwork instance to set.

getDefaultStyleSheet

public String getDefaultStyleSheet()
Returns the URL of the default style sheet.

Overrides:
getDefaultStyleSheet in class IltFacesGraphView

createNetworkComponent

protected abstract IlpNetwork createNetworkComponent(String defaultStyleSheet,
                                                     IlpContext context)
This method is called only once when creating the underlying IlpNetwork instance.

Parameters:
defaultStyleSheet - The default CSS style sheet to be applied.
context - The ILOG JTGO context to be used.
Returns:
The newly created IlpNetwork instance.

getNetwork

public IlpNetwork getNetwork()
                      throws Exception
Returns the IlpNetwork instance wrapped by this IltFacesNetworkView instance.

Returns:
The IlpNetwork instance.
Throws:
Exception - if the session has expired between two requests and the IlpNetwork instance was lost.

getComponentType

public static String getComponentType()
Returns the component type identifier for this component.

Returns:
The component type identifier for this component.

getFamily

public String getFamily()

Returns the identifier of the component family to which this component belongs. This identifier, in conjunction with the value of the rendererType property, may be used to select the appropriate Renderer for this component instance.

This implementation returns the fully qualified class name.

Overrides:
getFamily in class IlvBasicView
Returns:
The family to which this component belongs.


Copyright © 1996-2007 ILOG S.A. All rights reserved.   Documentation homepage.   . All Rights Reserved.