public abstract class BaseTreeGridMiniAppBean extends AbstractTreeGridMiniAppBean
AbstractTreeGridMiniAppBean.BucketInfo, AbstractTreeGridMiniAppBean.ShiftInfo
Modifier and Type | Field and Description |
---|---|
protected static int |
ONE_HOUR_IN_MILLISECONDS |
calLocale, calTimezone, helper, lastSavedState, props, readOnlyRightClickMenus, SCHEDULER_MSG_GROUP, SKD_BUILD_ID, templates, TESTIDS_ENABLED_PROPERTY, uiOptions, userLocalizedTreeGridLabels
ALL_BOOKMARKS, ALL_RECORDS, alwaysSelected, app, appDefaultValues, appName, appWhere, ATTR_COLUMN, ATTR_DEFAULT, ATTR_QBE, ATTR_READONLY, ATTR_REFRESH_TABLE, ATTR_REQUIRED, ATTR_RESET, attributes, boundAttributes, boundInputs, closingBean, conditionallyRequired, creatingEvent, currentQuery, currentQueryDescription, currentRecordData, currentRow, defaultDynamicQbe, defaultOrderBy, defaultQbe, defaultUserValues, descAttributeId, designerMboName, dialogReferences, dynamicDefaults, emptyOnClear, ermEntity, esigvalidated, eventrow, fetchData, globalAppTableRetain, hasTableData, hasUnappliedAppDefaults, hasUnappliedQbeDefaults, keyAttribute, keyAttributes, lastEventHandled, lastfetchedindex, listeners, listTableModified, listTableRetain, LOG_CATEGORY, MAX_TABLEROWS, mboName, mbosetfromzombie, mboSetRemote, multiQbe, newRowUnedited, orderBy, parent, parentRelationship, propCache, qbeAttributes, qualrestrict, queryDescBeforeReviseAction, queryNameBeforeReviseAction, refreshList, refreshQbe, removeOnCancel, requiredFields, resetList, resetRemote, returnAttribute, returnComponent, returnComponentlId, ROW_DELETE, ROW_IGNORE, ROW_INSERT, ROW_MODIFY, rowsperpage, saveCount, savedFilterSettings, savedQbeAttributes, screenDesignMode, smartFillValue, startEmpty, startrow, TABLE_ALL_SELECTED, TABLE_AT_FIRST_PAGE, TABLE_AT_FIRST_ROW, TABLE_AT_LAST_PAGE, TABLE_AT_LAST_ROW, TABLE_DETAILS_EXPANDED, TABLE_EXPANDED, TABLE_FILTER_EXPANDED, TABLE_FILTERED, TABLE_REFRESH_ALL_ROWS, TABLE_REFRESH_FILTER, TABLE_REFRESH_ROW, TABLE_REFRESH_TITLE, TABLE_ROW_CHANGED, TABLE_START_EMPTY, TABLE_SUBSELECT_ON, TABLE_USE_SUBSELECT, tableAttributes, tableData, tableDataInvalid, tableStateFlags, userQbeNotCommited, userWhereClause, zombieData
clientSession, creator, EVENT_CONTINUE, EVENT_HANDLED, EVENT_STOP_ALL, id, sessionContext
Constructor and Description |
---|
BaseTreeGridMiniAppBean() |
Modifier and Type | Method and Description |
---|---|
void |
addActionMenuItems(TMenu popupmenu,
java.lang.String[] selectedactivitys,
java.util.concurrent.Future modelFutre,
IMXActivityPropertyInfo actproptinfo,
java.lang.String projectId,
java.lang.String propName,
java.lang.String propValue,
java.lang.String frame)
Adds SKDAction items to the TMenu.
|
void |
addFixUI(UIOptions opts) |
void |
addGotoToolbarOptions(UIOptions opts) |
void |
addLockDurationIcon(UIOptions opts,
boolean create) |
void |
addLockResourceIcon(UIOptions opts,
boolean create) |
void |
addLockScheduleIcon(UIOptions opts,
boolean create) |
void |
addModelChange(MXGanttModel model,
com.ibm.json.java.JSONObject obj,
MXActivity currentActivity,
WebClientSession session) |
void |
addModelChange(MXGanttModel model,
MXActivity currentActivity,
WebClientSession session) |
void |
addZoomToToolbarOptions(UIOptions opts) |
TMenu |
async_get_table_context_menu(WebClientSession sess,
java.lang.String projectId,
java.lang.String id,
java.lang.String column,
java.lang.String value)
Called for an ITEM to fetch the Menu for a given item.
|
ReplyBuilder |
async_upload_changes(WebClientSession sess)
This is called by the TreeGrid component, in the browser, when it has
changes that it needs to sync with the server.
|
boolean |
canNotAssignTo(java.lang.String assignaction,
MXActivity act,
java.lang.String[] selectedactivitys,
MXGanttModel model)
Check if assign labr or crew for selected rows
|
void |
clearSavedState() |
protected TreeGridUtil.ITGSerializationHelper |
createSerializationHelper(UserInfo userInfo) |
protected UIOptions |
createUIOptions(java.lang.String projectId)
Create the UIOptions for the project
|
java.util.List |
getActivitites(java.lang.String[] ids,
java.util.concurrent.Future model)
Retuns are list of MXActivity objects for a given array of IDs.
|
Range |
getActualStartEnd() |
Range |
getCalculatedProjectMinMax() |
protected TMenu |
getContextMenuFor(TMenu menu,
UserInfo userInfo,
java.lang.String projectId,
java.lang.String propName,
java.lang.String propValue,
java.lang.String[] ids)
Given the parameters, return a TMenu (TreeGrid Menu) context menu.
|
GanttConfigInfo |
getGanttConfigInfo(WebClientSession sess,
java.lang.String appName,
java.lang.String projectId)
Fetches the GanttConfigInfo for the for the given projectid
|
protected MXGanttModel |
getProject()
Convience method that calls through the load project to get the current
project.
|
SKDPMUtility |
getSKDPMUtility(MXGanttModel model) |
DynamicTooltip |
getTooltip(WebClientSession sess,
java.lang.String projectid,
java.lang.String col,
java.lang.String id)
Returns a Tooltip HTML for a given activity id
|
DynamicTooltip |
getTooltipForCPM(WebClientSession sess,
java.lang.String projectid,
java.lang.String fromId,
java.lang.String toId)
Returns a Tooltip HTML for a given activity id's CPM
|
DynamicTooltip |
getTooltipForDate(WebClientSession sess,
java.lang.String projectid,
java.lang.String col,
java.lang.String id,
long date) |
DynamicTooltip |
getTooltipForPoint(java.lang.String id,
int pointIndex) |
UIOptions |
getUIOptions()
Convenience method for getting options by defaulting the project id
|
protected UIOptions |
getUIOptions(java.lang.String projectId)
Get the UI Options/Hints for rendering TreeGrid
|
void |
initializeProjectData() |
boolean |
isLocked(MXActivity activity) |
boolean |
isResourceLocked(MXActivity activity) |
java.util.concurrent.Future |
loadProject(com.ibm.json.java.JSONObject projectOptions)
Returns a Future for the given Gantt Model.
|
SKDUIInfo |
loadSKDUIInfo()
Deprecated.
This was moved to the base class, we should remove it here at some point
|
java.lang.Object |
on_handle_applink_menu_item(WebClientSession sess,
java.lang.String id,
java.lang.String action,
java.lang.String values,
com.ibm.json.java.JSONObject selection)
Called form the Browser Client with the Activity ID and Action.
|
void |
onReset()
OnReset is called whenever we need to clear the state of our beean.
|
abstract void |
processChange(java.util.concurrent.Future model,
com.ibm.json.java.JSONObject change,
WebClientSession sess,
ReplyBuilder reply)
Will be called for each change in the changes model
|
protected void |
processMove(java.util.concurrent.Future modelFuture,
com.ibm.json.java.JSONObject change,
WebClientSession sess,
ReplyBuilder reply) |
protected void |
refreshToolbarItems(UIOptions uiOptions2)
This is called everytime getUIOptions is called, in case, bean needs to
refresh the state of the options
|
void |
setSerializationHelper(MXSerializationHelper mxSerializationHelper) |
void |
setupBean(WebClientSession wcs)
This method must be call after the bean is instantiated.
|
void |
updateDuration(MXGanttModel model,
java.util.Date oldStartTime,
java.util.Date oldEndTime,
java.util.Date newStartTime,
java.util.Date newEndTime,
MXActivity mxa)
Start and End times need to be updated at the same time, or else ILOG
will grow or shrink the activity bar when setting the start/end times
separately.
|
int |
updateStartEndTimes(java.util.concurrent.Future model,
com.ibm.json.java.JSONObject change,
WebClientSession sess,
MXActivity mxa)
Start and End times need to be updated at the same time, or else ILOG
will grow or shrink the activity bar when setting the start/end times
separately.
|
addFilterToggle, addLinkToWorkViewFilter, addMessages, addQuickSearch, addResourceDisplay, addToggleDependencies, appendCss, async_export_echo, async_load_text, async_push_client_message, async_upload_state, beanSupplier, callBeanMethod, callMethod, CfgId, filterCss, getAppDescForApp, getApplicationResource, getAppMboString, getAppMboYORN, getAppName, getBaseImageUrl, getBoolean, getClientSession, getCurrentProjectId, getDate, getLastKnownState, getModAvailForDate, getModelFunctionImpl, getOptions, getPresentationOptions, getProjectId, getProjectMbo, getProjectOptions, getSchedulerProperties, getSerializationHelper, getShiftBreakInfoForDate, getShiftWorkPeriodInfoForDate, getShiftWorkPeriodInfoForDate, getShiftWorkPeriodInfoForDate, getSKDAppServiceBean, getSKDAppServiceBean, getTimeZone, getTooltip, getTooltipForDateInSchedule, getUserInfo, isAiviationLicensePresent, isAiviationMROLicensePresent, isDefaultScenario, isGUIMirrored, isLicensePresent, isLicensePresent, isScenario, isScenarioOrSnapshot, isShowingWeather, isSnapshot, label, label, loadMiniAppResource, loadSchedulerProperties, loadTemplate, loadTooltip, on_handle_applink_menu_item, populateErrorReply, resolveTemplate, sendEventToTreeGrid, setGridTitleInUIOptions, sortSKDAction, uiOptionsSupplier, updateBooleanProperty, updateDateTimeProperty, updateIntProperty, updateStringProperty
_useAllBookmarksQuery, _useAllRecsQuery, _usequery, addAttribute, addConditionalProperties, addDialogReference, addListener, addQbeAttribute, addrow, addSigOption, afterSetValue, applyValuesToSharedAttributes, applyValuesToSharedAttributes, asyncLocked, bindComponent, boundToTable, buildPortalMsg, callBeanMethod, callBeanMethod, callBeanMethod, callBeanMethod, callMethod, callMethod, callMethod, callMethod, callRemoteMethod, callRemoteMethod, cancelDialog, canCloseBean, canFetchData, changeRequiredField, checkAndDistributeRequiredError, checkESigAuthenticated, checkForAppError, checkMethodAccess, cleanup, clearBean, clearfilter, clearQbeAttributes, clearSavedFilterSettings, clearSavedQbeSettings, close, copytonewrow, count, dataChangedEvent, delete, delete, deleteAndRemove, deleteAndRemove, displaycount, duplicateMbo, execute, fetchRecordData, fetchTableData, fetchTableData, filterrows, findAndCallMethod, fireChildChangedEvent, fireDataChangedEvent, fireDataChangedEvent, fireStructureChangedEvent, fireStructureChangedEvent, getAppWhere, getAttributes, getBoolean, getBoolean, getCacheRowIndex, getColumnDate, getColumnString, getCompleteWhere, getConditionalProperties, getCurrentQueryDescription, getCurrentQueryName, getCurrentRow, getDataAsArray, getDataAsArray, getDataList, getDataList, getDataList, getDataList, getDataListFromMboSetRemote, getDate, getDefaultOrderBy, getDefaultValue, getDescAttributeId, getEndRow, getEventRowIndex, getKeyAttribute, getKeyAttributes, getLastEventHandled, getLastFetchIndex, getList, getList, getList, getLockedByDisplayName, getMbo, getMbo, getMboForUniqueId, getMboName, getMboOrZombie, getMboRowIndex, getMboSet, getMboSetData, getMboSetFromSmartFind, getMboSetFromSmartFind, getMboSetFromSmartFind, getMboSetRemote, getMboValueData, getMboValueData, getMboValueInfo, getMXSession, getNullRequiedFields, getOrderBy, getPageEndRow, getPageRowCount, getPageStartIndex, getParent, getParentRelationship, getQbe, getQbe, getQbeAttributes, getQueryDescBeforeReviseAction, getQueryNameBeforeReviseAction, getRemoteForDownload, getRemoteForLookup, getReturnAttribute, getReturnComponent, getReturnComponentId, getReturnControlId, getRowIndexFromEvent, getSavedFilterSettings, getSelectedDataAsArray, getSelectedDataAsArray, getSelection, getShowDetails, getSmartFillValue, getSortOrder, getString, getString, getTableAttributes, getTableOffset, getTableStateFlags, getTitle, getUIERMEntity, getUniqueIdFromSmartFill, getUniqueIdFromSmartFill, getUniqueIdName, getUniqueIdValue, getUserAndQbeWhere, getUserWhere, getWarnings, getWorkflowDirections, getZombie, getZombieMboValueData, handleRemoteException, handleRequiredFieldException, hasLongDescriptionText, hasLongDescriptionText, hasMboSetRemote, hasPageRows, hasRow, hasSameMboSet, hasSigOptionAccess, hasSigOptionAccess, hierarchicalmove, highlightrow, highlightrow, initialize, insert, insert, insertAtEnd, instantdelete, invalidateTableData, isAppTableRetain, isAttribute, isAttributeHidden, isAttributeHidden, isColumnSorted, isEmpty, isListTableModified, isListTableRetain, isLookupMultiSelect, isMboHidden, isMboHidden, isMboSetSame, isModifiedRow, isModifiedRow, isNewRow, isNewRow, isNewRowUnedited, isRowDeleted, isRowLocked, isSelected, isSubSelect, isTableAttribute, isTablePostionMarked, isTableRowSelected, isTableStateFlagSet, listenerChangedEvent, madeRequiredConditionally, markTablePosition, moveTo, moveToMboFromDataBean, needToAuthenticate, next, nextrow, notExist, positionState, preSaveChecks, previous, prevrow, propagateRequired, queryAllBookmarks, queryAllRecs, refreshFieldErrors, refreshTable, registerDynamicControlsWithERM, reloadTable, removeDialogReference, removeListener, removeRowOnCancel, rePosition, reserveOnePair, reset, resetDataBean, resetJSPFlags, resetQbe, resetWithSelection, restoreSavedQbeSettings, retainPosition, returnLookupValue, returnLookupValue, returnLookupValue, returnLookupValue, save, save, saveCurrentQbeSettings, scrollnext, scrollprev, select, select, selectAll, selectrecord, selectRows, sendRefreshTable, setApp, setApp, setAppDefault, setAppDefaults, setApplicationError, setAppWhere, setAsyncLock, setAttributes, setCurrentQueryDescription, setCurrentQueryName, setCurrentRecordData, setCurrentRow, setDate, setDate, setDate, setDefaultOrderBy, setDefaultQbe, setDefaultValue, setDefaultValue, setDescAttributeId, setDynamicAppDefaults, setDynamicDefault, setDynamicQbeDefaults, setEmptyOnClear, setERMOnMboSet, setEsigValidated, setEventRowIndex, setfiltervalue, setLastEventHandled, setListTableModified, setListTableRetain, setMboName, setNewRowUnedited, setOrderBy, setPageRowCount, setParent, setQbe, setQbe, setQbe, setQbe, setQbe, setQbeAttributes, setQbeCaseSensitive, setQbeDefaults, setQbeExactMatch, setQueryBySiteQbe, setQueryDescBeforeReviseAction, setQueryNameBeforeReviseAction, setRemoveOnCancel, setReturnAttribute, setReturnComponent, setReturnComponentId, setReturnControlId, setShowDetails, setSmartFillValue, setTableFlag, setupBean, setupNonPersistent, setUserDefaults, setUserWhere, setvalue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValueFromComponent, smartFill, smartFill, sort, sort, sortcolumn, sortcolumn, sqlwhere, structureChangedEvent, toBeSaved, toggledeleterow, toggledetailstate, toggleselectallrows, toggleselectrow, toString, turnEmptyStateOn, unbindComponent, undelete, undelete, unselect, unselect, unselectAll, useAllBookmarksQuery, useAllRecsQuery, useqbe, usequery, useQuery, useStoredQuery, validate, validateChildren, validateClause, validateMbo, validateRow, valueBound, valueUnbound
getCreator, getId, setCreator, setId
protected static final int ONE_HOUR_IN_MILLISECONDS
public void onReset()
onReset
in interface ResetListener
onReset
in class AbstractTreeGridMiniAppBean
public TMenu async_get_table_context_menu(WebClientSession sess, java.lang.String projectId, java.lang.String id, java.lang.String column, java.lang.String value) throws java.lang.Exception
async_get_table_context_menu
in class AbstractTreeGridMiniAppBean
id
- Activity IDcol
- Table Columnjava.lang.Exception
public java.lang.Object on_handle_applink_menu_item(WebClientSession sess, java.lang.String id, java.lang.String action, java.lang.String values, com.ibm.json.java.JSONObject selection) throws MXException, java.rmi.RemoteException
id
- - menu idvalue
- - menu valuevalues
- - json string array of object unique idsselection
- - the original selection that was used when this menu item was createdMXException
java.rmi.RemoteException
public GanttConfigInfo getGanttConfigInfo(WebClientSession sess, java.lang.String appName, java.lang.String projectId) throws java.lang.Exception
sess
- appName
- projectId
- java.lang.Exception
public ReplyBuilder async_upload_changes(WebClientSession sess)
async_upload_changes
in class AbstractTreeGridMiniAppBean
sess
- protected void processMove(java.util.concurrent.Future modelFuture, com.ibm.json.java.JSONObject change, WebClientSession sess, ReplyBuilder reply) throws java.lang.Exception
java.lang.Exception
public abstract void processChange(java.util.concurrent.Future model, com.ibm.json.java.JSONObject change, WebClientSession sess, ReplyBuilder reply) throws java.lang.Exception
model
- change
- sess
- java.lang.Exception
public int updateStartEndTimes(java.util.concurrent.Future model, com.ibm.json.java.JSONObject change, WebClientSession sess, MXActivity mxa) throws java.lang.Exception
change
- mxa
- java.lang.Exception
public void updateDuration(MXGanttModel model, java.util.Date oldStartTime, java.util.Date oldEndTime, java.util.Date newStartTime, java.util.Date newEndTime, MXActivity mxa) throws java.lang.Exception
change
- mxa
- java.lang.Exception
public SKDUIInfo loadSKDUIInfo() throws MXException, java.io.IOException
loadSKDUIInfo
in class AbstractTreeGridMiniAppBean
sess
- appName
- MXException
java.io.IOException
public DynamicTooltip getTooltip(WebClientSession sess, java.lang.String projectid, java.lang.String col, java.lang.String id) throws MXException, java.rmi.RemoteException, java.lang.InterruptedException, java.util.concurrent.ExecutionException
getTooltip
in class AbstractTreeGridMiniAppBean
sess
- projectid
- col
- id
- MXException
java.rmi.RemoteException
java.lang.InterruptedException
java.util.concurrent.ExecutionException
public DynamicTooltip getTooltipForCPM(WebClientSession sess, java.lang.String projectid, java.lang.String fromId, java.lang.String toId) throws MXException, java.rmi.RemoteException, java.lang.InterruptedException, java.util.concurrent.ExecutionException
getTooltipForCPM
in class AbstractTreeGridMiniAppBean
sess
- projectid
- fromid
- toid
- MXException
java.rmi.RemoteException
java.lang.InterruptedException
java.util.concurrent.ExecutionException
public DynamicTooltip getTooltipForDate(WebClientSession sess, java.lang.String projectid, java.lang.String col, java.lang.String id, long date) throws MXException, java.rmi.RemoteException, java.lang.InterruptedException, java.util.concurrent.ExecutionException
getTooltipForDate
in class AbstractTreeGridMiniAppBean
MXException
java.rmi.RemoteException
java.lang.InterruptedException
java.util.concurrent.ExecutionException
public DynamicTooltip getTooltipForPoint(java.lang.String id, int pointIndex) throws MXException, java.rmi.RemoteException, java.lang.InterruptedException, java.util.concurrent.ExecutionException
getTooltipForPoint
in class AbstractTreeGridMiniAppBean
id
- pointIndex
- Point Index in the GanttPoints for row id. Points start at index 0.MXException
java.rmi.RemoteException
java.lang.InterruptedException
java.util.concurrent.ExecutionException
public java.util.concurrent.Future loadProject(com.ibm.json.java.JSONObject projectOptions) throws java.rmi.RemoteException, MXException
projectOptions
- JSONObject
of parameters to pass the model. Can be null.java.rmi.RemoteException
MXException
protected MXGanttModel getProject()
MXException
java.rmi.RemoteException
java.util.concurrent.ExecutionException
java.lang.InterruptedException
protected TMenu getContextMenuFor(TMenu menu, UserInfo userInfo, java.lang.String projectId, java.lang.String propName, java.lang.String propValue, java.lang.String[] ids) throws java.lang.Exception
getContextMenuFor
in class AbstractTreeGridMiniAppBean
menu
- userInfo
- projectId
- propName
- propValue
- ids
- java.lang.Exception
public java.util.List getActivitites(java.lang.String[] ids, java.util.concurrent.Future model) throws java.lang.Exception
ids
- model
- java.lang.Exception
public void addActionMenuItems(TMenu popupmenu, java.lang.String[] selectedactivitys, java.util.concurrent.Future modelFutre, IMXActivityPropertyInfo actproptinfo, java.lang.String projectId, java.lang.String propName, java.lang.String propValue, java.lang.String frame) throws java.lang.Exception
java.lang.Exception
java.lang.InterruptedException
public boolean isLocked(MXActivity activity)
public boolean isResourceLocked(MXActivity activity)
public void addModelChange(MXGanttModel model, MXActivity currentActivity, WebClientSession session) throws java.rmi.RemoteException, java.lang.Exception
java.rmi.RemoteException
java.lang.Exception
public void addModelChange(MXGanttModel model, com.ibm.json.java.JSONObject obj, MXActivity currentActivity, WebClientSession session) throws java.rmi.RemoteException, java.lang.Exception
java.rmi.RemoteException
java.lang.Exception
public SKDPMUtility getSKDPMUtility(MXGanttModel model)
public void addGotoToolbarOptions(UIOptions opts)
public void addZoomToToolbarOptions(UIOptions opts)
public void addLockDurationIcon(UIOptions opts, boolean create)
public void addLockResourceIcon(UIOptions opts, boolean create)
public void addFixUI(UIOptions opts)
public void setupBean(WebClientSession wcs)
DataBean
setupBean
in class AbstractTreeGridMiniAppBean
public void initializeProjectData()
initializeProjectData
in class AbstractTreeGridMiniAppBean
protected TreeGridUtil.ITGSerializationHelper createSerializationHelper(UserInfo userInfo)
createSerializationHelper
in class AbstractTreeGridMiniAppBean
protected UIOptions createUIOptions(java.lang.String projectId) throws MXException, java.io.IOException
createUIOptions
in class AbstractTreeGridMiniAppBean
projectId
- MXException
java.io.IOException
protected UIOptions getUIOptions(java.lang.String projectId) throws java.io.IOException, MXException
getUIOptions
in class AbstractTreeGridMiniAppBean
projectId
- java.io.IOException
MXException
protected void refreshToolbarItems(UIOptions uiOptions2)
refreshToolbarItems
in class AbstractTreeGridMiniAppBean
uiOptions2
- public UIOptions getUIOptions()
getUIOptions
in class AbstractTreeGridMiniAppBean
public void setSerializationHelper(MXSerializationHelper mxSerializationHelper)
setSerializationHelper
in class AbstractTreeGridMiniAppBean
public boolean canNotAssignTo(java.lang.String assignaction, MXActivity act, java.lang.String[] selectedactivitys, MXGanttModel model)
activity
- public void clearSavedState()
clearSavedState
in class AbstractTreeGridMiniAppBean
public Range getCalculatedProjectMinMax()
getCalculatedProjectMinMax
in class AbstractTreeGridMiniAppBean
public Range getActualStartEnd()
getActualStartEnd
in class AbstractTreeGridMiniAppBean
public void addLockScheduleIcon(UIOptions opts, boolean create)