public class BIMViewer extends BoundComponentInstance
Prefix | Use |
event | Call from control jsp via JavaScript sentEvent function |
jsp | Call from control jsp to dynamically generate JavaScriptn |
jsp | Call from control jsp to dynamically generate JavaScriptn |
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ATTRIB_RESIZE
Used to store the current resize option in the HTTP Session
|
static java.lang.String |
ATTRIB_RESIZE_DLG |
static java.lang.String |
FIELD_ASSETNUM |
static java.lang.String |
FIELD_ASSETUID |
static java.lang.String |
FIELD_BUILDINGMODELID |
static java.lang.String |
FIELD_LOCATION |
static java.lang.String |
FIELD_LOCATIONUID |
static java.lang.String |
FIELD_MODELID |
static java.lang.String |
FIELD_NETWORK |
static java.lang.String |
FIELD_ORGID |
static java.lang.String |
FIELD_PARENT |
static java.lang.String |
FIELD_PRIMARYSYSTEM |
static java.lang.String |
FIELD_SITEID |
static java.lang.String |
FIELD_SYSTEMID |
static java.lang.String |
FIELD_WO_NUM |
static java.lang.String |
HOST_PARAM_MARKER |
static java.lang.String |
PROP_DATA_ATTRIB |
static java.lang.String |
PROP_MODEL_ATTRIB |
static int |
RECORD_ASSET |
static int |
RECORD_LOCATION |
static int |
RECORD_MODEL |
static int |
RECORD_UNKNOWN |
static java.lang.String |
TABLE_ASSET |
static java.lang.String |
TABLE_LOCACCESTOR |
static java.lang.String |
TABLE_LOCATIONS |
static java.lang.String |
TABLE_LOCHIERARCHY |
static java.lang.String |
TABLE_LOCSYSTEM |
static java.lang.String |
TABLE_WORKORDER |
static int |
TYPE_ASSET |
static int |
TYPE_LOCATION |
static int |
TYPE_LOOKUP |
static int |
TYPE_MODEL |
static int |
TYPE_UNKNOWN |
static int |
TYPE_WORKORDER |
static int |
VERSION_7116_OR_GREATER |
static int |
VERSION_75_OR_GREATER |
static int |
VERSION_LESS_THAN_7116 |
ATTRIBUTE_NAME, BAD_BINDING_CSS, bound, BOUND_LABEL, COLUMN_NAME, CSS_CLASS, DATA_ATTRIBUTE, DEFAULT_LABEL, DOMAIN, ENTITY_NAME, EVENT_PRIORITY, FIELD_LABEL, HAS_LONG_DESCRIPTION, HIDE_LABEL, ID, INT_TYPE, INTERNAL, INVALID_BINDING, IS_NUMERIC, IS_PERSISTENT, KEY, LABEL, LABELFORMAT, LENGTH, LONGDESC_ATTRIBUTE_SUFFIX, OBJECT_NAME, PRIORITY_DATATYPE, PRIORITY_FLUSH, PRIORITY_VALIDATION, QUERY, REMARKS, SCALE, SIZE, SYNCHRONOUS, TAKESVALUE, TITLE, TRUELENGTH, TYPEAHEADATTRS
CLASSSPECVALUEATTRIBUTES, DYNAMICATTRIBUTE
CLICKABLE_OFF, CLICKABLE_ON, CONTAINER_ERROR, CONTAINER_ERROR_IMAGE, CONTAINER_WARNING, CONTAINER_WARNING_IMAGE, LOG_CATEGORY, NOT_CLICKABLE, popDefinition
EXCEPTION_ERROR, EXCEPTION_INFO, EXCEPTION_NONE, EXCEPTION_REQUIREDFIELD, EXCEPTION_SMARTFILL, EXCEPTION_WARNING, EXCEPTION_YESNOCANCEL, FORCE_WARNING_HANDLING, NO_PROMPT_WITH_WARNING, presentationTags, PROMPT_WHEN_WARNING_EXIST
Constructor and Description |
---|
BIMViewer() |
Modifier and Type | Method and Description |
---|---|
int |
checkVisibility()
Determine if the control is visible or on a tab that is hidden
|
void |
eventRezise()
Called from the .jsp when the user selects a new size for the control.
|
void |
eventReziseDlg()
Called from the .jsp when the user selects a new size for the control and
the control is displayed on a dialog.
|
int |
eventSelect()
Called from the viewer .jsp every time the selection is changed.
|
static BaseInstance |
findByRenderId(BaseInstance root,
java.lang.String renderId) |
void |
forceUpdate() |
int |
getAppType()
Allows the .jsp to to application type specific processing
including setting appopiate lable text
|
java.lang.String |
getBackgroundColor() |
java.lang.String |
getBinding() |
java.lang.String |
getBoarderColor() |
java.util.Set<java.lang.String> |
getCurrentSelection() |
java.lang.String |
getForegroundColor() |
int |
getHeight() |
java.lang.String |
getHighlightColor() |
int |
getLeftOffset() |
java.lang.String |
getLookupValue() |
java.lang.String |
getMboKey()
Get the key value for the bound Mbo: Location, assetnum, wonum
|
int |
getMxVersion() |
int |
getRecordType()
Allows the .jsp to do application type specific processing
including setting appropriate label text
|
java.lang.String |
getSiteId() |
java.lang.String |
getValue() |
java.lang.String |
getViewerType() |
java.lang.String |
getWidth() |
void |
initialize()
Called when the app broadcasts an "initialize" event to all components.
|
boolean |
isControlVisible() |
boolean |
isForceUpdate() |
boolean |
isHasMultiSelect() |
boolean |
isModelListChanged()
Track if the list of models in the location hierarchy from the
current asset of location up to the building has changed
|
boolean |
isMultiSelectAllowed()
Determines if the user is allowed to select more than one item at a time
|
boolean |
isSelectionValid() |
boolean |
isValueChanged()
Track if the selected value is different form the currently
selected value to allow optimization
|
java.util.Set<java.lang.String> |
jspGetMultiSelection() |
int |
jspGetRezieDlgOption()
Retrieves a stored resize option from the HTTP session and makes it
available to the .jsp.
|
int |
jspGetRezieOption()
Retrieves a stored resize option from the HTTP session and makes it
available to the .jsp.
|
java.lang.String |
jspGetScriptModelList()
Generate JavaScript to add all the models in _currentModelList
to the ComboBox specified by listCtrlId
|
java.lang.String |
jspGetStatusUpdate()
Provides an update to the control status line and resets
hasStatusUpdate to false
|
int |
jspGetViewerTop()
If the control is displayed on a tab of an application, its really not on the tab,
it at the bottom of the page below the tab set.
|
boolean |
jspHasStatusUpdate()
Indicates if there is a status message to display on the control
Status line
|
java.lang.String |
jspScript(java.lang.String id)
Generate JavaScript to configure the current state of the control
|
static MboSetRemote |
lookupAssetsAtLocation(MboRemote locationMbo)
Get all the assets at the specified location
|
static LocationRemote |
lookupLocation(MboRemote mbo,
java.lang.String location,
java.lang.String siteId)
Queries the database for a location record based on location and siteid attributes
|
LocationRemote |
lookupLocation(java.lang.String location)
Queries the database for a location record based on location and siteid attributes
|
LocationRemote |
lookupLocationFromModelId(java.lang.String modelId)
Use the value of an item in the model to find the Maximo location for that
item using the current dataattibute binding of the control
Used by dialogs that include or are launched by the control
|
LocationRemote |
lookupLocationFromModelId(java.lang.String modelLocation,
java.lang.String modelId) |
LocationRemote |
lookupLocationFromModelId(java.lang.String modelLocation,
java.lang.String modelId,
java.lang.String siteId)
Get the location from the bound value if the control is bound to either location of asset
|
java.lang.String |
lookupLocationFromWO(java.lang.String woKey,
java.lang.String siteId)
SQL Lookup of the location associated with a work order
|
java.lang.String |
lookupLocationModelId(java.lang.String location,
java.lang.String siteId)
Looks up a location based on the datasrc for the control (Usually modelId)
|
static LocationSetRemote |
lookupLocations(MboRemote mbo,
java.lang.String location,
java.lang.String siteId)
Queries the database for a location record based on location and siteid attributes
|
int |
render()
Needed to override this method to cache original values for data, readonly, required and applink
|
java.lang.String |
scriptFooter() |
java.lang.String |
scriptResize() |
void |
setControlVisible(boolean vis) |
void |
setModelListChanged(boolean state) |
void |
setMultiSelect(java.lang.String modelLocation,
java.util.Set<java.lang.String> selection) |
void |
setValueChanged(boolean state) |
addAttributeError, addSetValueError, applink, cleanup, clearClassification, clearErrors, createChangedPropList, dataRestrictionCheck, datelookup, decrement, exceptionhandled, getApplink, getBoolean, getCurrentError, getDataBean, getDataType, getDataValueInError, getErrorForRow, getExcDialogIcon, getExceptionType, getFieldInfo, getHighestErrorLevel, getInputMode, getInputModeWithoutPasswordPrefix, getLinkBack, getLongDescription, getLookupName, getQbeNameWithPrepend, getReadonlyStateMap, getRenderIdForAutoFill, getString, getWarningList, getWarningMessages, hasChanged, hasDataChanged, hasLongDescChanged, hasLongDescription, hasReadonlyChanged, hasRequiredChanged, hasWarnings, increment, instantiatedatasrc, isDataValid, isDefault, isMasked, isOnCurrentRow, isPasswordField, isQuery, isReadOnly, isRequired, isRevert, isRowDeleted, isSmartFillEnabled, popexception, processAsyncYesNoCancel, processEdit, processIgnoreWarning, processProfile, processRevert, readOnlyCheck, removeCurrentError, resetIsRevert, retryErrorValues, selectvalue, setBoundAsRequired, setcurrentdate, setDataValid, setDataValueInError, updateCachedDataValue, useMaxLength
click, dataChangedEvent, getProperty, hasAnyPropertyChanged, needsRender, resetAttribute, structureChangedEvent
action, broadcastEvent, canChangeRowFocus, clearChangedFlag, clearUIUpdates, controlPropertyChanged, fetchtooltip, findComponentByDescriptorId, findProperty, formatLabel, formatLabel, getChildrenDesignOnly, getClickState, getComponentContainerId, getControl, getCssClass, getCurrent, getCurrentUpdates, getDesignerSelected, getErrorInfo, getFocusRenderId, getId, getId, getIdWithoutRow, getLabelForRenderId, getLabelledByRenderId, getLinkedComponentInstance, getMenuType, getOriginalProperty, getRenderId, getUpdatedAttributes, getUpdatedStyles, hasChildren, hasComponents, hasLocalProperty, hasMaskedChanged, hasUnappliedUIUpdates, hiddenByProp, hiddenByProperty, isAsyncEnabled, isChild, isComponent, isDefaultRender, isDisabled, isHoversActive, isIncluded, isOnTableFilterRow, isOnTableRow, isOnTableTitleRow, isVisible, query, renderChildComponents, renderChildrenControls, rerendering, setChangedFlag, setChangedFlag, setComponentContainerId, setControl, setFocus, setIsHoversActive, setLabelFormat, showMenu, showMenubarMenu, signout, skipRender, updateAttribute, updateStyle, updateStyle
addChild, addChild, addRefreshListener, clearChildren, clearProperties, clone, clone, getBoolean, getChildCount, getChildIndex, getChildren, getConsiderInDesigner, getDescriptor, getIdExtension, getInt, getLocalizedType, getPage, getParent, getParentInstance, getPropertyNames, getRefreshListeners, getRowNum, getSafeId, getString, getType, getWebClientSession, handleEvent, handleEvent, hasPropertyChanged, initProperty, isDynamicContainer, isOnTable, maintainControlId, removeProperty, setConsiderInDesigner, setDescriptor, setDynamicContainer, setOnTable, setParent, setProperty, setProperty, setRenderId, setType, setWebClientSession, toString
public static final int VERSION_LESS_THAN_7116
public static final int VERSION_7116_OR_GREATER
public static final int VERSION_75_OR_GREATER
public static final java.lang.String PROP_DATA_ATTRIB
public static final java.lang.String PROP_MODEL_ATTRIB
public static final java.lang.String FIELD_ASSETUID
public static final java.lang.String FIELD_ASSETNUM
public static final java.lang.String FIELD_BUILDINGMODELID
public static final java.lang.String FIELD_ORGID
public static final java.lang.String FIELD_SITEID
public static final java.lang.String FIELD_LOCATION
public static final java.lang.String FIELD_LOCATIONUID
public static final java.lang.String FIELD_MODELID
public static final java.lang.String FIELD_NETWORK
public static final java.lang.String FIELD_PARENT
public static final java.lang.String FIELD_PRIMARYSYSTEM
public static final java.lang.String FIELD_SYSTEMID
public static final java.lang.String FIELD_WO_NUM
public static final java.lang.String TABLE_ASSET
public static final java.lang.String TABLE_LOCATIONS
public static final java.lang.String TABLE_WORKORDER
public static final java.lang.String TABLE_LOCACCESTOR
public static final java.lang.String TABLE_LOCHIERARCHY
public static final java.lang.String TABLE_LOCSYSTEM
public static final java.lang.String HOST_PARAM_MARKER
public static final java.lang.String ATTRIB_RESIZE
public static final java.lang.String ATTRIB_RESIZE_DLG
public static final int TYPE_UNKNOWN
public static final int TYPE_ASSET
public static final int TYPE_LOCATION
public static final int TYPE_LOOKUP
public static final int TYPE_WORKORDER
public static final int TYPE_MODEL
public static final int RECORD_UNKNOWN
public static final int RECORD_ASSET
public static final int RECORD_LOCATION
public static final int RECORD_MODEL
public void initialize()
BoundComponentInstance
initialize
in class BoundComponentInstance
public int render() throws java.lang.NoSuchMethodException, java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException
BoundComponentInstance
render
in class BoundComponentInstance
java.lang.NoSuchMethodException
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException
ComponentInstance.render()
public int checkVisibility()
public int eventSelect() throws java.rmi.RemoteException, MXException
java.rmi.RemoteException
MXException
public void eventRezise()
public void eventReziseDlg()
public java.util.Set<java.lang.String> jspGetMultiSelection()
public java.lang.String jspScript(java.lang.String id) throws java.rmi.RemoteException, MXException
This method supports the following control states and changes between those states: - The entire control is either in its proper position on the screen or is "Stored" off the top of the screen - There is a model file for the current bound value and the active X control is displayed, or there is not and it is hidden and a message is displayed - If it is a partial refresh and the HTML does not need to be rerendered, then this code is executed inside a script tag in the hidden frame. IF it is run as part of rendering the control then it is run wint the control HTML in the MAINDOC - If it is a partial refresh, it may update the selected value, the both the model file and the selected value, or post a message to the status line
java.rmi.RemoteException
MXException
public java.lang.String scriptResize()
public java.lang.String jspGetScriptModelList()
listCtrlId
- public java.lang.String scriptFooter()
public int jspGetRezieOption()
public int jspGetRezieDlgOption()
public java.lang.String jspGetStatusUpdate()
public int jspGetViewerTop()
public boolean jspHasStatusUpdate()
public int getAppType()
public java.lang.String getBackgroundColor()
public java.lang.String getBoarderColor()
public java.lang.String getForegroundColor()
public java.lang.String getHighlightColor()
public java.lang.String getBinding()
public java.util.Set<java.lang.String> getCurrentSelection()
public int getHeight()
public java.lang.String getMboKey()
public int getLeftOffset()
public java.lang.String getLookupValue()
public int getMxVersion()
public int getRecordType()
public java.lang.String getSiteId()
public java.lang.String getValue()
public java.lang.String getViewerType()
public java.lang.String getWidth()
public boolean isForceUpdate()
public boolean isHasMultiSelect()
public boolean isModelListChanged()
public boolean isMultiSelectAllowed()
public boolean isSelectionValid()
public void forceUpdate()
public void setModelListChanged(boolean state)
public boolean isValueChanged()
public void setValueChanged(boolean state)
public boolean isControlVisible()
public void setControlVisible(boolean vis)
public void setMultiSelect(java.lang.String modelLocation, java.util.Set<java.lang.String> selection) throws java.rmi.RemoteException, MXException
selection
- A set of items using the value bound to the control to display as the
current selection in the control
Called from dialogs that use the model as a display mechanismjava.rmi.RemoteException
MXException
public LocationRemote lookupLocation(java.lang.String location) throws java.rmi.RemoteException, MXException
location
- java.rmi.RemoteException
MXException
public LocationRemote lookupLocationFromModelId(java.lang.String modelId) throws java.rmi.RemoteException, MXException
value
- The value of the datafield bound to the control. Usually is modelidjava.rmi.RemoteException
MXException
public LocationRemote lookupLocationFromModelId(java.lang.String modelLocation, java.lang.String modelId) throws java.rmi.RemoteException, MXException
java.rmi.RemoteException
MXException
public LocationRemote lookupLocationFromModelId(java.lang.String modelLocation, java.lang.String modelId, java.lang.String siteId) throws java.rmi.RemoteException, MXException
location
- java.rmi.RemoteException
MXException
public java.lang.String lookupLocationModelId(java.lang.String location, java.lang.String siteId) throws java.rmi.RemoteException, MXException
location
- siteId
- java.rmi.RemoteException
MXException
public java.lang.String lookupLocationFromWO(java.lang.String woKey, java.lang.String siteId)
woKey
- siteId
- public static BaseInstance findByRenderId(BaseInstance root, java.lang.String renderId)
public static LocationSetRemote lookupLocations(MboRemote mbo, java.lang.String location, java.lang.String siteId) throws java.rmi.RemoteException, MXException
location
- java.rmi.RemoteException
MXException
public static LocationRemote lookupLocation(MboRemote mbo, java.lang.String location, java.lang.String siteId) throws java.rmi.RemoteException, MXException
location
- java.rmi.RemoteException
MXException
public static MboSetRemote lookupAssetsAtLocation(MboRemote locationMbo)
locationMbo
-