public abstract class AbstractTreeGridMiniAppBean extends DataBean implements HasOptions, CssFilterable, ResetListener, SKDTemplateResolver
Modifier and Type | Class and Description |
---|---|
static class |
AbstractTreeGridMiniAppBean.BucketInfo |
static class |
AbstractTreeGridMiniAppBean.ShiftInfo |
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
SCHEDULER_MSG_GROUP |
static java.lang.String |
SKD_BUILD_ID |
static java.lang.String |
TESTIDS_ENABLED_PROPERTY |
ALL_BOOKMARKS, ALL_RECORDS, ATTR_COLUMN, ATTR_DEFAULT, ATTR_QBE, ATTR_READONLY, ATTR_REFRESH_TABLE, ATTR_REQUIRED, ATTR_RESET, MAX_TABLEROWS, 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
EVENT_CONTINUE, EVENT_HANDLED, EVENT_STOP_ALL
Constructor and Description |
---|
AbstractTreeGridMiniAppBean() |
Modifier and Type | Method and Description |
---|---|
void |
addFilterToggle(UIOptions opts) |
void |
addLinkToWorkViewFilter(UIOptions opts,
boolean create,
boolean initialState) |
void |
addQuickSearch(UIOptions opts) |
void |
addToggleDependencies(UIOptions opts,
boolean create) |
void |
appendCss(java.lang.StringBuilder sb,
java.lang.String key,
java.lang.String value) |
void |
async_export_echo(WebClientSession sess) |
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.
|
com.ibm.json.java.JSONObject |
async_load_text(WebClientSession sess)
Used to load the localized text for TreeGrid
|
void |
async_push_client_message()
This is a sample "handler" showing how you would push a message from the
sever to the browser ui.
|
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.
|
com.ibm.json.java.JSONObject |
async_upload_state(WebClientSession sess,
java.lang.String cfgid,
java.lang.String cookie)
Accept current state from the UI for this bean's view, and save it for
later.
|
Supplier<AbstractTreeGridMiniAppBean> |
beanSupplier() |
java.lang.Object |
callBeanMethod(java.lang.String method,
java.lang.Class<?>[] paramTypes,
java.lang.Object[] params) |
java.lang.Object |
callMethod(java.lang.String methodName,
java.lang.Class<?>[] paramTypes,
java.lang.Object[] params) |
static java.lang.String |
CfgId(java.lang.String base) |
void |
clearSavedState() |
java.lang.String |
filterCss(java.lang.String css,
MiniAppControl control) |
abstract Range<java.util.Date> |
getActualStartEnd() |
java.lang.String |
getApplicationResource(java.lang.String path) |
java.lang.String |
getAppName()
Return the configure AppName for the Scheduler MiniApp, as configured in
the presenation xml file
|
java.lang.String |
getBaseImageUrl() |
abstract Range<java.util.Date> |
getCalculatedProjectMinMax() |
WebClientSession |
getClientSession() |
java.lang.String |
getCurrentProjectId()
Gets the current project ID that we are working with
|
java.lang.String |
getLastKnownState()
Load the last Known state for this bean, if it has not been loaded
already
|
IMXActivity |
getModAvailForDate(IMXResource mxr,
IMXGanttModel model,
java.util.Date d) |
java.util.Map<java.lang.String,?> |
getOptions()
any options defined here, are passed to the contructor of the Dojo
MiniApp control (child controls, such as GanttWidget,
ResourceViewWidget,etc)
|
com.ibm.json.java.JSONObject |
getPresentationOptions()
Returns the "options" attribute, parsed as JSON from the
|
java.util.Properties |
getSchedulerProperties() |
TreeGridUtil.ITGSerializationHelper |
getSerializationHelper() |
AbstractTreeGridMiniAppBean.ShiftInfo |
getShiftBreakInfoForDate(IMXResource mxr,
IMXGanttModel model,
java.util.Date d)
Add the WorkPeriod information to the TreeGrid UI
|
AbstractTreeGridMiniAppBean.ShiftInfo |
getShiftWorkPeriodInfoForDate(IMXGanttModel model,
java.util.Date d)
Returns the ShiftInfo for the given date in the model, if the model has
shift information loaded.
|
java.util.List<AbstractTreeGridMiniAppBean.ShiftInfo> |
getShiftWorkPeriodInfoForDate(IMXGanttModel sched,
java.util.Properties props,
java.util.Date d)
Find Shift Info for a given date in the Schedule.
|
AbstractTreeGridMiniAppBean.ShiftInfo |
getShiftWorkPeriodInfoForDate(IMXResource mxr,
IMXGanttModel model,
java.util.Date d)
Add the WorkPeriod information to the TreeGrid UI
|
SKDAppServiceBeanRemote |
getSKDAppServiceBean() |
static SKDAppServiceBeanRemote |
getSKDAppServiceBean(WebClientSession wcs)
REturns the remote reference to the service bean
|
java.util.TimeZone |
getTimeZone() |
abstract 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
|
abstract 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
|
abstract DynamicTooltip |
getTooltipForDate(WebClientSession sess,
java.lang.String projectid,
java.lang.String col,
java.lang.String id,
long date) |
DynamicTooltip |
getTooltipForDateInSchedule(IMXGanttModel schedule,
java.util.Properties props,
long date) |
DynamicTooltip |
getTooltipForPoint(java.lang.String id,
int pointIndex) |
UIOptions |
getUIOptions()
Convenience method for getting options by defaulting the project id
|
UserInfo |
getUserInfo() |
void |
initializeProjectData() |
static boolean |
isAiviationLicensePresent(WebClientSession sess)
Returns true, if the aviation license is present, otherwise false.
|
static boolean |
isAiviationMROLicensePresent(WebClientSession sess)
Returns true, if the aviation license is present, otherwise false.
|
boolean |
isGUIMirrored() |
static boolean |
isLicensePresent(java.lang.String lic) |
static boolean |
isLicensePresent(WebClientSession sess,
java.lang.String lic) |
boolean |
isShowingWeather() |
java.lang.String |
label(java.lang.String key) |
java.lang.String |
label(java.lang.String key,
java.lang.String def) |
java.lang.String |
loadMiniAppResource(java.lang.String path) |
SKDUIInfo |
loadSKDUIInfo()
Load the Scheduler UI Info data for the given application.
|
java.lang.String |
loadTemplate(java.lang.String id) |
java.lang.String |
loadTooltip(java.lang.String id) |
java.lang.Object |
on_handle_applink_menu_item(WebClientSession sess,
java.lang.String id,
java.lang.String action,
java.lang.String values)
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.
|
java.lang.String |
resolveTemplate(java.lang.String templateName,
MboRemote projectMbo)
Return the complete template contents for the given template name
|
void |
sendEventToTreeGrid(java.lang.String eventId,
java.lang.String eventArg)
Will push a Dojo topic with the given eventId as the topic and eventArg
as the event message
|
void |
setGridTitleInUIOptions(UIOptions opts,
boolean readOnly) |
void |
setSerializationHelper(MXSerializationHelper mxSerializationHelper) |
void |
setupBean(WebClientSession wcs)
This method must be call after the bean is instantiated.
|
java.util.HashMap<java.lang.String,SKDActionInfo> |
sortSKDAction(java.util.HashMap<java.lang.String,SKDActionInfo> skdActivityActions,
java.lang.String frame)
Taken from scheduler applet...
|
Supplier<UIOptions> |
uiOptionsSupplier() |
void |
updateBooleanProperty(java.lang.String prop,
com.ibm.json.java.JSONObject obj,
IMXActivity act) |
void |
updateDateTimeProperty(java.lang.String prop,
com.ibm.json.java.JSONObject obj,
IMXActivity act) |
boolean |
updateIntProperty(java.lang.String prop,
com.ibm.json.java.JSONObject obj,
IMXActivity act)
Updates the prop in obj to IMXActivity act object.
|
void |
updateStringProperty(java.lang.String prop,
com.ibm.json.java.JSONObject obj,
IMXActivity act) |
_useAllBookmarksQuery, _useAllRecsQuery, _usequery, addAttribute, addConditionalProperties, addDialogReference, addListener, addQbeAttribute, addrow, addSigOption, applyValuesToSharedAttributes, applyValuesToSharedAttributes, asyncLocked, bindComponent, boundToTable, buildPortalMsg, callBeanMethod, callBeanMethod, callBeanMethod, callBeanMethod, callMethod, callMethod, callMethod, callMethod, callRemoteMethod, callRemoteMethod, cancelDialog, canCloseBean, canFetchData, changeRequiredField, checkAndDistributeRequiredError, checkESigAuthenticated, checkForAppError, checkMethodAccess, clearBean, clearfilter, 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, 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, getZombie, getZombieMboValueData, handleRemoteException, handleRequiredFieldException, hasLongDescriptionText, hasLongDescriptionText, hasMboSetRemote, hasPageRows, hasRow, hasSameMboSet, hasSigOptionAccess, hasSigOptionAccess, hierarchicalmove, highlightrow, highlightrow, insert, insert, insertAtEnd, instantdelete, isAppTableRetain, isAttribute, isAttributeHidden, isAttributeHidden, isColumnSorted, isEmpty, isListTableModified, isListTableRetain, isLookupMultiSelect, isMboHidden, isMboHidden, isModifiedRow, isModifiedRow, isNewRow, isNewRow, isNewRowUnedited, isRowDeleted, isRowLocked, isSelected, isSubSelect, isTableAttribute, isTablePostionMarked, isTableRowSelected, isTableStateFlagSet, listenerChangedEvent, madeRequiredConditionally, markTablePosition, moveToMboFromDataBean, needToAuthenticate, next, nextrow, positionState, previous, prevrow, propagateRequired, queryAllBookmarks, queryAllRecs, refreshFieldErrors, refreshTable, registerDynamicControlsWithERM, reloadTable, removeDialogReference, removeListener, removeRowOnCancel, rePosition, reset, resetJSPFlags, resetQbe, resetWithSelection, restoreSavedQbeSettings, retainPosition, returnLookupValue, returnLookupValue, returnLookupValue, returnLookupValue, save, save, saveCurrentQbeSettings, scrollnext, scrollprev, select, select, selectAll, selectrecord, selectRows, sendRefreshTable, setApp, setAppDefault, setAppDefaults, setApplicationError, setAppWhere, setAsyncLock, setAttributes, setCurrentQueryDescription, setCurrentRow, setDate, setDate, setDate, setDefaultOrderBy, setDefaultQbe, setDefaultValue, setDefaultValue, setDescAttributeId, setDynamicAppDefaults, setDynamicDefault, setDynamicQbeDefaults, setEmptyOnClear, 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, 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, validateMbo, valueBound, valueUnbound
getCreator, getId, setCreator, setId
public static final java.lang.String TESTIDS_ENABLED_PROPERTY
public static final java.lang.String SKD_BUILD_ID
public static final java.lang.String SCHEDULER_MSG_GROUP
public TreeGridUtil.ITGSerializationHelper getSerializationHelper()
public UserInfo getUserInfo()
public void addQuickSearch(UIOptions opts)
public void addToggleDependencies(UIOptions opts, boolean create)
public void addLinkToWorkViewFilter(UIOptions opts, boolean create, boolean initialState)
public void addFilterToggle(UIOptions opts)
public void onReset()
onReset
in interface ResetListener
public java.lang.String getCurrentProjectId()
public boolean isGUIMirrored()
public void setGridTitleInUIOptions(UIOptions opts, boolean readOnly) throws java.rmi.RemoteException, MXException
java.rmi.RemoteException
MXException
public void async_export_echo(WebClientSession sess) throws java.io.IOException
java.io.IOException
public java.lang.String getLastKnownState() throws java.io.IOException, MXException
java.io.IOException
MXException
public com.ibm.json.java.JSONObject async_upload_state(WebClientSession sess, java.lang.String cfgid, java.lang.String cookie) throws java.rmi.RemoteException, MXException
sess
- cfgid
- cookie
- java.rmi.RemoteException
MXException
public com.ibm.json.java.JSONObject async_load_text(WebClientSession sess)
sess
- public SKDUIInfo loadSKDUIInfo() throws MXException, java.io.IOException
sess
- appName
- MXException
java.io.IOException
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
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) throws MXException, java.rmi.RemoteException
id
- action
- MXException
java.rmi.RemoteException
public java.lang.Object callMethod(java.lang.String methodName, java.lang.Class<?>[] paramTypes, java.lang.Object[] params) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public java.lang.Object callBeanMethod(java.lang.String method, java.lang.Class<?>[] paramTypes, java.lang.Object[] params) throws MXException, java.lang.NoSuchMethodException, java.rmi.RemoteException
MXException
java.lang.NoSuchMethodException
java.rmi.RemoteException
public ReplyBuilder async_upload_changes(WebClientSession sess)
sess
- public java.util.TimeZone getTimeZone()
public java.lang.String getAppName()
public abstract 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
sess
- projectid
- col
- id
- MXException
java.rmi.RemoteException
java.lang.InterruptedException
java.util.concurrent.ExecutionException
public abstract 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
sess
- projectid
- fromid
- toid
- MXException
java.rmi.RemoteException
java.lang.InterruptedException
java.util.concurrent.ExecutionException
public abstract 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
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
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 void async_push_client_message()
topic.subscribe("miniapp.scheduler.pushevent", function(data) { alert("GOT A PUSHED MESSAGE: " + data); });
public void sendEventToTreeGrid(java.lang.String eventId, java.lang.String eventArg)
eventId
- eventArg
- public com.ibm.json.java.JSONObject getPresentationOptions()
public java.util.Map<java.lang.String,?> getOptions()
getOptions
in interface HasOptions
public boolean isShowingWeather() throws java.rmi.RemoteException, MXException
java.rmi.RemoteException
MXException
public java.lang.String label(java.lang.String key)
public java.lang.String label(java.lang.String key, java.lang.String def)
public java.util.HashMap<java.lang.String,SKDActionInfo> sortSKDAction(java.util.HashMap<java.lang.String,SKDActionInfo> skdActivityActions, java.lang.String frame)
skdActivityActions
- public void appendCss(java.lang.StringBuilder sb, java.lang.String key, java.lang.String value)
public java.lang.String filterCss(java.lang.String css, MiniAppControl control)
filterCss
in interface CssFilterable
public java.lang.String getBaseImageUrl()
public java.lang.String loadMiniAppResource(java.lang.String path)
public java.util.Properties getSchedulerProperties() throws java.io.IOException, MXException
java.io.IOException
MXException
public java.lang.String loadTemplate(java.lang.String id) throws java.io.IOException, MXException
java.io.IOException
MXException
public java.lang.String loadTooltip(java.lang.String id) throws java.io.IOException, MXException
java.io.IOException
MXException
public SKDAppServiceBeanRemote getSKDAppServiceBean() throws MXException, java.io.IOException
MXException
java.io.IOException
public static SKDAppServiceBeanRemote getSKDAppServiceBean(WebClientSession wcs) throws MXException, java.io.IOException
session
- HttpSessionMXException
java.io.IOException
public static boolean isAiviationLicensePresent(WebClientSession sess) throws java.lang.Exception, java.rmi.RemoteException
MXException
java.rmi.RemoteException
java.lang.Exception
public static boolean isAiviationMROLicensePresent(WebClientSession sess) throws java.lang.Exception, java.rmi.RemoteException
MXException
java.rmi.RemoteException
java.lang.Exception
public static boolean isLicensePresent(WebClientSession sess, java.lang.String lic) throws java.lang.Exception, java.rmi.RemoteException
java.lang.Exception
java.rmi.RemoteException
public static boolean isLicensePresent(java.lang.String lic) throws java.lang.Exception, java.rmi.RemoteException
java.lang.Exception
java.rmi.RemoteException
public java.lang.String resolveTemplate(java.lang.String templateName, MboRemote projectMbo)
SKDTemplateResolver
resolveTemplate
in interface SKDTemplateResolver
public void setupBean(WebClientSession wcs)
DataBean
public void initializeProjectData()
public UIOptions getUIOptions()
public void setSerializationHelper(MXSerializationHelper mxSerializationHelper)
public void clearSavedState()
public java.lang.String getApplicationResource(java.lang.String path)
public java.util.List<AbstractTreeGridMiniAppBean.ShiftInfo> getShiftWorkPeriodInfoForDate(IMXGanttModel sched, java.util.Properties props, java.util.Date d) throws java.io.IOException
sched
- Scheduleprops
- Schedule Propertiesd
- date in schedulejava.io.IOException
public DynamicTooltip getTooltipForDateInSchedule(IMXGanttModel schedule, java.util.Properties props, long date) throws MXException, java.rmi.RemoteException, java.lang.InterruptedException, java.util.concurrent.ExecutionException
MXException
java.rmi.RemoteException
java.lang.InterruptedException
java.util.concurrent.ExecutionException
public abstract Range<java.util.Date> getActualStartEnd()
public abstract Range<java.util.Date> getCalculatedProjectMinMax()
public WebClientSession getClientSession()
public Supplier<AbstractTreeGridMiniAppBean> beanSupplier()
public AbstractTreeGridMiniAppBean.ShiftInfo getShiftWorkPeriodInfoForDate(IMXGanttModel model, java.util.Date d) throws java.io.IOException
gantt
- model
- java.io.IOException
public AbstractTreeGridMiniAppBean.ShiftInfo getShiftWorkPeriodInfoForDate(IMXResource mxr, IMXGanttModel model, java.util.Date d) throws java.io.IOException
gantt
- model
- java.io.IOException
public IMXActivity getModAvailForDate(IMXResource mxr, IMXGanttModel model, java.util.Date d)
public AbstractTreeGridMiniAppBean.ShiftInfo getShiftBreakInfoForDate(IMXResource mxr, IMXGanttModel model, java.util.Date d) throws java.io.IOException
gantt
- model
- java.io.IOException
public void updateDateTimeProperty(java.lang.String prop, com.ibm.json.java.JSONObject obj, IMXActivity act)
public void updateStringProperty(java.lang.String prop, com.ibm.json.java.JSONObject obj, IMXActivity act)
public boolean updateIntProperty(java.lang.String prop, com.ibm.json.java.JSONObject obj, IMXActivity act)
prop
- obj
- act
- public void updateBooleanProperty(java.lang.String prop, com.ibm.json.java.JSONObject obj, IMXActivity act)
public static java.lang.String CfgId(java.lang.String base)