public class IlvFacesDiagrammerView extends IlvFacesView implements IlvFacesConstants, IlvFacesDiagrammerConstants
MAX_ZOOM_DEFAULT_VALUE, MIN_ZOOM_DEFAULT_VALUE, PAN_FACTOR_DEFAULT_VALUE, ZOOM_FACTOR_DEFAULT_VALUE
DEFAULT_OBJECT_FINDER
ATTRS_WITH_DECLARED_DEFAULT_VALUES, BEANINFO_KEY, bindings, COMPOSITE_COMPONENT_TYPE_KEY, COMPOSITE_FACET_NAME, CURRENT_COMPONENT, CURRENT_COMPOSITE_COMPONENT, FACETS_KEY, HONOR_CURRENT_COMPONENT_ATTRIBUTES_PARAM_NAME, VIEW_LOCATION_KEY
AFTER_HANDLER, BASETEXTDIRECTION, BEFORE_HANDLER, BUTTON_GROUP_ID, BUTTON_TYPE, CHARTS_BUNDLE, CHARTS_MESSAGE_BUNDLE, CORE_BUNDLE, CORE_MESSAGE_BUNDLE, CURSOR, DATA, DECODED_PROPERTY, DEFAULT_LINE_COLOR, DELETION_ALLOWED, DIAGRAMMER_BUNDLE, DIAGRAMMER_MESSAGE_BUNDLE, ENABLED, EVENT_TYPE, FILL_ON, FORCE_UPDATE_PROPERTIES, FRAMEWORK_BUNDLE, FRAMEWORK_MESSAGE_BUNDLE, GANTT_BUNDLE, GANTT_MESSAGE_BUNDLE, HEIGHT, IMAGE, IMAGE_MODE, INFO_PROVIDER_MB, INT_NOT_DEFINED, INTERACTORS, INTERCEPT_INTERACTOR, ITEM_DISABLED_STYLE_CLASS, ITEM_HIGHLIGHTED_STYLE_CLASS, ITEM_STYLE_CLASS, LINE_COLOR, LINE_WIDTH, MAPS_BUNDLE, MAPS_MESSAGE_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, PROGRESSIVE_ZOOM, PROJECT, RENDER, RESOURCES_PATH, RESOURCES_PATH_PREFIX, ROLLOVER_IMAGE, SCROLL_BAR, SELECTED, SELECTED_IMAGE, SERVICE_FORWARD, SERVICE_FORWARD_INT, SERVLET, SERVLET_CLASS, SERVLET_URL, STYLE, STYLE_CLASS, TGO_BUNDLE, TGO_MESSAGE_BUNDLE, TITLE, TOGGLE, VALUE, VIEW, VIEW_ID, WIDTH
DASHBOARD_DIAGRAM, DATA_SOURCE, DATA_SOURCE_ID, DATA_URL, DIAGRAMMER, EDITABLE, INPUT_XSL, OUTPUT_XSL, PARAM_CSS, PARAM_XML, PROPERTY_ACCESSOR, STYLE_SHEETS
AUTO_REFRESH, BOUNDING_BOX, COLOR, CONSTRAINED_ON_CONTENTS, GROUPABLE, HITMAP_LAYERS, IGNORE_CONTENT_ASPECT_RATIO, INTERACTOR, INTERACTOR_ID, MAX_ZOOM_LEVEL, MIN_ZOOM_LEVEL, NB_BUTTONS, OPACITY, ORIENTATION, ORIENTATION_HORIZONTAL, ORIENTATION_VERTICAL, PAN_FACTOR, STATIC_LAYERS_COUNT, TEMPLATE, TILE_SIZE, TOLERANCE, VISIBLE_LAYERS, ZOOM_FACTOR, ZOOM_LEVELS
Constructor and Description |
---|
IlvFacesDiagrammerView()
Creates a new
IlvFacesDiagrammerView instance. |
Modifier and Type | Method and Description |
---|---|
static String |
getComponentType()
Returns the type of this component.
|
IlvFacesDiagrammerDataSource |
getDataSource()
Returns the diagrammer data source.
|
String |
getDataSourceId()
Returns the data source identifier.
|
IlvObjectSelectedFinder |
getDefaultObjectFinder()
Returns the default finder of this view.
|
IlvDiagrammer |
getDiagrammer()
Returns the
IlvDiagrammer instance wrapped by this IlvFacesDiagrammer instance. |
String |
getFamily()
Returns the identifier of the component family to which this component
belongs.
|
String |
getProject()
Returns the URL of the diagrammer designer project of this diagrammer.
|
String |
getStyleSheets()
Returns the comma separated list of style sheets URL.
|
boolean |
isEditable()
Returns whether or not the
IlvFacesDiagrammerView is editable. |
void |
restoreState(jakarta.faces.context.FacesContext context,
Object stateObj)
Restores the state of this component from the
stateObj parameter. |
Object |
saveState(jakarta.faces.context.FacesContext context)
Returns the state of this component.
|
void |
setDataSource(IlvFacesDiagrammerDataSource dataSource)
Sets the data source to this diagrammer instance.
|
void |
setDataSourceId(String dataSourceId)
Sets the data source identifier to this diagrammer instance.
|
void |
setDiagrammer(IlvDiagrammer diagrammer)
Sets the
IlvDiagrammer wrapped by this IlvFacesDiagrammer instance. |
void |
setEditable(boolean value)
Sets whether or not the
IlvFacesDiagrammerView is editable. |
void |
setProject(String project)
Sets the diagrammer designer project to this diagrammer.
|
void |
setStyleSheets(String styleSheets)
Sets the comma separated list of style sheets URL.
|
void |
showAll()
Resets the view bounding box to show all the diagrammer view.
|
void |
updateModel(jakarta.faces.context.FacesContext context)
This method updates the referenced values with the local values of the
component if these values were updated from the client.
|
getBoundingBox, getHitmapLayers, getHotkeys, getInteractor, getInteractorId, getMaxZoomLevel, getMinZoomLevel, getPanFactor, getScrollBar, getStaticLayersCount, getTileSize, getView, getVisibleLayers, getZoomFactor, getZoomLevels, isConstrainedOnContents, isProgressiveZoom, processValidators, setBoundingBox, setConstrainedOnContents, setHitmapLayers, setHotkeys, setInteractor, setInteractorId, setMaxZoomLevel, setMinZoomLevel, setPanFactor, setProgressiveZoom, setScrollBar, setStaticLayersCount, setTileSize, setView, setVisibleLayers, setZoomFactor, setZoomLevels
clearDecodedPropertyMap, createFacesComponent, getAttributes, getBaseTextDirection, getData, getHeight, getMessageBox, getMessageBoxId, getStyle, getStyleClass, getWidth, isDecodedProperty, processUpdates, resetDecodedProperties, setBaseTextDirection, setData, setDecodedProperty, setHeight, setMessageBox, setMessageBoxId, setStyle, setStyleClass, setWidth
getUrl, getValue, getValueBinding, getValueExpression, setUrl, setValue, setValueBinding, setValueExpression
addClientBehavior, addFacesListener, broadcast, clearInitialState, decode, encodeBegin, encodeChildren, encodeEnd, findComponent, getChildCount, getChildren, getClientBehaviors, getClientId, getDefaultEventName, getEventNames, getFacesContext, getFacesListeners, getFacet, getFacetCount, getFacets, getFacetsAndChildren, getId, getListenersForEventClass, getParent, getPassThroughAttributes, getRenderer, getRendererType, getRendersChildren, invokeOnComponent, isRendered, isTransient, markInitialState, processDecodes, processRestoreState, processSaveState, queueEvent, removeFacesListener, restoreAttachedState, saveAttachedState, setId, setParent, setRendered, setRendererType, setTransient, subscribeToEvent, unsubscribeFromEvent
encodeAll, getClientId, getCompositeComponentParent, getContainerClientId, getCurrentComponent, getCurrentCompositeComponent, getNamingContainer, getPassThroughAttributes, getResourceBundleMap, getStateHelper, getStateHelper, getTransientStateHelper, getTransientStateHelper, initialStateMarked, isCompositeComponent, isInView, isVisitable, popComponentFromEL, processEvent, pushComponentToEL, restoreTransientState, saveTransientState, setInView, visitTree
public IlvFacesDiagrammerView()
IlvFacesDiagrammerView
instance.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.
getFamily
in class IlvBasicView
public static String getComponentType()
public IlvFacesDiagrammerDataSource getDataSource()
public void setDataSource(IlvFacesDiagrammerDataSource dataSource)
dataSource
- The data source to set.public String getDataSourceId()
public void setDataSourceId(String dataSourceId)
dataSourceId
- The data source ID to set.public String getProject()
public void setProject(String project)
project
- The diagrammer designer project to set.public void showAll() throws Exception
Exception
public void setDiagrammer(IlvDiagrammer diagrammer)
IlvDiagrammer
wrapped by this IlvFacesDiagrammer
instance.diagrammer
- The IlvDiagrammer
instance to set.public IlvDiagrammer getDiagrammer() throws Exception
IlvDiagrammer
instance wrapped by this IlvFacesDiagrammer
instance.IlvDiagrammer
instance.Exception
public String getStyleSheets()
public void setStyleSheets(String styleSheets)
styleSheets
- The style sheets to set.public boolean isEditable()
IlvFacesDiagrammerView
is editable.
An editable view allows users to add or remove nodes and links to the model.
It also gives the ability to modify selected objects properties from
the client.
The default value is false
.public void setEditable(boolean value)
IlvFacesDiagrammerView
is editable.
An editable view allows users to add or remove nodes and links to the model.
It also gives the ability to modify selected objects properties from
the client.value
- Whether the diagrammer is editable.public IlvObjectSelectedFinder getDefaultObjectFinder()
getDefaultObjectFinder
in class IlvFacesView
null
otherwise.public void updateModel(jakarta.faces.context.FacesContext context)
updateModel
in class IlvFacesView
context
- The current faces context.public Object saveState(jakarta.faces.context.FacesContext context)
saveState
in interface IlvFacesComponent
saveState
in interface jakarta.faces.component.StateHolder
saveState
in class IlvFacesView
context
- The current faces context.state
of this component.public void restoreState(jakarta.faces.context.FacesContext context, Object stateObj)
stateObj
parameter.restoreState
in interface IlvFacesComponent
restoreState
in interface jakarta.faces.component.StateHolder
restoreState
in class IlvFacesView
context
- The current faces context.stateObj
- The previously saved state of this component.© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.